Page MenuHomeFeedback Tracker

HandleDamage EventHandler
Closed, ResolvedPublic

Description

HandleDamage EventHandler is totally broken! It is easyly possible to increase or decrease damage taken with this handler but it is impossible to work more with it because it fires multiple times and does not fit with its documentation!

I tried the eh with the config from its documentation and got this output after shooting a blufor soldier in the chest and then in the head:

T=3.38 : [B Alpha 1-1:2,"head",0,<NULL-object>,"B_65x39_Caseless"]
T=3.38 : [B Alpha 1-1:2,"",0.330643,B Alpha 1-1:1 (bla),"B_65x39_Caseless"]
T=3.38 : [B Alpha 1-1:2,"head",0,<NULL-object>,"B_65x39_Caseless"]
T=3.38 : [B Alpha 1-1:2,"",0.193534,B Alpha 1-1:1 (bla),"B_65x39_Caseless"]
T=3.408 : [B Alpha 1-1:2,"",0.330643,B Alpha 1-1:1 (bla),"B_65x39_Caseless"]
T=3.408 : [B Alpha 1-1:2,"head",0,B Alpha 1-1:1 (bla),"B_65x39_Caseless"]
T=3.408 : [B Alpha 1-1:2,"body",0,B Alpha 1-1:1 (bla),"B_65x39_Caseless"]
T=3.408 : [B Alpha 1-1:2,"hands",0.313034,B Alpha 1-1:1 (bla),"B_65x39_Caseless"]
T=3.408 : [B Alpha 1-1:2,"",0.524177,B Alpha 1-1:1 (bla),"B_65x39_Caseless"]
T=3.408 : [B Alpha 1-1:2,"head",0,B Alpha 1-1:1 (bla),"B_65x39_Caseless"]
T=3.408 : [B Alpha 1-1:2,"body",0.309203,B Alpha 1-1:1 (bla),"B_65x39_Caseless"]
T=3.408 : [B Alpha 1-1:2,"hands",0.36613,B Alpha 1-1:1 (bla),"B_65x39_Caseless"]
Ragdoll - loading of ragdoll source "Soldier" started.
Ragdoll - loading of ragdoll source "Soldier" finished successfully.
T=5.507 : [B Alpha 1-1:2,"head",1.83417,<NULL-object>,"B_65x39_Caseless"]
T=5.507 : [B Alpha 1-1:2,"",0.721961,B Alpha 1-1:1 (bla),"B_65x39_Caseless"]
T=5.527 : [B Alpha 1-1:2,"",1.24614,B Alpha 1-1:1 (bla),"B_65x39_Caseless"]
T=5.527 : [B Alpha 1-1:2,"head",1.83417,B Alpha 1-1:1 (bla),"B_65x39_Caseless"]
T=5.527 : [B Alpha 1-1:2,"body",0.309203,B Alpha 1-1:1 (bla),"B_65x39_Caseless"]
T=5.527 : [B Alpha 1-1:2,"hands",0.384968,B Alpha 1-1:1 (bla),"B_65x39_Caseless"]

why is T=3.38 and T=3.408 for the first shot?
why is the absolut damage listed in the eh: 1.24614?
why are there multiple occurences of "" per shot?
why is there a <NULL-object>
why is there everytime listed hands, body, head, "", but no legs?

Details

Legacy ID
3147940157
Severity
None
Resolution
Duplicate
Reproducibility
Always
Category
Scripting
Steps To Reproduce

place a unit with this init and shot it:
HANDLE = this addeventhandler ["HandleDamage",{diag_log text format ["T=%1 : %2", time, _this];_this select 2;} ];

Additional Information

new example against civilian: 2 pistol shots in the chest, 1 rifle shot in the back

