-
21st February 2018, 23:10
#15
Private First Class
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;
}
-
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
-
Forum Rules