[Release] Rocket Ride Code Snippet

Topic created · 3 Posts · 245 Views
  • for da trickshotters that copy and paste for their mods, enjoy this

    all you need to do is call monitor_rocket_ride on a player once & thread it

    monitor_rocket_ride()
    {
        self endon("disconnect");
        level endon("game_ended");
    
        for(;;)
        {
            self waittill("missile_fire", weap, weapname);
            if (weapname == "usrpg_mp" || weapname == "smaw_mp")
            {
                self notify("newrocket");
                self unlink();
                self playerlinkto(weap);
                self thread rocket_ride_shit();
                self thread rocket_ride_death(weap);
            }
        }
    }
    
    rocket_ride_death(weap)
    {
        self endon("newrocket");
        weap waittill("death");
        self notify("ye");
        self unlink();
    }
    
    rocket_ride_shit()
    {
        self endon("newrocket");
        self endon("ye");
        for(;;)
        {
            if (self jumpbuttonpressed())
            {
                self unlink();
                wait 0.02;
            }
            else
            {
                wait 0.02;
            }
        }
    }
    
  • nothing was understood successfully

  • @AdrX003 What?

Log in to reply