mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-07 05:23:21 +00:00
ftt: Use a queue for special spawning
This commit is contained in:
parent
c3e43d744a
commit
d9241b2949
11 changed files with 329 additions and 158 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue