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

entityDamaged baseDamaged is always zero and theres no way of really getting that value #2474

Open
mcNuggets1 opened this issue Apr 19, 2024 · 3 comments
Labels
bug triage Needs a preliminary assessment to determine the urgency and required action

Comments

@mcNuggets1
Copy link

What happened?

entityDamaged (cl) is useful and all, but without a damage value it's not of much use to me.
I'm writing a complete overhaul of gta's death system and need the event working with damage numbers.
How would I achieve that?

Expected result

working dmg numbers please

Reproduction steps

AddEventHandler('entityDamaged', function(victim, attacker, weapon, damage)
if victim == 0 or attacker == 0 then return end

print(victim, attacker, weapon, damage)

end)

Importancy

Slight inconvenience

Area(s)

FiveM, FXServer

Specific version(s)

FiveM

Additional information

No response

@mcNuggets1 mcNuggets1 added bug triage Needs a preliminary assessment to determine the urgency and required action labels Apr 19, 2024
@adom2020
Copy link

just do GetWeaponDamage(weapon) for now

@mcNuggets1
Copy link
Author

mcNuggets1 commented May 7, 2024

just do GetWeaponDamage(weapon) for now

That does account for modifiers, specific hit group, armor reduction and so on?
I don't think so.

@mcNuggets1
Copy link
Author

Also the damage seems to have some randomising to it, thus it's impossible for me to get the correct weapon damage.

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

No branches or pull requests

2 participants