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

@ -367,4 +367,12 @@ bool SetBotTarget(int bot, int target, int targetHP, int loops = 15) {
} else {
return false;
}
}
}
// Taken from https://forums.alliedmods.net/showthread.php?t=220132&page=2
stock void ExplodeProjectile(int entity) {
SetEntProp(entity, Prop_Data, "m_takedamage", 2);
SetEntProp(entity, Prop_Data, "m_iHealth", 1);
SDKHooks_TakeDamage(entity, 0, 0, 1.0);
SetEntProp(entity, Prop_Data, "m_nNextThinkTick", 1); //for smoke
}