samp-weapon-config icon indicating copy to clipboard operation
samp-weapon-config copied to clipboard

Fall Damage

Open raedman90 opened this issue 3 years ago • 6 comments

Hello, how do I activate fall damage?

raedman90 avatar Feb 01 '22 01:02 raedman90

It's enabled by default

NexiusTailer avatar Feb 28 '22 06:02 NexiusTailer

Does not work, players do not drown or fall from great heights

raedman90 avatar Feb 28 '22 15:02 raedman90

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

ADRFranklin avatar Feb 28 '22 15:02 ADRFranklin

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

raedman90 avatar Feb 28 '22 16:02 raedman90

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.

adib-yg avatar Nov 18 '23 23:11 adib-yg

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

NexiusTailer avatar Apr 12 '24 11:04 NexiusTailer