OnReflect() virtual

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

Guest

OnReflect() virtual

Post by Guest »

Because CanCollideWith should not affect actors in the playsim, as Matt mentioned in the SetDamage() randomization parameter thread, I am unable to find any other way to modify projectiles that have been reflected by something with +REFLECTIVE. Would it be possible to have a virtual with one parameter that's a pointer to the reflected actor that would be called on the reflecting actor?
User avatar
Mor'Ladim
Posts: 298
Joined: Tue Sep 27, 2005 7:38 am
Location: An artifact in an image you foolishly saved as a JPEG.

Re: OnReflect() virtual

Post by Mor'Ladim »

This would be a useful feature and I could see this opening up some very interesting mechanics for mods were it to be added.

For example, my mod has an ability to reflect enemy projectiles. There was an attempt to improve it by increasing the damage value of the projectile after a successful reflect. The resulting attempt would cause a bug where the damage could scale up by a tremendous amount, due to misuse of CanCollideWith.
Post Reply

Return to “Feature Suggestions [GZDoom]”