[tr-808] Z-collision and distance checks
Posted: Mon Mar 17, 2008 8:00 pm
I have a weapon that uses distance checks (A_JumpIfCloser) to see if the player is within melee range of an actor. It appears to work fine when attacking the front side of the actor, but when attacking from the bottom or the top side, it does not trigger properly, and melee attacks don't work fully either (The attack still occurs but no sound is played and the player's view isn't adjusted as would normally be).
The weapon that's not functioning correctly is attached below.
EDIT: Now here's a strange fact that I noticed: if you hit the top of an object while looking down at it, it doesn't count as a hit to melee or A_JumpIfCloser, but if you're literally standing on top of the object so that the object is "behind" you and you attack straight down (I'm using GZDoom to test this since it would be impossible due to the constrained freelook), it does count as a hit.
The weapon that's not functioning correctly is attached below.
EDIT: Now here's a strange fact that I noticed: if you hit the top of an object while looking down at it, it doesn't count as a hit to melee or A_JumpIfCloser, but if you're literally standing on top of the object so that the object is "behind" you and you attack straight down (I'm using GZDoom to test this since it would be impossible due to the constrained freelook), it does count as a hit.