• Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

[Fix] Classic Compass is Broken

-=THOR=-

Grizzled Veteran
Sep 20, 2011
1,050
50
If north is to your left, then you turn left, the compass says north is behind you, although you should be facing it. Probably just a small mistake, the rotation needs to be reversed... something like this:

Code:
	if ( NorthOffset.Yaw != 0 )
	{
		HudComponents[ROSCC_ROSE].Rotation.Yaw = [COLOR="Red"][B]-[/B][/COLOR]NewPlayerRotation.Yaw + NorthOffset.Yaw + 32767;
	}
	else
	{
		HudComponents[ROSCC_ROSE].Rotation.Yaw = [COLOR="red"][B]-[/B][/COLOR]NewPlayerRotation.Yaw;
	}

P.S.: Edited the title, but it didn't edit the 'thread' title :/
 
Last edited: