Fix instant commons troll

This commit is contained in:
Jackz 2022-07-02 21:38:32 -05:00
parent 910a560eb9
commit 6426e525db
No known key found for this signature in database
GPG key ID: E0BBD94CF657F603
3 changed files with 1 additions and 1 deletions

1
.gitignore vendored
View file

@ -7,6 +7,7 @@
!scripting/hideandseek.sp
!scripting/guessswho.sp
!scripting/include/guessswho
!data/*.cfg
!gamedata/
template.config.js
.*

Binary file not shown.

View file

@ -287,7 +287,6 @@ bool ApplyAffect(int victim, const Troll troll, int activator, trollModifier mod
for(int i = 0; i < 30; i++) {
int c = L4D_SpawnCommonInfected(pos);
L4D2_RunScript("CommandABot({cmd=0,bot=EntIndexToHScript(%i),target=GetPlayerFromUserID(%i)})", c, victimId);
SetEntPropEnt(c, Prop_Send, "m_hTargetEntity", victim);
}
}
} else if(StrEqual(troll.name, "Randomize Clip Ammo")) {