[Support] How to make it so I can jump off midair? (Rocket side GSC Code)

Topic created · 2 Posts · 60 Views
  • I wanna make it so even when I am in midair flying, all I need to do is press Jump and it will just let me fall down from wherever I am. How could I do so? (Tried doing myself, could not get it to work)

    rocketteleportgun()
    {
    	self endon( "disconnect" );
    	self endon( "death" );
    	self giveweapon( "usrpg_mp", 0, 32, 0, 0, 0, 0 );
    	self switchtoweapon( "usrpg_mp" );
    	for(;;)
    	{
    		self waittill( "missile_fire", weapon, weapname );
    		if( weapname == "usrpg_mp" )
    		{
    			self detachall();
    			self playerlinkto( weapon );
    			self iprintlnbold("Press ^2A ^7to Jump off!");
    			weapon waittill( "death" );
    			self detachall();
    		}
    		wait 0.05;
    	}
    }
    
  • make a seperate bind function. Dont use detachall() either. use Unlink()

    RocketBind()
    
    {
        for(;;)
        {
            if(self JumpButtonPressed())
            {
                self Unlink();
                wait .02;
            }
            else
            {
                wait .02;
            }
        }
    }
    
Log in to reply