Post: [Error Code: G_Spawn: too many entities] No Clip for Zombies is crashing the game!
07-30-2018, 07:24 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Its just happening when i use the Noclip mode.
Please reply in this thread if you know a fix for that!
Thanks anyways!
    
doNoclip()
{
if(self.doNoclip==false)
{
* *self iPrintln("No-Clip: [^5Enabled^7]");
* * * *self thread tNoclip();
* *self.doNoclip=true;
}
else
{
* * self iPrintln("No-Clip: [^1Disabled^7]");
self unlink();
* * * * self enableweapons();
* * * * self.originObj delete();
self notify("stop_noclip");
self.doNoclip=false;
}
}
tNoclip()
{
* * while(1)
* * {
* * self thread NoClip();
* * * * self waittill("rechain");
* * * * self notify("stop_noclip");
* * }
}
Noclip()
{
* * self endon("stop_noclip");*
* * self.first=true;*
normalized = undefined;
scaled = undefined;
originpos = undefined;
* * while( 1 )
* * {
* * * * if( self fragbuttonpressed())
* * * * {
* * * * if(self.doNoclip)
* * * * {
* * * * self.originObj = spawn( "script_origin", self.origin, 1 );
* * self.originObj.angles = self.angles;
* * * * self disableweapons();
* * * * self playerlinkto( self.originObj, undefined );
* * * * self.first=false;
* * * * }
* * * * * * normalized = anglesToForward( self getPlayerAngles() );
* * * * * * scaled = vectorScale( normalized, 50 );
* * * * * * originpos = self.origin + scaled;
* * * * * * self.originObj.origin = originpos;
* * * * }
* * * * else if(self meleeButtonPressed()&&!self.first)
* * * * {
* * * * * * self unlink();
* * * * * * self enableweapons();
* * * * * * self.originObj delete();
* * * * * * self notify("rechain");*
* * * * }**
* * * * wait .05;
* * }* *
}

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo