mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-07 10:43:20 +00:00
ftt: bug fixes
This commit is contained in:
parent
5cf5b91603
commit
8e1dc263ad
4 changed files with 7 additions and 7 deletions
|
@ -4,7 +4,7 @@
|
|||
//Allow MAX_TROLLS to be defined elsewhere
|
||||
#if defined MAX_TROLLS
|
||||
#else
|
||||
#define MAX_TROLLS 29
|
||||
#define MAX_TROLLS 31
|
||||
#endif
|
||||
|
||||
enum trollModifier {
|
||||
|
@ -128,6 +128,9 @@ enum struct Troll {
|
|||
|
||||
Troll Trolls[MAX_TROLLS+1];
|
||||
|
||||
ArrayList categories;
|
||||
static int categoryID = -1;
|
||||
|
||||
void ResetClient(int victim, bool wipe = true) {
|
||||
if(wipe) {
|
||||
ActiveTrolls[victim] = 0;
|
||||
|
@ -140,8 +143,6 @@ void ResetClient(int victim, bool wipe = true) {
|
|||
SDKUnhook(wpn, SDKHook_Reload, Event_WeaponReload);
|
||||
}
|
||||
|
||||
ArrayList categories;
|
||||
static int categoryID = -1;
|
||||
|
||||
int SetupTroll(const char[] name, const char description[128], int mods, bool flagsMultiselectable = false, int defaultFlags = 0) {
|
||||
if(mods == 0) {
|
||||
|
@ -324,7 +325,6 @@ bool ApplyAffect(int victim, const Troll troll, int activator, trollModifier mod
|
|||
return true;
|
||||
}
|
||||
|
||||
|
||||
bool IsTrollActive(int client, const char[] troll) {
|
||||
if(ActiveTrolls[client] == 0) return false;
|
||||
static int i = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue