Skip to content

Commit

Permalink
config: Add forgotten ConVars and fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyShorokhov committed Nov 27, 2024
1 parent a016162 commit d182522
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 19 deletions.
42 changes: 24 additions & 18 deletions cstrike/addons/amxmodx/configs/redm/gamemode_deathmatch.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,35 +43,35 @@
"cvars": {
// ReDM: Spawns
/* Enables the system of selecting spawns.
0 - disable
1 - for all
2 - only for T
3 - only for CT */
0 - disable
1 - for all
2 - only for T
3 - only for CT */
"redm_randomspawn": "1",

/* Check the spawn point for visibility by enemies (line of sight).
0 - disable
1 - enable */
0 - disable
1 - enable */
"redm_randomspawn_los": "1",

// Minimum distance to the enemy to enable spawn checks.
"redm_randomspawn_dist": "1500",

/* Name of the spawn manager style.
`none`,
`preset`,
`random` - (beta) */
`none`,
`preset`,
`random` - (beta) */
"redm_spawn_preset": "preset",

// ReDM: Features
/* Enable a barrier in the middle of the map (`anti-rush' system).
It dont work on `de_`, `cs_` `css_` maps. */
It dont work on `de_`, `cs_` `css_` maps. */
"redm_aim_barrier": "0",

/* Barrier display mode
`0` - disable,
`1` - display permanently (beta),
`2` - display only when touched. */
`0` - disable,
`1` - display permanently (beta),
`2` - display only when touched. */
"redm_aim_barrier_always_show": "2",

// Open equip menu by pressing `G` (drop command).
Expand Down Expand Up @@ -120,10 +120,17 @@
"redm_protection_color_t": "200 0 0 15",
"redm_protection_color_ct": "0 0 200 15",

// Remove limits on player's team switching.
"redm_changeteam_unlimited": "0",

/* Limit the frequency of team changes. ^n\
In seconds. */
"redm_changeteam_freq": "2.0",

/* Number of times a team can
have players respawn before they stop
being able to respawn.
`0` - disabled */
have players respawn before they stop
being able to respawn.
`0` - disabled */
"redm_tickets": "0",

// Tickets HUD update frequency.
Expand All @@ -150,8 +157,7 @@
/* Game mode change mode.
`0`, `disable` - disable modes
`random` - random change
`sequentially` - sequential mode change
*/
`sequentially` - sequential mode change */
"redm_modes_switch": "0",

// Enable voting for the next game mode.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ Features_Init() {
bind_pcvar_float(
create_cvar(
"redm_changeteam_freq",
"2",
"2.0",
.has_min = true, .min_val = 0.0,
.has_max = true, .max_val = 240.0,
.flags = _FCVAR_FLOAT,
Expand Down

0 comments on commit d182522

Please sign in to comment.