ftt: Add option to ignore incapped players

This commit is contained in:
Jackzie 2021-05-17 14:17:24 -05:00
parent ebdf2a2a1f
commit a949868806
No known key found for this signature in database
GPG key ID: 1E834FE36520537A
2 changed files with 20 additions and 5 deletions

View file

@ -102,7 +102,7 @@ GlobalForward g_PlayerMarkedForward;
//HANDLES
Handle hThrowTimer;
//CONVARS
ConVar hVictimsList, hThrowItemInterval, hAutoPunish, hMagnetChance, hShoveFailChance, hAutoPunishExpire;
ConVar hVictimsList, hThrowItemInterval, hAutoPunish, hMagnetChance, hShoveFailChance, hAutoPunishExpire, hMagnetTargetMode;
//BOOLS
bool lateLoaded; //Is plugin late loaded
bool bChooseVictimAvailable = false; //For charge player feature, is it available?
@ -321,4 +321,7 @@ stock int FindIdlePlayerBot(int client) {
}
}
return client;
}
stock bool IsPlayerIncapped(int client) {
return GetEntProp(client, Prop_Send, "m_isIncapacitated") == 1;
}