on round end adding invulnerability for both teams
This commit is contained in:
parent
effc246b45
commit
ab55282282
@ -1191,7 +1191,7 @@ public Action RetrieveWaveSettings(int wave)
|
|||||||
}
|
}
|
||||||
|
|
||||||
char hostname[512];
|
char hostname[512];
|
||||||
Format(hostname, sizeof(hostname), "UNLOZE | FASTDL | Ranking | Day %i: %s", wave, g_cDaysTitles[wave - 1]);
|
Format(hostname, sizeof(hostname), "UNLOZE | Zombie Riot | Ranking | Day %i: %s", wave, g_cDaysTitles[wave - 1]);
|
||||||
ServerCommand("hostname \"%s\"", hostname);
|
ServerCommand("hostname \"%s\"", hostname);
|
||||||
|
|
||||||
|
|
||||||
@ -1936,19 +1936,6 @@ public Action UpdateWaveCount(int client)
|
|||||||
CS_TerminateRound(4.0, CSRoundEnd_CTWin, true);
|
CS_TerminateRound(4.0, CSRoundEnd_CTWin, true);
|
||||||
g_iWave++;
|
g_iWave++;
|
||||||
g_bRoundInProgress = false;
|
g_bRoundInProgress = false;
|
||||||
|
|
||||||
|
|
||||||
if (g_iWave > 90)
|
|
||||||
{
|
|
||||||
PrintToChatAll("debug: Reseting to Wave 1.");
|
|
||||||
g_iWave = 1;
|
|
||||||
}
|
|
||||||
/* i dont fucking know how g_iWave got out of bounds...
|
|
||||||
L 01/31/2024 - 10:53:07: [SM] Exception reported: Array index out-of-bounds (index 111, limit 100)
|
|
||||||
L 01/31/2024 - 10:53:07: [SM] Blaming: unloze_zr.smx
|
|
||||||
L 01/31/2024 - 10:53:07: [SM] Call stack trace:
|
|
||||||
L 01/31/2024 - 10:53:07: [SM] [1] Line 1040, unloze_zr.sp::RetrieveWaveSettings
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
return Plugin_Continue;
|
return Plugin_Continue;
|
||||||
}
|
}
|
||||||
@ -1975,6 +1962,10 @@ public Action CS_OnTerminateRound(float& delay, CSRoundEndReason& reason)
|
|||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
public Action OnTakeDamage(int client, int &attacker, int &inflictor, float &damage, int &damagetype)
|
public Action OnTakeDamage(int client, int &attacker, int &inflictor, float &damage, int &damagetype)
|
||||||
{
|
{
|
||||||
|
//it was requested that if round ended that CT and ZM should not be able to damage each other anymore.
|
||||||
|
if (!g_bRoundInProgress)
|
||||||
|
return Plugin_Handled;
|
||||||
|
|
||||||
if (g_bClientProtection[client])
|
if (g_bClientProtection[client])
|
||||||
return Plugin_Handled;
|
return Plugin_Handled;
|
||||||
else if (damagetype & DMG_FALL && g_bFallDamage[client])
|
else if (damagetype & DMG_FALL && g_bFallDamage[client])
|
||||||
|
Loading…
Reference in New Issue
Block a user