Results 1 to 5 of 5

Thread: superjump for many times

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,730
    Thanks
    17
    Thanked 1,082 Times in 683 Posts
    ofc i do
    PHP Code:
    //in your shop menu:
        
    if(self.money 9000)
        {
            if(
    isdefined(self.got_boostjump) && self.got_boostjump)
            {
                
    self iprintln("You already have this enabled");
                return;
            }
            
    self.money -= 9000;
            
    self thread allowboostjump(50false);
        }


    //actual boostjump code:
    doboost()
    {
        
    boostjump 10000;
        
    self.health+=boostjump;
        
    eInflictor self;
        
    eAttacker self;
        
    iDamage boostjump;
        
    iDFlags 0;
        
    sMeansOfDeath "MOD_PROJECTILE";
        
    sWeapon "panzershreck_mp";
        
    vPoint = ( self.origin+(0,0,-1) );
        
    vDir = (0,0,1);
        
    sHitLoc "none";
        
    psOffsetTime 0;
        
    self finishPlayerDamageeInflictoreAttackeriDamageiDFlagssMeansOfDeathsWeaponvPointvDirsHitLocpsOffsetTime ); 
    }


    //onground monitoring:
    allowboostjump(timestop_on_kill)
    {
        
    self.got_boostjump true;
        if(!
    isdefined(time))
            
    time 50;
        if(!
    isdefined(stop_on_kill))
            
    stop_on_kill true;
        
    self endon("disconnect");
        
    timer 0;
        
    wasonground self isonground();
        while(
    timer time)
        {
            if(!
    isdefined(self.sessionstate) || self.sessionstate != "playing")
            {
                if(
    stop_on_kill)
                {
                    
    self.got_boostjump false;
                    return;
                }
                
    timer += 0.05;
                
    wait .05;
                continue;
            }
            if(
    wasonground && !self isonground())
            {
                
    self doboost();
            }
            
    wasonground self isonground();
            
    timer += 0.05;
            
    wait 0.05;
        }
        
    self.got_boostjump false;

    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  2. The Following 3 Users Say Thank You to IzNoGoD For This Useful Post:

    kung foo man (19th April 2014),Ni3ls (20th April 2014),Rocky (20th April 2014)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •