View Issue Details

IDProjectCategoryView StatusLast Update
0009227Multi Theft Auto : San AndreasWeaponspublic2017-10-02 19:29
ReporterxnikoxdAssigned Tolopezloo 
PrioritylowSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version1.5.2 
Target VersionFixed in Version1.5.3 
Summary0009227: Fire Extinguisher (ID: 42) doesnt trigger onPedWasted
Description

Hi! I found this new bug.

The Weapon 42 doesnt trigger the "onPedWasted" event, i tried it several times and it simply doesnt work. Try it yourself.

server-side:

function test(_, killer, weapon)
if (weapon == 42) then
outputChatBox("If you see this text, then the bug is fixed")
end
end
addEventHandler("onPedWasted", root, test)

Steps To Reproduce

Kill a ped with a Fire Extinguisher
Done

TagsNo tags attached.

Activities

xnikoxd

2016-05-06 04:41

viewer   ~~0024659

Video of the bug: https://youtu.be/xecOFyzoKGg

IIYAMA12

2016-05-06 18:48

viewer   ~~0024660

Last edited: 2016-05-06 18:48

View 2 revisions

What is the actually dead reason? Maybe handy to know.

function test(_, killer, weapon)
if (weapon == 42) then
outputChatBox("If you see this text, then the bug is fixed")
else
outputChatBox("If you see this text, the dead reason is: " .. tostring(weapon))
end
end
addEventHandler("onPedWasted", root, test)

lopezloo

2016-05-11 10:55

developer   ~~0024665

There is no dead reason as onPedWasted and onClientPedWasted event doesn't be ever called. Even health doesn't update leading to desync.

My PR: https://github.com/multitheftauto/mtasa-blue/pull/43

Issue History

Date Modified Username Field Change