Zandronum Chat on our Discord Server Get the latest version: 3.1
Source Code

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004190Zandronum[All Projects] Bugpublic2024-01-30 04:522024-02-09 22:09
ReporterStrikerMan780 
Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
StatusnewResolutionopen 
PlatformMicrosoftOSWindowsOS VersionXP/Vista/7
Product Version3.1 
Target VersionFixed in Version 
Summary0004190: GAMEEVENT_ACTOR_ARMORDAMAGED doesn't fire for radius damage
DescriptionGAMEEVENT_ACTOR_ARMORDAMAGED doesn't seem to trigger when hit by radius damage, even though radius damage can affect armor.
Steps To ReproduceJust make an event script checking for type == GAMEEVENT_ACTOR_ARMORDAMAGED, and have it print when fired. Use the rocket launcher on some enemies, and you'll notice that the script will only fire for enemies that were directly hit, and not for any that were hit with splash damage.
Attached Files

- Relationships

-  Notes
User avatar (0023060)
WaTaKiD (updater)
2024-02-09 14:58

example wad please
User avatar (0023065)
StrikerMan780 (reporter)
2024-02-09 16:06

About to go to sleep, but I'll get one uploaded when I wake up tomorrow.
User avatar (0023067)
StrikerMan780 (reporter)
2024-02-09 20:31
edited on: 2024-02-09 22:09

Had some interesting findings. There's a Inventory != NULL check before executing the event in P_DamageMobj, and if a monster doesn't have any inventory, the event won't fire. This means if you give the monster so much as a clip, or other random item, the event will then fire.

Perhaps the ticket title/description should be renamed "GAMEEVENT_ACTOR_ARMORDAMAGED doesn't fire if actor lacks an inventory."

I propose moving the event call up a line, out of that block, and naming the event something more appropriate, like GAMEEVENT_ACTOR_DAMAGE_PREARMOR, as this code occurs BEFORE any armor takes damage, not when it is taking damage.

This way, it'll behave more consistently, but still keep its current use/function. It would also mean one doesn't have to go around giving everyone dummy items so it works across all monsters/players.


Issue Community Support
Only registered users can voice their support. Click here to register, or here to log in.
Supporters: No one explicitly supports this issue yet.
Opponents: No one explicitly opposes this issue yet.

- Issue History
Date Modified Username Field Change
2024-01-30 04:52 StrikerMan780 New Issue
2024-02-09 14:58 WaTaKiD Note Added: 0023060
2024-02-09 16:06 StrikerMan780 Note Added: 0023065
2024-02-09 20:31 StrikerMan780 Note Added: 0023067
2024-02-09 20:31 StrikerMan780 Note Edited: 0023067 View Revisions
2024-02-09 20:32 StrikerMan780 Note Edited: 0023067 View Revisions
2024-02-09 20:33 StrikerMan780 Note Edited: 0023067 View Revisions
2024-02-09 21:48 StrikerMan780 Note Edited: 0023067 View Revisions
2024-02-09 21:49 StrikerMan780 Note Edited: 0023067 View Revisions
2024-02-09 21:49 StrikerMan780 Note Edited: 0023067 View Revisions
2024-02-09 21:51 StrikerMan780 Note Edited: 0023067 View Revisions
2024-02-09 21:55 StrikerMan780 Note Edited: 0023067 View Revisions
2024-02-09 22:08 StrikerMan780 Note Edited: 0023067 View Revisions
2024-02-09 22:09 StrikerMan780 Note Edited: 0023067 View Revisions






Questions or other issues? Contact Us.

Links


Copyright © 2000 - 2024 MantisBT Team
Powered by Mantis Bugtracker