diff --git a/cfg/cs2fixes/cs2fixes.cfg b/cfg/cs2fixes/cs2fixes.cfg index 246b66f26..63d9eaf49 100644 --- a/cfg/cs2fixes/cs2fixes.cfg +++ b/cfg/cs2fixes/cs2fixes.cfg @@ -95,6 +95,7 @@ zr_knockback_scale 5.0 // Global knockback scale zr_ztele_max_distance 150.0 // Maximum distance players are allowed to move after starting ztele zr_ztele_allow_humans 0 // Whether to allow humans to use ztele zr_infect_spawn_type 1 // Type of Mother Zombies Spawn [0 = MZ spawn where they stand, 1 = MZ get teleported back to spawn on being picked] +zr_infect_spawn_warning 1 // Whether to warn players of zombies spawning between humans zr_infect_spawn_time_min 15 // Minimum time in which Mother Zombies should be picked, after round start zr_infect_spawn_time_max 15 // Maximum time in which Mother Zombies should be picked, after round start zr_infect_spawn_mz_ratio 7 // Ratio of all Players to Mother Zombies to be spawned at round start diff --git a/src/zombiereborn.cpp b/src/zombiereborn.cpp index 0f5026130..a972ac6b6 100644 --- a/src/zombiereborn.cpp +++ b/src/zombiereborn.cpp @@ -77,6 +77,7 @@ CConVar g_cvarMaxZteleDistance("zr_ztele_max_distance", FCVAR_NONE, "Maxi CConVar g_cvarZteleHuman("zr_ztele_allow_humans", FCVAR_NONE, "Whether to allow humans to use ztele", false); CConVar g_cvarKnockbackScale("zr_knockback_scale", FCVAR_NONE, "Global knockback scale", 5.0f); CConVar g_cvarInfectSpawnType("zr_infect_spawn_type", FCVAR_NONE, "Type of Mother Zombies Spawn [0 = MZ spawn where they stand, 1 = MZ get teleported back to spawn on being picked]", (int)EZRSpawnType::RESPAWN, true, 0, true, 1); +CConVar g_cvarInfectSpawnWarning("zr_infect_spawn_warning", FCVAR_NONE, "Whether to warn players of zombies spawning between humans", true); CConVar g_cvarInfectSpawnTimeMin("zr_infect_spawn_time_min", FCVAR_NONE, "Minimum time in which Mother Zombies should be picked, after round start", 15, true, 0, false, 0); CConVar g_cvarInfectSpawnTimeMax("zr_infect_spawn_time_max", FCVAR_NONE, "Maximum time in which Mother Zombies should be picked, after round start", 15, true, 1, false, 0); CConVar g_cvarInfectSpawnMZRatio("zr_infect_spawn_mz_ratio", FCVAR_NONE, "Ratio of all Players to Mother Zombies to be spawned at round start", 7, true, 1, true, 64); @@ -1009,6 +1010,8 @@ void SetupCTeams() void ZR_OnRoundStart(IGameEvent* pEvent) { ClientPrintAll(HUD_PRINTTALK, ZR_PREFIX "The game is \x05Humans vs. Zombies\x01, the goal for zombies is to infect all humans by knifing them."); + if (g_cvarInfectSpawnWarning.Get() && g_cvarInfectSpawnType.Get() == (int)EZRSpawnType::IN_PLACE) + ClientPrintAll(HUD_PRINTTALK, ZR_PREFIX "Classic spawn is enabled! Zombies will be \x07spawning between humans\x01!"); SetupRespawnToggler(); CZRRegenTimer::RemoveAllTimers(); @@ -1459,7 +1462,14 @@ void ZR_StartInitialCountdown() if (g_iInfectionCountDown <= 60) { - SendHudMessageAll(2, 2, "First infection in %i %s!", g_iInfectionCountDown, g_iInfectionCountDown == 1 ? "second" : "seconds"); + char classicSpawnMsg[256]; + + if (g_cvarInfectSpawnWarning.Get() && g_cvarInfectSpawnType.Get() == (int)EZRSpawnType::IN_PLACE) + V_snprintf(classicSpawnMsg, sizeof(classicSpawnMsg), "WARNING: Zombies will spawn between humans!

"); + else + V_snprintf(classicSpawnMsg, sizeof(classicSpawnMsg), ""); + + SendHudMessageAll(2, 2, "%sFirst infection in %i %s!", classicSpawnMsg, g_iInfectionCountDown, g_iInfectionCountDown == 1 ? "second" : "seconds"); if (g_iInfectionCountDown % 5 == 0) ClientPrintAll(HUD_PRINTTALK, "%sFirst infection in \7%i %s\1!", ZR_PREFIX, g_iInfectionCountDown, g_iInfectionCountDown == 1 ? "second" : "seconds");