ftt: Use a queue for special spawning

This commit is contained in:
Jackzie 2022-05-11 23:04:21 -05:00
parent c3e43d744a
commit d9241b2949
No known key found for this signature in database
GPG key ID: 1E834FE36520537A
11 changed files with 329 additions and 158 deletions

View file

@ -37,12 +37,9 @@ int lastButtonUser;
int lastCrescendoUser;
int g_iAttackerTarget[MAXPLAYERS+1];
int g_PendingBanTroll[MAXPLAYERS+1];
int g_iInSpit[MAXPLAYERS+1];
Timer g_inSpitTimer;
int gInstaSpecialType = -1;
int gInstaSpecialTarget;
float gInstaSpecialSpawnPos[3];
float gInstaSpecialSpawnAng[3];
bool gInstaSpecialInstaKill;
int gInstaSpecialMagnet[MAXPLAYERS+1];
char steamids[MAXPLAYERS+1][64];
@ -51,6 +48,17 @@ int shootAtTarget[MAXPLAYERS+1];
int shootAtTargetLoops[MAXPLAYERS+1];
int shootAtTargetHP[MAXPLAYERS+1];
bool spIsActive;
enum SpecialSpawnFlags {
Special_Anywhere = 0,
Special_OnTarget = 1
}
enum SpecialInternalFlags {
SPI_KillOnSpawn = 1
}
#include <feedthetrolls/base>
#include <feedthetrolls/trolls>
#include <feedthetrolls/combos>