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

CEventNetworkEntityDamage : Not Triggered or wrong data returned - 3258 #2779

Open
Derass239 opened this issue Sep 7, 2024 · 2 comments · May be fixed by #2917
Open

CEventNetworkEntityDamage : Not Triggered or wrong data returned - 3258 #2779

Derass239 opened this issue Sep 7, 2024 · 2 comments · May be fixed by #2917
Labels
bug triage Needs a preliminary assessment to determine the urgency and required action

Comments

@Derass239
Copy link

What happened?

In game build 3258 the CEventNetworkEntityDamage was not trigger when player take damage from falling before another else damage (like rammed by car)
After that, the "weapon" report by the event is always "weapon_run_over_by_car" and not "weapon_fall"

On previous build 3095, the event was directly trigger on fall with the correct "weapon".

Expected result

Triggered with good data

Reproduction steps

Artifact : 8851
Fivem : Ver. 9672/beta and 9671

  1. Create resource with this code
AddEventHandler('gameEventTriggered', function(event, data)
    if event == 'CEventNetworkEntityDamage' then
        local weapon = tonumber(data[7])
        print(weapon)
    end
end)

  1. On build 3095
  2. Take damage from fall
  3. print => -842959696 💹

  1. On Build 3258
  2. Take damage from fall => Not triggered
  3. Take damage from car => Triggered => print -1569615261 or -1553120962
  4. Take damage from fall => Trigger => print -1553120962 🟥

Importancy

Unknown

Area(s)

FiveM

Specific version(s)

Build 3258

Additional information

I saw a commit that should fix the bugs on gameEvent but from my tests there is still a problem

@Derass239 Derass239 added bug triage Needs a preliminary assessment to determine the urgency and required action labels Sep 7, 2024
@Mathu-lmn
Copy link
Contributor

It works if the fall is fatal. But I can confirm that it won't if the fall is just dealing non fatal damages.
In b2802 the even is triggered multiple times upon player damage after falling

@Derass239
Copy link
Author

Still bugged on

  • Fivem Version 10907
  • Artifact : 10573

@tens0rfl0w tens0rfl0w linked a pull request Nov 9, 2024 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug triage Needs a preliminary assessment to determine the urgency and required action
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants