#ifdef SVQC
void trigger_teleport_use()
-{
+{SELFPARAM();
if(teamplay)
self.team = activator.team;
#ifdef SVQC
}
void Teleport_Touch (void)
-{
- entity oldself;
+{SELFPARAM();
string s;
if (self.active != ACTIVE_ACTIVE)
if(!other.vehicle.teleportable)
return;
- if(other.turrcaps_flags & TFL_TURRCAPS_ISTURRET)
+ if(IS_TURRET(other))
return;
if(other.deadflag != DEAD_NO)
if(IS_PLAYER(other))
RemoveGrapplingHook(other);
- entity e;
- e = Simple_TeleportPlayer(self, other);
+ entity e = Simple_TeleportPlayer(self, other);
activator = other;
s = self.target; self.target = string_null;
SUB_UseTargets();
if (!self.target) self.target = s;
- oldself = self;
- self = e;
- SUB_UseTargets();
- self = oldself;
+ WITH(entity, self, e, SUB_UseTargets());
}
void spawnfunc_trigger_teleport()
-{
+{SELFPARAM();
self.angles = '0 0 0';
EXACTTRIGGER_INIT;