Phenom Posted January 8, 2011 Share Posted January 8, 2011 Is it possible, to avoid damaging, when the player falls down from big height? If yes, how? Only for fall damage, not weapons. Link to comment
DiSaMe Posted January 8, 2011 Share Posted January 8, 2011 Cancel the event only in certain conditions. I don't know what the attacker and weapon would be shown in the case of falling damage, but you can try outputting them and then use those conditions. Link to comment
SDK Posted January 8, 2011 Share Posted January 8, 2011 According to the Killmessages resource, falling dead is weapon ID 54: Clientside: function stopFallingDamage ( attacker, weapon, bodypart ) if ( weapon == 54 ) then cancelEvent() end end addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), stopFallingDamage ) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now