// dead people cannot cheat
if(self.deadflag != DEAD_NO)
return 0;
- if(self.classname != "player")
+ if(gamestart_sv_cheats < 2 && !IS_PLAYER(self))
return 0;
// sv_clones
break;
}
}
- if(MoveToRandomMapLocation(self, DPCONTENTS_SOLID | DPCONTENTS_CORPSE | DPCONTENTS_PLAYERCLIP, DPCONTENTS_SLIME | DPCONTENTS_LAVA | DPCONTENTS_SKY | DPCONTENTS_BODY | DPCONTENTS_DONOTENTER, Q3SURFACEFLAG_SKY, ((gamestart_sv_cheats >= 2) ? 100000 : 100), 1024, 256))
+ if(MoveToRandomMapLocation(self, DPCONTENTS_SOLID | DPCONTENTS_CORPSE | DPCONTENTS_PLAYERCLIP, DPCONTENTS_SLIME | DPCONTENTS_LAVA | DPCONTENTS_SKY | DPCONTENTS_BODY | DPCONTENTS_DONOTENTER, Q3SURFACEFLAG_SKY, ((gamestart_sv_cheats < 2) ? 100 : 100000), 384, 384))
{
sprint(self, "Emergency teleport used random location\n");
self.angles_x = -self.angles_x;
e2 = spawn();
setorigin(e2, e.origin);
- RadiusDamage(e2, self, 1000, 0, 128, world, 500, DEATH_CHEAT, e);
+ RadiusDamage(e2, self, 1000, 0, 128, world, world, 500, DEATH_CHEAT, e);
remove(e2);
print("404 Sportsmanship not found.\n");
return FALSE;
// if(draggee.model == "")
// return FALSE;
- if(draggee.classname == "spectator")
+ if(IS_SPEC(draggee))
return FALSE;
- if(draggee.classname == "observer")
+ if(IS_OBSERVER(draggee))
return FALSE;
if(draggee.classname == "exteriorweaponentity")
return FALSE;
float Drag_CanDrag(entity dragger)
{
- return (dragger.deadflag == DEAD_NO) || (dragger.classname == "player");
+ return (dragger.deadflag == DEAD_NO) || (IS_PLAYER(dragger));
}
float Drag_IsDragging(entity dragger)