Results 1 to 10 of 73

Thread: GAS Grenade For COD2 MP

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #15
    Private First Class G-Stuff002's Avatar
    Join Date
    Jan 2018
    Posts
    212
    Thanks
    42
    Thanked 109 Times in 107 Posts
    I change and add new function waittoDie() too. I do not know what happend. I find difference, maybe at the end of code someting wrong...

    }


    if( self.health - iDamage <= 0 )
    self finishPlayerDamage( eAttacker, eAttacker, 5, iDFlags, sMeansOfDeath, sWeapon, (self.origin + (0,0,-300)), vDir, sHitLoc,psOffsetTime );
    else
    self.health = self.health -iDamage;

    if( isAlive( self ) )
    {
    if( isDefined( self.gassed ) )
    return;
    self.gassed = undefined;
    }

    }


    In new code:
    if( isAlive( self ) )
    self thread waittoDie();


    And what do it with that:
    {
    if( isDefined( self.gassed ) )
    return;
    self.gassed = undefined;
    }


    tried to change places, because have new code, and this one or not needed or need to place it correctly. I was confused in this


    waittoDie()
    {
    self endon( "disconnect" );

    self waittill( "killed_player" );

    self.gassed = undefined;
    self.puked = undefined;
    self.scr = undefined;
    }

  2. The Following User Says Thank You to G-Stuff002 For This Useful Post:

    kubislav23 (22nd February 2018)

Posting Permissions

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