Post: GSC Freezes When Adding Option help
10-12-2014, 09:40 PM #1
NGUTactical
Pokemon Trainer
(adsbygoogle = window.adsbygoogle || []).push({}); when i add this code into my gsc it freeze mid loading screen is there something im not doing
do you have to put the codes in order of the options or something can someone help me pleese thx

heres the code

Toggle_Multijump()
{
if(self.MultiJump==0)
{
self thread onPlayerMultijump();
self.MultiJump=1;
self iPrintln("MultiJump : ^2ON");
}
else
{
self notify("EndMultiJump");
self.MultiJump=0;
self iPrintln("MultiJump : ^1OFF");
}
}
10-14-2014, 01:51 PM #2
Zambie
< ^ > < ^ >
Originally posted by HaXingIsGoD View Post
when i add this code into my gsc it freeze mid loading screen is there something im not doing
do you have to put the codes in order of the options or something can someone help me pleese thx

heres the code

Toggle_Multijump()
{
if(self.MultiJump==0)
{
self thread onPlayerMultijump();
self.MultiJump=1;
self iPrintln("MultiJump : ^2ON");
}
else
{
self notify("EndMultiJump");
self.MultiJump=0;
self iPrintln("MultiJump : ^1OFF");
}
}


This code is incorrect replace it with this

    onPlayerMultijump()
{
self endon( "disconnect" );
self thread landsOnGround();
self notifyOnPlayerCommand( "action_made_+gostand", "+gostand" );

if(!isDefined(level.numOfMultijumps))
level.numOfMultijumps = 0;

for(;Winky Winky
{
currentNum = 0;
self waittill( "action_made_+gostand" );

if ( !isAlive( self ) )
{
self waittill("spawned_player");
continue;
}

if ( !self isOnGround() )
{
while( !self isOnGround() && isAlive( self ) && currentNum < level.numOfMultijumps)
{
waittillResult = self waittill_any( "action_made_+gostand", "landedOnGround", "disconnect", "death" );

if(waittillResult == "action_made_+gostand" && !self isOnGround() && isAlive( self ))
{
playerAngles = self getplayerangles();
playerVelocity = self getVelocity();
if(playerVelocity[2] < 0)
playerVelocity[2] = 0;
self setvelocity( (playerVelocity[0], playerVelocity[1], playerVelocity[2] + sqrt(getDvarFloat("jump_height") * getDvarInt("g_gravity") * 2) ) );

currentNum++;
}
else
break;
}

while(!self isOnGround())
wait 0.05;
}
}
}

landsOnGround()
{
self endon( "disconnect" );
loopResult = true;
for(;Winky Winky
{
wait 0.05;
newResult = self isOnGround();
if(newResult != loopResult)
{
if(!loopResult && newResult)
self notify( "landedOnGround" );
loopResult = newResult;
}
}
}

Copyright © 2025, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo