Hi all, the last few days I have been trying to fix a null reference in one of my mods, I have gone through the DLL and found that Bradley creates an entity when shooting his Main Cannon.
Further investigation I have found that it is creating a "TimedExplosive" entity that explodes on contact.
My issue is that the Hitinfo generated when Explode is called by that entity does not contain any useful Hitinfo and only damage.
Can anyone think of a solution, I would need to know what created the explosion (Human or APC or other) so then my mod can handle it accordingly.
Thanks.
Further investigation I have found that it is creating a "TimedExplosive" entity that explodes on contact.
My issue is that the Hitinfo generated when Explode is called by that entity does not contain any useful Hitinfo and only damage.
Can anyone think of a solution, I would need to know what created the explosion (Human or APC or other) so then my mod can handle it accordingly.
Thanks.