T=7.707 : [C Alpha 1-1:1,"head",0,<NULL-object>,"B_9x21_Ball"]
T=7.707 : [C Alpha 1-1:1,"",0.255236,B Alpha 1-1:1 (bla),"B_9x21_Ball"]
T=7.724 : [C Alpha 1-1:1,"",0.255236,B Alpha 1-1:1 (bla),"B_9x21_Ball"]
T=7.724 : [C Alpha 1-1:1,"head",0,B Alpha 1-1:1 (bla),"B_9x21_Ball"]
T=7.724 : [C Alpha 1-1:1,"body",0.0201864,B Alpha 1-1:1 (bla),"B_9x21_Ball"]
T=10.475 : [C Alpha 1-1:1,"head",0,<NULL-object>,"B_9x21_Ball"]
T=10.475 : [C Alpha 1-1:1,"",0.210731,B Alpha 1-1:1 (bla),"B_9x21_Ball"]
T=10.492 : [C Alpha 1-1:1,"",0.465968,B Alpha 1-1:1 (bla),"B_9x21_Ball"]
T=10.492 : [C Alpha 1-1:1,"head",0,B Alpha 1-1:1 (bla),"B_9x21_Ball"]
T=10.492 : [C Alpha 1-1:1,"body",0.446645,B Alpha 1-1:1 (bla),"B_9x21_Ball"]
T=22.143 : [C Alpha 1-1:1,"",0.516468,B Alpha 1-1:1 (bla),"B_65x39_Caseless"]
T=22.16 : [C Alpha 1-1:1,"",0.982435,B Alpha 1-1:1 (bla),"B_65x39_Caseless"]
T=22.16 : [C Alpha 1-1:1,"",0.444583,B Alpha 1-1:1 (bla),"B_65x39_Caseless"]
T=22.177 : [C Alpha 1-1:1,"",1.42702,B Alpha 1-1:1 (bla),"B_65x39_Caseless"]

killing blufor with headshot and firing in the corpse:

