MantisBT - Zandronum
View Issue Details
0004158Zandronum[All Projects] Bugpublic2023-08-28 05:122024-01-30 04:48
Mr. Satan 
 
lowminoralways
newopen 
MicrosoftWindows8.1
3.1 
 
0004158: Event 12 (GAMEEVENT_ACTOR_ARMORDAMAGED) is executed after PowerProtection items
Event 12 (GAMEEVENT_ACTOR_ARMORDAMAGED) is executed after PowerProtection items are applied.
Also happen in Zandronum 3.2-alpha-230709-1914.
Load attached file. Summon Cyberdemon and let him attack you. The script should output 100+ damage every hit you take. Give yourself TestProtectionGiver and the damage amount outputted by the script is reduced to ~10.
ZScript's ModifyDamage event is executed before everything and outputs the raw damage.
No tags attached.
? DamageEventTest.pk3 (998) 2023-08-28 05:12
https://zandronum.com/tracker/file_download.php?file_id=2861&type=bug
Issue History
2023-08-28 05:12Mr. SatanNew Issue
2023-08-28 05:12Mr. SatanFile Added: DamageEventTest.pk3
2023-08-28 10:47PenguinNote Added: 0022911
2023-09-01 03:20Mr. SatanNote Added: 0022912
2023-09-02 08:18Mr. SatanNote Edited: 0022912bug_revision_view_page.php?bugnote_id=22912#r14005
2024-01-30 04:48StrikerMan780Note Added: 0023044
2024-02-11 00:40StrikerMan780Note Deleted: 0023044

Notes
(0022911)
Penguin   
2023-08-28 10:47   
GAMEEVENT_ACTOR_ARMORDAMAGED is called after damage is calculated by PowerProtection and before Armor.SavePercent.
GAMEEVENT_ACTOR_DAMAGED is also called after damage is calculated by PowerProtection etc.
I don't think it's a bug with the current behavior.
(0022912)
Mr. Satan   
2023-09-01 03:20   
(edited on: 2023-09-02 08:18)
This limits the capability of this event. If someone was to try to make a custom Reflect mechanic using it, the damage dealt back would be reduced if they had a PowerProtection Item. Drain would also be affected if the monster shields using a PowerProtection item.