toggleNoclip()
{
if(!self.noclip)
{
self thread noclip();
self.noclip = true;
self iPrintln("Noclip ^2ON");
self iPrintln("Press [{+smoke}] to fly");
// thread onDeathResetToggleVariables();
return;
}
self notify("stopNoclip");
self.noclip = false;
self iPrintln("Noclip ^1OFF");
}
noclip()
{
self endon("death");
self endon("stopNoclip");
self.Fly = 0;
UFO = spawn("script_model",self.origin);
while(1)
{
if(self secondaryoffhandbuttonpressed())
{
self playerLinkTo(UFO);
self.Fly = 1;
}
else
{
self unlink();
self.Fly = 0;
}
if(self.Fly == 1)
{
Fly = self.origin + vectorScale(anglesToForward(self getPlayerAngles()), 30);
UFO moveTo(Fly,.01);
}
wait .001;
}
}
saveCurrentLocation()
{
self.savedOrigin = self.origin;
self.savedAngles = self.angles;
self iPrintln("^2Location saved");
}
loadSavedLocation()
{
self setPlayerAngles(self.savedAngles);
self setOrigin(self.savedOrigin);
}
// Spawns a platform under the caller's feet and teleports him there
spawnPlatform()
{
startpos = self.origin + (0, 0, -15);
while (isDefined(self.spawnedcrate[0][0]))
{
i = -3;
while (i < 3)
{
d = -3;
while (d < 3)
{
self.spawnedcrate[i][d] delete();
d++;
}
i++;
}
}
i = -3;
while (i < 3)
{
d = -3;
while (d < 3)
{
self.spawnedcrate[i][d] = spawn("script_model", startpos + (d * 40, i * 70, 0));
self.spawnedcrate[i][d] setmodel("t6_wpn_supply_drop_ally");
d++;
}
i++;
}
iprintlnBold("^2Platform^7 spawned");
}
toggleNoclip()
{
if(!self.noclip)
{
self thread noclip();
self.noclip = true;
self iPrintln("Noclip ^2ON");
self iPrintln("Press [{+smoke}] to fly");
// thread onDeathResetToggleVariables();
return;
}
self notify("stopNoclip");
self.noclip = false;
self iPrintln("Noclip ^1OFF");
}
noclip()
{
self endon("death");
self endon("stopNoclip");
self.Fly = 0;
UFO = spawn("script_model",self.origin);
while(1)
{
if(self secondaryoffhandbuttonpressed())
{
self playerLinkTo(UFO);
self.Fly = 1;
}
else
{
self unlink();
self.Fly = 0;
}
if(self.Fly == 1)
{
Fly = self.origin + vectorScale(anglesToForward(self getPlayerAngles()), 30);
UFO moveTo(Fly,.01);
}
wait .001;
}
}
saveCurrentLocation()
{
self.savedOrigin = self.origin;
self.savedAngles = self.angles;
self iPrintln("^2Location saved");
}
loadSavedLocation()
{
self setPlayerAngles(self.savedAngles);
self setOrigin(self.savedOrigin);
}
// Spawns a platform under the caller's feet and teleports him there
spawnPlatform()
{
startpos = self.origin + (0, 0, -15);
while (isDefined(self.spawnedcrate[0][0]))
{
i = -3;
while (i < 3)
{
d = -3;
while (d < 3)
{
self.spawnedcrate[i][d] delete();
d++;
}
i++;
}
}
i = -3;
while (i < 3)
{
d = -3;
while (d < 3)
{
self.spawnedcrate[i][d] = spawn("script_model", startpos + (d * 40, i * 70, 0));
self.spawnedcrate[i][d] setmodel("t6_wpn_supply_drop_ally");
d++;
}
i++;
}
iprintlnBold("^2Platform^7 spawned");
}
Copyright © 2026, NextGenUpdate.
All Rights Reserved.