OnReflect() virtual

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

Moderator: GZDoom Developers

OnReflect() virtual

Postby Graham Crosslewire » Sat Jun 01, 2019 1:33 am

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?
Graham Crosslewire

Re: OnReflect() virtual

Postby Mor'Ladim » Thu Dec 19, 2019 7:12 pm

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.
User avatar
Does this man finish anything?!
Joined: 27 Sep 2005
Location: An artifact in an image you foolishly saved as a JPEG.
Discord: Mor'ladim#7303

Return to Feature Suggestions

Who is online

Users browsing this forum: No registered users and 2 guests