Flaky aHitDir behavior.

Found a bug in the game? Post it in one of the applicable sub forums depending on the version you are using. Tech support is also available in the Tech Support subforum.
Post Reply
User avatar
AssumedPseudonym
Fleet Officer
Fleet Officer
Posts: 1036
Joined: Thu Aug 29, 2013 5:18 am
Location: On the other side of the screen.

Mon Sep 15, 2014 5:04 pm

 At least I’m fairly sure this one’s a bug. In the process of trying to see how aHitDir works in <OnDamageArmor> and <OnDamageShields>, I got some rather strange results. Sitting still directly below a Centauri camp, I was getting results anywhere 256 to 283. Retesting from directly above, it was between 75 and 105. A bit of further poking revealed that the numbers represent degrees, with 0/360 being directly to the right and progressing counterclockwise. That much I get. I don’t get why I’m getting a randomized 30° of variance on aHitDir when neither I nor my target is moving.

EDIT: Bluh. Minor flub on my part. It’s checking the angle the shot was going, not the direction on the object where the hit was registered. Either way, though, the value still shouldn’t be bouncing around like that with two stationary objects.
Image

My mods on Xelerus: Click here!

Of all the things I’ve lost in life, I miss my mind the least. (I’m having a lot more fun without it!)

Post Reply