mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-06 23:53:21 +00:00
ftt: update include
This commit is contained in:
parent
87994a6153
commit
df256d0e03
1 changed files with 16 additions and 1 deletions
|
@ -94,7 +94,7 @@ enum L4D2Infected
|
||||||
L4D2Infected_Witch = 7,
|
L4D2Infected_Witch = 7,
|
||||||
L4D2Infected_Tank = 8
|
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];
|
bool g_bPendingItemGive[MAXPLAYERS+1];
|
||||||
|
|
||||||
|
|
||||||
|
@ -254,3 +254,18 @@ void ResetClient(int victim, bool wipe = true) {
|
||||||
SDKUnhook(wpn, SDKHook_Reload, Event_WeaponReload);
|
SDKUnhook(wpn, SDKHook_Reload, Event_WeaponReload);
|
||||||
SDKUnhook(victim, SDKHook_OnTakeDamage, Event_TakeDamage);
|
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));
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue