Page 1 of 1

OnReflect() virtual

PostPosted: Sat Jun 01, 2019 1:33 am
by Graham Crosslewire
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?

Re: OnReflect() virtual

PostPosted: Thu Dec 19, 2019 7:12 pm
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.