From 109a6d9d47d6459dac6e302dbcce521dd0344b3c Mon Sep 17 00:00:00 2001 From: jenz Date: Sun, 22 Feb 2026 20:52:53 +0100 Subject: [PATCH] advertising stoat and protecting zms from being killed before the model is applied --- ZombieRiot/scripting/unloze_zr.sp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ZombieRiot/scripting/unloze_zr.sp b/ZombieRiot/scripting/unloze_zr.sp index 92976ed..2f789fa 100644 --- a/ZombieRiot/scripting/unloze_zr.sp +++ b/ZombieRiot/scripting/unloze_zr.sp @@ -363,6 +363,7 @@ public Action ApplySettings(Event event, const char[] name, bool dontBroadcast) } else if (IsFakeClient(client)) //bot getting respawned as zm { + g_bClientProtection[client] = true; //protect from being killed during the 0.3 sec delay. CreateTimer(0.3, Timer_delayedSelectWaveBasedZM, GetClientUserId(client)); } else @@ -1135,7 +1136,7 @@ public Action Timer_FixKNife(Handle timer, any userid) if (IsFakeClient(client)) { char tag[64]; - Format(tag, sizeof(tag), "UNLOZE "); + Format(tag, sizeof(tag), "UNLOZE.com/stoat "); CS_SetClientClanTag(client, tag); } @@ -1261,6 +1262,7 @@ public void Event_roundStart(Handle event, const char[] name, bool dontBroadcast g_bClientIsBoss[i] = false; //just to make sure both bots and real players are reset. if (IsFakeClient(i)) { + g_bClientProtection[i] = true; //protect from being killed during the 0.3 sec delay. CreateTimer(0.3, Timer_delayedSelectWaveBasedZM, GetClientUserId(i)); continue; } @@ -1302,7 +1304,7 @@ public Action RetrieveWaveSettings(int wave) } char hostname[512]; - Format(hostname, sizeof(hostname), "UNLOZE | [ZRiot: Day %i/%i] %s | Ranking", wave, total_days, g_cDaysTitles[wave - 1]); + Format(hostname, sizeof(hostname), "UNLOZE.com/stoat | [ZRiot: Day %i/%i] %s | Ranking", wave, total_days, g_cDaysTitles[wave - 1]); ServerCommand("hostname \"%s\"", hostname); PrintToChatAll("Day %i: %s", wave, g_cDaysTitles[wave - 1]); LoadWave(wave); @@ -1839,6 +1841,7 @@ public Action SelectWaveBasedZM(int client, int state) g_bClientIsBoss[client] = true; } + g_bClientProtection[client] = true; //protect from being killed during the 0.3 sec delay. //im just getting desperate at this point for fixing the client crash by adding random ass delays. CreateTimer(0.3, Timer_delayedModelSelection, GetClientUserId(client)); return Plugin_Handled; @@ -1891,7 +1894,6 @@ public Action ModelSelection(int client, int state, int modelIndex) SetEntityModel(client, g_cModelPath[i][g_iLength]); } - g_bClientProtection[client] = true; if (StrContains(g_cNoFallDmg[i][g_iLength], "YES") > -1) g_bFallDamage[client] = true; else