From 9bb44abe1fdabb40dfc43e9bcaefb418f856fca7 Mon Sep 17 00:00:00 2001 From: Sergey Shorokhov Date: Thu, 18 Apr 2024 15:47:04 +0300 Subject: [PATCH] sync config values with ConVars init values --- .../amxmodx/configs/redm/gamemode_deathmatch.json | 5 +---- .../scripting/ReDeathmatch/Features/AimBarriers.inc | 2 +- .../scripting/ReDeathmatch/Features/Tickets.inc | 2 +- .../scripting/ReDeathmatch/ReDM_equip_manager.inc | 2 +- .../amxmodx/scripting/ReDeathmatch/ReDM_features.inc | 10 +++++----- .../scripting/ReDeathmatch/ReDM_round_modes.inc | 2 +- cstrike/addons/amxmodx/scripting/redm_spawns.sma | 2 +- 7 files changed, 11 insertions(+), 14 deletions(-) diff --git a/cstrike/addons/amxmodx/configs/redm/gamemode_deathmatch.json b/cstrike/addons/amxmodx/configs/redm/gamemode_deathmatch.json index c770deb..1733c59 100644 --- a/cstrike/addons/amxmodx/configs/redm/gamemode_deathmatch.json +++ b/cstrike/addons/amxmodx/configs/redm/gamemode_deathmatch.json @@ -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", @@ -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", @@ -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" }, diff --git a/cstrike/addons/amxmodx/scripting/ReDeathmatch/Features/AimBarriers.inc b/cstrike/addons/amxmodx/scripting/ReDeathmatch/Features/AimBarriers.inc index df7d36a..6e77c19 100644 --- a/cstrike/addons/amxmodx/scripting/ReDeathmatch/Features/AimBarriers.inc +++ b/cstrike/addons/amxmodx/scripting/ReDeathmatch/Features/AimBarriers.inc @@ -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, diff --git a/cstrike/addons/amxmodx/scripting/ReDeathmatch/Features/Tickets.inc b/cstrike/addons/amxmodx/scripting/ReDeathmatch/Features/Tickets.inc index 68b3a49..73bd44b 100644 --- a/cstrike/addons/amxmodx/scripting/ReDeathmatch/Features/Tickets.inc +++ b/cstrike/addons/amxmodx/scripting/ReDeathmatch/Features/Tickets.inc @@ -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, diff --git a/cstrike/addons/amxmodx/scripting/ReDeathmatch/ReDM_equip_manager.inc b/cstrike/addons/amxmodx/scripting/ReDeathmatch/ReDM_equip_manager.inc index 017f4ca..50b01f2 100644 --- a/cstrike/addons/amxmodx/scripting/ReDeathmatch/ReDM_equip_manager.inc +++ b/cstrike/addons/amxmodx/scripting/ReDeathmatch/ReDM_equip_manager.inc @@ -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, diff --git a/cstrike/addons/amxmodx/scripting/ReDeathmatch/ReDM_features.inc b/cstrike/addons/amxmodx/scripting/ReDeathmatch/ReDM_features.inc index f09b996..6fb329f 100644 --- a/cstrike/addons/amxmodx/scripting/ReDeathmatch/ReDM_features.inc +++ b/cstrike/addons/amxmodx/scripting/ReDeathmatch/ReDM_features.inc @@ -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." @@ -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." @@ -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." @@ -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, @@ -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, diff --git a/cstrike/addons/amxmodx/scripting/ReDeathmatch/ReDM_round_modes.inc b/cstrike/addons/amxmodx/scripting/ReDeathmatch/ReDM_round_modes.inc index cd5a87f..1119e19 100644 --- a/cstrike/addons/amxmodx/scripting/ReDeathmatch/ReDM_round_modes.inc +++ b/cstrike/addons/amxmodx/scripting/ReDeathmatch/ReDM_round_modes.inc @@ -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\ diff --git a/cstrike/addons/amxmodx/scripting/redm_spawns.sma b/cstrike/addons/amxmodx/scripting/redm_spawns.sma index e56ec0c..7e91620 100644 --- a/cstrike/addons/amxmodx/scripting/redm_spawns.sma +++ b/cstrike/addons/amxmodx/scripting/redm_spawns.sma @@ -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."