From a0d0dadbb9d94d5e53013a44ad3df8a1d000b922 Mon Sep 17 00:00:00 2001 From: Sergey Shorokhov Date: Sun, 14 Apr 2024 22:24:26 +0300 Subject: [PATCH] fix: spawns count for gamedll --- cstrike/addons/amxmodx/scripting/redm_spawns.sma | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/cstrike/addons/amxmodx/scripting/redm_spawns.sma b/cstrike/addons/amxmodx/scripting/redm_spawns.sma index a04eeca..cc6cab8 100644 --- a/cstrike/addons/amxmodx/scripting/redm_spawns.sma +++ b/cstrike/addons/amxmodx/scripting/redm_spawns.sma @@ -72,7 +72,7 @@ public plugin_init() { } get_mapname(g_mapName, charsmax(g_mapName)) - GameDLLSpawnsCountFix() + RegisterHookChain(RG_CSGameRules_RestartRound, "CSGameRules_RestartRound", .post = true) register_clcmd("enter_spawnGroup", "ClCmd_EnterSpawnGroup") @@ -872,10 +872,14 @@ static ConvertOldSpawnsFile(const file[]) { return spawnsCount } +public CSGameRules_RestartRound() { + GameDLLSpawnsCountFix() +} + static GameDLLSpawnsCountFix() { set_member_game(m_bLevelInitialized, true) - set_member_game(m_iSpawnPointCount_CT, 32) - set_member_game(m_iSpawnPointCount_Terrorist, 32) + set_member_game(m_iSpawnPointCount_CT, 64) + set_member_game(m_iSpawnPointCount_Terrorist, 64) } public bool: SpawnPreset_Random(const player) {