Skip to content

Commit

Permalink
- ADDED: Custom RockTheVote build to enable trigger voting from server
Browse files Browse the repository at this point in the history
…abnerfs/cs2-rockthevote#70

- UPDATED: CounterStrikeSharp to 238
- UPDATED: !bhop command to allow voting to turn on and off bunny hopping
- UPDATED: Disable GoTV
- UPDATED: Restore bot commands on map change
  • Loading branch information
kus committed May 31, 2024
1 parent dbb8a27 commit 42f121f
Show file tree
Hide file tree
Showing 21 changed files with 90 additions and 39 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ Getting up and running:
Mod | Version | Why
--- | --- | ---
[Metamod:Source](http://www.sourcemm.net/downloads.php?branch=master) | `2.0.0-1293` | Sits between the Game and the Engine, and allows plugins to intercept calls that flow between
[CounterStrikeSharp](https://github.com/roflmuffin/CounterStrikeSharp) | `235` | Attempts to implement a .NET Core scripting layer on top of a Metamod Source Plugin, allowing developers to create plugins that interact with the game server in a modern language (C#)
[CounterStrikeSharp](https://github.com/roflmuffin/CounterStrikeSharp) | `238` | Attempts to implement a .NET Core scripting layer on top of a Metamod Source Plugin, allowing developers to create plugins that interact with the game server in a modern language (C#)
[CS2_ExecAfter](https://github.com/kus/CS2_ExecAfter) | `1.0.0` | Executes a command after server event (i.e. OnMapStart) or a delay.
[CS2 Remove Map Weapons](https://github.com/kus/CS2-Remove-Map-Weapons) | `1.0.1` | Remove weapons from the map in CS2 as `mp_weapons_allow_map_placed 0` does not work.
[CS2_DamageInfo](https://github.com/K4ryuu/CS2_DamageInfo) | `2.3.2` | Displays the amount of damage players have inflicted on the victim's HP and Armor, as well as the hit groups they have hit.
[GameModeManager](https://github.com/nickj609/GameModeManager)| `1.0.3-custombuild` | A simple Counter-Strike 2 server plugin that helps admins manage game modes and map groups.
[Rock The Vote](https://github.com/abnerfs/cs2-rockthevote)| `1.8.5` | General purpose cs2 map voting plugin, made with love from scratch
[Rock The Vote](https://github.com/abnerfs/cs2-rockthevote)| `1.8.5-custombuild` | General purpose cs2 map voting plugin, made with love from scratch
[MatchZy](https://github.com/shobhit-pathak/MatchZy) | `0.7.11` | MatchZy is a plugin for CS2 for running and managing practice/pugs/scrims/matches with easy configuration!
[MapConfigurator](https://github.com/ManifestManah/MapConfigurator)| `1.0.2` | Allows you to quick and easily create unique configuration files for each map on your server.
[SimpleAdmin](https://github.com/connercsbn/SimpleAdmin/)| `0.1.2` | Adds basic administrator functions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v8.0": {
"CounterStrikeSharp.API/1.0.235": {
"CounterStrikeSharp.API/1.0.238": {
"dependencies": {
"McMaster.NETCore.Plugins": "1.4.0",
"Microsoft.CSharp": "4.7.0",
Expand Down Expand Up @@ -523,7 +523,7 @@
}
},
"libraries": {
"CounterStrikeSharp.API/1.0.235": {
"CounterStrikeSharp.API/1.0.238": {
"type": "project",
"serviceable": false,
"sha512": ""
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -447,17 +447,29 @@
{
"Command": "bhop",
"CommandAliases": [],
"Description": "Switch game mode to BHop?",
"Description": "What do you want?",
"TimeToVote": 30,
"Options": {
"Yes": {
"Text": "{Green}Yes",
"Enable": {
"Text": "{Green}Enable bunny hopping",
"Commands": [
"exec settings/bhop_on.cfg"
]
},
"Disable": {
"Text": "{Red}Disable bunny hopping",
"Commands": [
"exec settings/bhop_off.cfg"
]
},
"Switch": {
"Text": "{Green}Switch game mode to BHop",
"Commands": [
"exec bhop"
]
},
"No": {
"Text": "{Red}No",
"Text": "{Red}Leave it as it is",
"Commands": []
}
},
Expand Down
2 changes: 1 addition & 1 deletion game/csgo/addons/counterstrikesharp/gamedata/gamedata.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"signatures": {
"library": "server",
"windows": "48 89 5C 24 ? 48 89 74 24 ? 55 57 41 ? 41 ? 41 ? 48 ? ? ? ? 48 ? ? ? ? ? ? 4D ? ? 48",
"linux": "55 48 89 E5 41 57 41 56 49 89 D6 41 55 49 89 CD 41 54 49 89 F4 53 48 89 FB 48 8D 3D D3 CC 7B 00"
"linux": "55 48 89 E5 41 57 41 56 49 89 D6 41 55 49 89 CD 41 54 49 89 F4 53 48 89 FB 48 8D 3D"
}
},
"UTIL_Remove": {
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v8.0": {
"CounterStrikeSharp.API/1.0.235": {
"CounterStrikeSharp.API/1.0.238": {
"dependencies": {
"McMaster.NETCore.Plugins": "1.4.0",
"Microsoft.CSharp": "4.7.0",
Expand Down Expand Up @@ -523,7 +523,7 @@
}
},
"libraries": {
"CounterStrikeSharp.API/1.0.235": {
"CounterStrikeSharp.API/1.0.238": {
"type": "project",
"serviceable": false,
"sha512": ""
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
21 changes: 21 additions & 0 deletions game/csgo/cfg/bots.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,27 @@
// mp_bot_ai_bt "scripts/ai/deathmatch/bt_config.kv3"
bot_chatter "off"
bot_join_after_player 1
bot_join_team any
bot_quota 2 // Add 1 bot if only 1 person on the server. When there is 2 or more humans there is no bots
bot_quota_mode "fill"
bot_difficulty 3
custom_bot_difficulty 3
bot_allow_grenades 1
bot_allow_shotguns 1
bot_allow_pistols 1
bot_allow_rifles 1
bot_allow_snipers 1
bot_allow_machine_guns 1
sv_auto_adjust_bot_difficulty 1
bot_max_vision_distance_override -1
bot_autodifficulty_threshold_high 0
bot_autodifficulty_threshold_low -2
bot_stop 0
bot_freeze 0
bot_zombie 0
bot_knives_only 0
bot_mimic 0
bot_ignore_enemies 0
bot_dont_shoot 0
bot_pistols_only 0
bot_snipers_only 0
2 changes: 1 addition & 1 deletion game/csgo/cfg/gungame/gungame.json
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
"_comment.CanLevelUpWithNadeOnKnife": "Use 'CanLevelUpWithMapNades' option when a player is on knife level.",
"DisableRtvLevel": 0,
"_comment.DisableRtvLevel": "Disable rtv on defined level. 0 - disabled",
"EndGameDelay": 5,
"EndGameDelay": 30,
"_comment.EndGameDelay": "Delay before the end of multiplayer game after a gungame win.",
"EndGameSilent": false,
"_comment.EndGameSilent": "Defines how to finish the game after someone has won. False - normal end, True - silent end.",
Expand Down
5 changes: 4 additions & 1 deletion game/csgo/cfg/gungame/gungame.mapvote.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@
// EndGameDelay: 35
// EndGameSilent: false
// so I have voting during 25 sec from the win and map changed in next 10 seconds.
// ggmc_mapvote_start 25
// ggmc_mapvote_start 25

// I have EndGameDelay set to 30 so we will make RTV last for 20 seconds
rtv 20
31 changes: 7 additions & 24 deletions game/csgo/cfg/server.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -63,25 +63,8 @@ mp_playercashawards 1 // Players can earn money by performing in-game acti
mp_teamcashawards 1 // Teams can earn money by performing in-game actions
mp_round_restart_delay 7 // Number of seconds to delay before restarting a round after a win

// Revert settings/movement_unlock.cfg
sv_accelerate 5.5
sv_airaccelerate 12
sv_maxvelocity 3500 // Maximum speed any ballistically moving object is allowed to attain per axis.
sv_maxspeed 320
sv_enablebunnyhopping 0 // Allow player speed to exceed maximum running speed
sv_autobunnyhopping 0 // Players automatically re-jump while holding jump button
sv_falldamage_scale 1
sv_clamp_unsafe_velocities 1
sv_staminajumpcost 0.080 // Stamina penalty for jumping
sv_staminalandcost 0.050 // Stamina penalty for landing
sv_staminarecoveryrate 60 // Rate at which stamina recovers (units/sec)
sv_staminamax 80 // Maximum stamina penalty
sv_friction 5.2 // World friction.
sv_timebetweenducks 0.4 // Minimum time before recognizing consecutive duck key
sv_ladder_scale_speed 0.78 // Scale top speed on ladders
sv_accelerate_use_weapon_speed 1
sv_weapon_encumbrance_per_item 0.85
sv_weapon_encumbrance_scale 0
// Revert settings/bhop_on.cfg
exec settings/bhop_off.cfg

// Revert settings/course.cfg
mp_solid_teammates 1 // How solid are teammates
Expand All @@ -108,18 +91,18 @@ mp_drop_knife_enable 0 // Allows players to drop knives.
mp_weapons_allow_map_placed 1 // If this convar is set, when a match starts, the game will not delete weapons placed in the map.
mp_disconnect_kills_players 1 // When a player disconnects, kill them first (triggering item drops, stats, etc.)

// Enable SourceTV
tv_enable 1
// Disable SourceTV
tv_enable 0
tv_delay 60
tv_delaymapchange 0
tv_advertise_watchable 1

sv_cheats 0
tv_advertise_watchable 0

// Bots
exec bots.cfg
exec custom_bots.cfg

sv_cheats 0

// Logging
writeid
writeip
Expand Down
6 changes: 6 additions & 0 deletions game/csgo/cfg/settings/bhop_off.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
exec settings/movement_restore.cfg

sv_autobunnyhopping 0
sv_falldamage_scale 1

echo "settings/bhop_off.cfg executed"
2 changes: 0 additions & 2 deletions game/csgo/cfg/settings/bhop_on.cfg
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
exec settings/movement_unlock.cfg

sv_autobunnyhopping 1
mp_drop_knife_enable 1
r_drawviewmodel 0
sv_falldamage_scale 0

echo "settings/bhop_on.cfg executed"
28 changes: 28 additions & 0 deletions game/csgo/cfg/settings/movement_restore.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// https://github.com/KZGlobalTeam/gokz/blob/master/addons/sourcemod/scripting/gokz-mode-kztimer.sp#L37
sv_accelerate 5.5
sv_accelerate_use_weapon_speed 1
sv_airaccelerate 12
sv_air_max_wishspeed 30
sv_enablebunnyhopping 0
sv_friction 5.2
sv_gravity 800
sv_jump_impulse 301.993378
sv_ladder_scale_speed 0.78
sv_ledge_mantle_helper 0
sv_maxspeed 320
sv_maxvelocity 3500
sv_staminajumpcost 0.080
sv_staminalandcost 0.050
sv_staminamax 80
sv_staminarecoveryrate 60
sv_standable_normal 0.7
sv_timebetweenducks 0.4
sv_walkable_normal 0.7
sv_wateraccelerate 10
sv_water_movespeed_multiplier 0.8
sv_water_swim_mode 0
sv_weapon_encumbrance_per_item 0.85
sv_weapon_encumbrance_scale 0
sv_clamp_unsafe_velocities 1

echo "settings/movement_restore.cfg executed"

0 comments on commit 42f121f

Please sign in to comment.