ftt: Add troll goo

This commit is contained in:
Jackzie 2021-10-05 14:03:47 -05:00
parent 34a85513fb
commit 18c03d6065
No known key found for this signature in database
GPG key ID: 1E834FE36520537A
2 changed files with 11 additions and 2 deletions

View file

@ -311,6 +311,13 @@ bool ApplyAffect(int victim, const Troll troll, int activator, trollModifier mod
} else if(StrEqual(troll.name, "Insta Special")) {
FakeClientCommand(victim, "sm_insta");
return false;
} else if(StrEqual(troll.name, "Goo")) {
static float pos[3], ang[3];
GetClientAbsOrigin(victim, pos);
GetClientAbsAngles(victim, ang);
L4D2_SpitterPrj(victim, pos, ang);
} else if(StrEqual(troll.name, "Stagger")) {
L4D_StaggerPlayer(victim, victim, NULL_VECTOR);
} else {
#if defined DEBUG
PrintToServer("[FTT] Possibly invalid troll, no action: %s", troll.name);