fivem icon indicating copy to clipboard operation
fivem copied to clipboard

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

Open mcNuggets1 opened this issue 1 year ago • 3 comments

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 avatar Apr 19 '24 13:04 mcNuggets1

just do GetWeaponDamage(weapon) for now

adom2020 avatar Apr 25 '24 18:04 adom2020

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 avatar May 07 '24 12:05 mcNuggets1

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

mcNuggets1 avatar May 12 '24 13:05 mcNuggets1