ftt: update include

This commit is contained in:
Jackzie 2021-04-26 11:07:37 -05:00
parent 87994a6153
commit df256d0e03
No known key found for this signature in database
GPG key ID: 1E834FE36520537A

View file

@ -94,7 +94,7 @@ enum L4D2Infected
L4D2Infected_Witch = 7,
L4D2Infected_Tank = 8
};
int g_iTrollUsers[MAXPLAYERS+1], g_iAttackerTarget[MAXPLAYERS+1], autoPunished = -1, autoPunishMode, lastButtonUser;
int g_iTrollUsers[MAXPLAYERS+1], g_iAttackerTarget[MAXPLAYERS+1], autoPunished = -1, autoPunishMode, lastButtonUser, lastCrescendoUser;
bool g_bPendingItemGive[MAXPLAYERS+1];
@ -253,4 +253,19 @@ void ResetClient(int victim, bool wipe = true) {
if(wpn > -1)
SDKUnhook(wpn, SDKHook_Reload, Event_WeaponReload);
SDKUnhook(victim, SDKHook_OnTakeDamage, Event_TakeDamage);
}
void ActivateAutoPunish(int client) {
if(hAutoPunish.IntValue & 2 == 2)
ApplyModeToClient(0, lastButtonUser, Troll_SpecialMagnet, TrollMod_None);
if(hAutoPunish.IntValue & 1 == 1)
ApplyModeToClient(0, lastButtonUser, Troll_TankMagnet, TrollMod_None);
if(hAutoPunish.IntValue & 8 == 8)
ApplyModeToClient(0, lastButtonUser, Troll_VomitPlayer, TrollMod_None);
else if(hAutoPunish.IntValue & 4 == 4)
ApplyModeToClient(0, lastButtonUser, Troll_Swarm, TrollMod_None);
if(hAutoPunishExpire.IntValue > 0) {
CreateTimer(60.0 * hAutoPunishExpire.FloatValue, Timer_ResetAutoPunish, GetClientOfUserId(lastButtonUser));
}
}