Jump to content

Falling


Phenom

Recommended Posts

Posted

Is it possible, to avoid damaging, when the player falls down from big height? If yes, how? Only for fall damage, not weapons.

Posted

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.

Posted

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 ) 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...