samp-weapon-config
samp-weapon-config copied to clipboard
Fall Damage
Hello, how do I activate fall damage?
It's enabled by default
Does not work, players do not drown or fall from great heights
Then there is a problem with your script, you are either hooking the callbacks yourself or using another library that is doing so, or you have stuff in OnPlayerDamage
that is preventing it happening
I left an example below of what is happening
public OnPlayerDamage(&playerid, &Float:amount, &issuerid, &weapon, &bodypart) { if(issuerid != INVALID_PLAYER_ID) { //// } return 1; }
https://youtu.be/-NHpG20dMrc https://youtu.be/iaOqTg7bY0Q
I'm still doing some tests to find the problem, still ineffective
I have the same problem. I just added the weapon-config to a gamemode and players don't take damage from falling from heights, it was fine before I added it.
Then I started debugging.
OnPlayerTakeDamage
and OnPlayerGiveDamage
callbacks are not called in the include when the player falls from a height.
I think the data is sent from the client is overwritten by pawn.raknet.
I've tried hard to find the problem in include but can't find anything. @oscar-broman please fix this.
it does also happen only to certain clients
If all these clients are android implementations, then it's probably their problem and a subject to fix on their side