[#modding] It doesn't appear possible to determine the source (grenade/what exploded) from ...

Issue #2918 resolved
Freehold Games Bot Account created an issue

Marked for crossposting by: exsanguination microtubules

Message (jump):

<exsanguination microtubules> It doesn't appear possible to determine the source (grenade/what exploded) from take damage events on the victim. Physics.ExplosionDamage() doesn't pass its WhatExploded parameter onward to the GO.TakeDamage() method as a Source, so that source is lost in the event propagation. In addition, further down the pipeline, Physics.ProcessTakeDamage doesn't pass the source onward to related minevents, like BeforeApplyDamageEvent.

Trying to mod in an effect that can respond intelligently to the phase of an explosion, so I want to inspect the phase of the grenade (i.e. if it's unphased, make the target phase out; if it's modded phase-harmonic, do nothing, etc...)

Comments (3)

  1. Log in to comment