Skip to content

Commit

Permalink
sync config values with ConVars init values
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyShorokhov committed Apr 18, 2024
1 parent 8f191f5 commit 9bb44ab
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 14 deletions.
5 changes: 1 addition & 4 deletions cstrike/addons/amxmodx/configs/redm/gamemode_deathmatch.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"redm_healer": "10",

// How much to restore HP when killing with HS an enemy.
"redm_healer_hs": "15",
"redm_healer_hs": "20",

// Mute the sounds of other players at a distance.
"redm_sounds_distance": "1500",
Expand Down Expand Up @@ -166,10 +166,8 @@
"bot_defer_to_human": "0",
"bot_join_after_player": "0",
"bot_quota_mode": "fill",
"mp_auto_join_team": "1",
"mp_autoteambalance": "0",
"mp_buytime": "0",
"mp_buy_anywhere": "1",
"mp_ct_default_grenades": "",
"mp_t_default_grenades": "",
"mp_t_default_weapons_primary": "ak47",
Expand All @@ -191,7 +189,6 @@
"mp_scoreboard_showhealth": "0",
"mp_scoreboard_showmoney": "0",
"mp_show_radioicon": "0",
"mp_timelimit": "30",
"mp_weapons_allow_map_placed": "0",
"mp_roundrespawn_time": "9999999"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ AimBarriers_Precache() {
AimBarriers_Init() {
bind_pcvar_num(
create_cvar(
"redm_aim_barrier", "1",
"redm_aim_barrier", "0",
.has_min = true, .min_val = 0.0,
.has_max = true, .max_val = 1.0,
.flags = _FCVAR_BOOLEAN,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Tickets_Init() {
)
bind_pcvar_float(
create_cvar(
"redm_tickets_hud_blink_percent", "10.0",
"redm_tickets_hud_blink_percent", "10",
.has_min = true, .min_val = 0.0,
.has_max = true, .max_val = 100.0,
.flags = _FCVAR_FLOAT,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ EquipManager_Init() {

bind_pcvar_num(
create_cvar(
"redm_keep_weapon_slot", "1",
"redm_keep_weapon_slot", "0",
.has_min = true, .min_val = 0.0,
.has_max = true, .max_val = 1.0,
.flags = _FCVAR_BOOLEAN,
Expand Down
10 changes: 5 additions & 5 deletions cstrike/addons/amxmodx/scripting/ReDeathmatch/ReDM_features.inc
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Features_Init() {
)
bind_pcvar_float(
create_cvar(
"redm_healer", "10.0",
"redm_healer", "10",
.has_min = true, .min_val = 0.0,
.flags = _FCVAR_FLOAT,
.description = "How much to restore HP when killing an enemy."
Expand All @@ -85,7 +85,7 @@ Features_Init() {
)
bind_pcvar_float(
create_cvar(
"redm_healer_hs", "20.0",
"redm_healer_hs", "20",
.has_min = true, .min_val = 0.0,
.flags = _FCVAR_FLOAT,
.description = "How much to restore HP when killing with HS an enemy."
Expand All @@ -94,7 +94,7 @@ Features_Init() {
)
bind_pcvar_float(
create_cvar(
"redm_sounds_distance", "1500.0",
"redm_sounds_distance", "1500",
.has_min = true, .min_val = 0.0,
.flags = _FCVAR_FLOAT,
.description = "Mute the sounds of other players at a distance."
Expand Down Expand Up @@ -131,7 +131,7 @@ Features_Init() {
)
bind_pcvar_num(
create_cvar(
"redm_hitsound", "1",
"redm_hitsound", "0",
.has_min = true, .min_val = 0.0,
.has_max = true, .max_val = 1.0,
.flags = _FCVAR_BOOLEAN,
Expand All @@ -151,7 +151,7 @@ Features_Init() {
)
bind_pcvar_num(
create_cvar(
"redm_hide_other_deathnotice", "1",
"redm_hide_other_deathnotice", "0",
.has_min = true, .min_val = 0.0,
.has_max = true, .max_val = 1.0,
.flags = _FCVAR_BOOLEAN,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ RoundModes_Init() {

bind_pcvar_string(
create_cvar(
"redm_modes_switch", "sequentially",
"redm_modes_switch", "0",
.flags = (_FCVAR_STRING | _FCVAR_BOOLEAN),
.description = "Game mode change mode. ^n\
`0`, `disable` - disable modes, ^n\
Expand Down
2 changes: 1 addition & 1 deletion cstrike/addons/amxmodx/scripting/redm_spawns.sma
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ static Create_Convars() {
)
bind_pcvar_float(
create_cvar(
"redm_randomspawn_dist", "1500.0",
"redm_randomspawn_dist", "1500",
.has_min = true, .min_val = 0.0,
.flags = _FCVAR_FLOAT,
.description = "Minimum distance to the enemy to enable spawn checks."
Expand Down

0 comments on commit 9bb44ab

Please sign in to comment.