#ifdef SVQC
void trigger_teleport_use()
-{
+{SELFPARAM();
if(teamplay)
self.team = activator.team;
#ifdef SVQC
#endif
}
-void Teleport_Touch (void)
-{
- entity oldself;
+void Teleport_Touch ()
+{SELFPARAM();
string s;
if (self.active != ACTIVE_ACTIVE)
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()
+spawnfunc(trigger_teleport)
{
self.angles = '0 0 0';