T=15.792 : [B Alpha 1-1:1,"head",2.07365,<NULL-object>,"B_762x51_Ball"]
T=15.792 : [B Alpha 1-1:1,"",1.01,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=15.809 : [B Alpha 1-1:1,"",1.01,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=15.809 : [B Alpha 1-1:1,"head",2.07365,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=67.942 : [880c4080# 163941: b_soldier_01.p3d,"head",1.94909,<NULL-object>,"B_762x51_Ball"]
T=67.942 : [880c4080# 163941: b_soldier_01.p3d,"",0.454647,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=67.959 : [880c4080# 163941: b_soldier_01.p3d,"",1.46465,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=67.959 : [880c4080# 163941: b_soldier_01.p3d,"head",1.94909,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=69.944 : [880c4080# 163941: b_soldier_01.p3d,"head",1,<NULL-object>,"B_762x51_Ball"]
T=69.944 : [880c4080# 163941: b_soldier_01.p3d,"",0.62972,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=69.961 : [880c4080# 163941: b_soldier_01.p3d,"",2.09437,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=69.961 : [880c4080# 163941: b_soldier_01.p3d,"head",1,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=69.961 : [880c4080# 163941: b_soldier_01.p3d,"body",0.670691,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=69.961 : [880c4080# 163941: b_soldier_01.p3d,"hands",0.0627399,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=71.943 : [880c4080# 163941: b_soldier_01.p3d,"head",1.02592,<NULL-object>,"B_762x51_Ball"]
T=71.943 : [880c4080# 163941: b_soldier_01.p3d,"",0.626444,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=71.96 : [880c4080# 163941: b_soldier_01.p3d,"",2.72081,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=71.96 : [880c4080# 163941: b_soldier_01.p3d,"head",1.02592,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=71.96 : [880c4080# 163941: b_soldier_01.p3d,"body",1.33789,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=71.96 : [880c4080# 163941: b_soldier_01.p3d,"hands",0.364997,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=76.356 : [880c4080# 163941: b_soldier_01.p3d,"head",1,<NULL-object>,"B_762x51_Ball"]
T=76.356 : [880c4080# 163941: b_soldier_01.p3d,"",0.489091,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=76.373 : [880c4080# 163941: b_soldier_01.p3d,"",3.2099,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=76.373 : [880c4080# 163941: b_soldier_01.p3d,"head",1,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=76.373 : [880c4080# 163941: b_soldier_01.p3d,"body",1.52091,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=76.373 : [880c4080# 163941: b_soldier_01.p3d,"hands",0.497691,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=76.373 : [880c4080# 163941: b_soldier_01.p3d,"legs",0.192725,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=80.534 : [880c4080# 163941: b_soldier_01.p3d,"head",1.01059,<NULL-object>,"B_762x51_Ball"]
T=80.534 : [880c4080# 163941: b_soldier_01.p3d,"",0.629557,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=80.551 : [880c4080# 163941: b_soldier_01.p3d,"",3.83946,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=80.551 : [880c4080# 163941: b_soldier_01.p3d,"head",1.01059,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=80.551 : [880c4080# 163941: b_soldier_01.p3d,"body",1.67052,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=80.551 : [880c4080# 163941: b_soldier_01.p3d,"hands",0.826347,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=82.545 : [880c4080# 163941: b_soldier_01.p3d,"head",2.00252,<NULL-object>,"B_762x51_Ball"]
T=82.545 : [880c4080# 163941: b_soldier_01.p3d,"",0.480243,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=82.562 : [880c4080# 163941: b_soldier_01.p3d,"",4.3197,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=82.562 : [880c4080# 163941: b_soldier_01.p3d,"head",2.00252,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=86.257 : [880c4080# 163941: b_soldier_01.p3d,"head",1,<NULL-object>,"B_762x51_Ball"]
T=86.257 : [880c4080# 163941: b_soldier_01.p3d,"",0.500367,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=86.274 : [880c4080# 163941: b_soldier_01.p3d,"",4.82007,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=86.274 : [880c4080# 163941: b_soldier_01.p3d,"head",1,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=86.274 : [880c4080# 163941: b_soldier_01.p3d,"body",1,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=86.274 : [880c4080# 163941: b_soldier_01.p3d,"hands",0.826347,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=86.274 : [880c4080# 163941: b_soldier_01.p3d,"legs",0.748009,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=89.914 : [880c4080# 163941: b_soldier_01.p3d,"head",1,<NULL-object>,"B_762x51_Ball"]
T=89.914 : [880c4080# 163941: b_soldier_01.p3d,"",0.298569,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=89.93 : [880c4080# 163941: b_soldier_01.p3d,"",5.11864,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=89.93 : [880c4080# 163941: b_soldier_01.p3d,"head",1,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=89.93 : [880c4080# 163941: b_soldier_01.p3d,"body",1.31799,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=89.93 : [880c4080# 163941: b_soldier_01.p3d,"hands",0.839353,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=89.93 : [880c4080# 163941: b_soldier_01.p3d,"legs",1.2515,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=91.973 : [880c4080# 163941: b_soldier_01.p3d,"head",1,<NULL-object>,"B_762x51_Ball"]
T=91.973 : [880c4080# 163941: b_soldier_01.p3d,"",0.629561,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=91.99 : [880c4080# 163941: b_soldier_01.p3d,"",5.7482,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=91.99 : [880c4080# 163941: b_soldier_01.p3d,"head",1,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=91.99 : [880c4080# 163941: b_soldier_01.p3d,"body",1.67052,O Alpha 1-1:1 (bla),"B_762x51_Ball"]
T=91.99 : [880c4080# 163941: b_soldier_01.p3d,"hands",1.10253,O Alpha 1-1:1 (bla),"B_762x51_Ball"]

Event Timeline

Coding edited Steps To Reproduce. (Show Details)Sep 1 2013, 9:13 PM
Coding edited Additional Information. (Show Details)
Coding set Category to Scripting.
Coding set Reproducibility to Always.
Coding set Severity to None.
Coding set Resolution to Duplicate.
Coding set Legacy ID to 3147940157.May 7 2016, 4:26 PM

Dupe of #16460.