Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fall Damage #237

Open
raedman90 opened this issue Feb 1, 2022 · 6 comments
Open

Fall Damage #237

raedman90 opened this issue Feb 1, 2022 · 6 comments

Comments

@raedman90
Copy link

Hello, how do I activate fall damage?

@NexiusTailer
Copy link
Contributor

NexiusTailer commented Feb 28, 2022

It's enabled by default

@raedman90
Copy link
Author

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

@ADRFranklin
Copy link
Collaborator

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

@raedman90
Copy link
Author

raedman90 commented Feb 28, 2022

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

@adib-yg
Copy link

adib-yg commented Nov 18, 2023

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.

@NexiusTailer
Copy link
Contributor

NexiusTailer commented Apr 12, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants