advertising stoat and protecting zms from being killed before the model is applied
This commit is contained in:
parent
35aaa9ee87
commit
109a6d9d47
@ -363,6 +363,7 @@ public Action ApplySettings(Event event, const char[] name, bool dontBroadcast)
|
|||||||
}
|
}
|
||||||
else if (IsFakeClient(client)) //bot getting respawned as zm
|
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));
|
CreateTimer(0.3, Timer_delayedSelectWaveBasedZM, GetClientUserId(client));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -1135,7 +1136,7 @@ public Action Timer_FixKNife(Handle timer, any userid)
|
|||||||
if (IsFakeClient(client))
|
if (IsFakeClient(client))
|
||||||
{
|
{
|
||||||
char tag[64];
|
char tag[64];
|
||||||
Format(tag, sizeof(tag), "UNLOZE ");
|
Format(tag, sizeof(tag), "UNLOZE.com/stoat ");
|
||||||
CS_SetClientClanTag(client, tag);
|
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.
|
g_bClientIsBoss[i] = false; //just to make sure both bots and real players are reset.
|
||||||
if (IsFakeClient(i))
|
if (IsFakeClient(i))
|
||||||
{
|
{
|
||||||
|
g_bClientProtection[i] = true; //protect from being killed during the 0.3 sec delay.
|
||||||
CreateTimer(0.3, Timer_delayedSelectWaveBasedZM, GetClientUserId(i));
|
CreateTimer(0.3, Timer_delayedSelectWaveBasedZM, GetClientUserId(i));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -1302,7 +1304,7 @@ public Action RetrieveWaveSettings(int wave)
|
|||||||
}
|
}
|
||||||
|
|
||||||
char hostname[512];
|
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);
|
ServerCommand("hostname \"%s\"", hostname);
|
||||||
PrintToChatAll("Day %i: %s", wave, g_cDaysTitles[wave - 1]);
|
PrintToChatAll("Day %i: %s", wave, g_cDaysTitles[wave - 1]);
|
||||||
LoadWave(wave);
|
LoadWave(wave);
|
||||||
@ -1839,6 +1841,7 @@ public Action SelectWaveBasedZM(int client, int state)
|
|||||||
g_bClientIsBoss[client] = true;
|
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.
|
//im just getting desperate at this point for fixing the client crash by adding random ass delays.
|
||||||
CreateTimer(0.3, Timer_delayedModelSelection, GetClientUserId(client));
|
CreateTimer(0.3, Timer_delayedModelSelection, GetClientUserId(client));
|
||||||
return Plugin_Handled;
|
return Plugin_Handled;
|
||||||
@ -1891,7 +1894,6 @@ public Action ModelSelection(int client, int state, int modelIndex)
|
|||||||
SetEntityModel(client, g_cModelPath[i][g_iLength]);
|
SetEntityModel(client, g_cModelPath[i][g_iLength]);
|
||||||
}
|
}
|
||||||
|
|
||||||
g_bClientProtection[client] = true;
|
|
||||||
if (StrContains(g_cNoFallDmg[i][g_iLength], "YES") > -1)
|
if (StrContains(g_cNoFallDmg[i][g_iLength], "YES") > -1)
|
||||||
g_bFallDamage[client] = true;
|
g_bFallDamage[client] = true;
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user