ItemSpawn: Jumper for both teams

This commit is contained in:
neon 2018-08-14 18:47:36 +02:00
parent 64a8e01aad
commit 2d355a2ac5

View File

@ -29,7 +29,7 @@ public Action Command_Jumper(int client, int argc)
for (int i = 0; i < iTargetCount; i++)
{
if(IsClientInGame(iTargets[i]) && IsPlayerAlive(iTargets[i]) && (ZR_IsClientZombie(iTargets[i])))
if(IsClientInGame(iTargets[i]) && IsPlayerAlive(iTargets[i]))
{
GetClientEyePosition(iTargets[i], fOrigin);
SpawnJumper(fOrigin);
@ -88,7 +88,6 @@ public void SpawnJumper(float fOrigin[3])
// trigger_once strip.
int iTriggerStrip = CreateEntityAtOrigin("trigger_once", fOrigin);
DispatchKeyFormat(iTriggerStrip, "targetname", "item_jumper_strip_%d", g_iCounter);
DispatchKeyFormat(iTriggerStrip, "filtername", "item_filter_zombie");
DispatchKeyFormat(iTriggerStrip, "spawnflags", "1");
DispatchKeyFormat(iTriggerStrip, "startdisabled", "1");
DispatchKeyFormat(iTriggerStrip, "OnStartTouch", "item_spawn_weaponstrip,StripWeaponsAndSuit,,0,1");