deathsythe47 / base_entranced

base_entranced : Siege server mod for Jedi Knight: Jedi Academy
GNU General Public License v2.0
8 stars 1 forks source link

Reflecting missiles (push etc) #153

Closed deathsythe47 closed 6 years ago

deathsythe47 commented 8 years ago

Currently it goes toward one angle of the map no matter where you are facing or where the missile is headed.

Even upon using Sil's fixed random float generator, however, the missile still bounces back in the direction opposite of where it was headed, regardless of where the pusher is facing. This makes no sense: imagine you are standing next to a teammate and you are both facing the same direction. Your teammate shoots a rocket straight ahead. If you push the rocket, it reflects directly back at you guys, potentially killing one or both of you. This makes 0 sense from a physics standpoint.

A proper fix for reflection would be one that incorporates Sil's fixed random float generator , and bases reflection angle on the angle of the pusher rather than simply the opposite of the missile's original angle.