mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Simplify spectator compass code
This commit is contained in:
parent
ec2a90f62c
commit
9ee2f10f63
@ -46,19 +46,12 @@ _positions = [
|
||||
[_compassW + _offset, 0]
|
||||
];
|
||||
|
||||
_sequence = if (_heading < 90) then {
|
||||
[_SW, _WN, _NE, _ES]
|
||||
} else {
|
||||
if (_heading < 180) then {
|
||||
[_WN, _NE, _ES, _SW]
|
||||
} else {
|
||||
if (_heading < 270) then {
|
||||
[_NE, _ES, _SW, _WN]
|
||||
} else {
|
||||
[_ES, _SW, _WN, _NE]
|
||||
};
|
||||
};
|
||||
};
|
||||
_sequence = [
|
||||
[_SW, _WN, _NE, _ES],
|
||||
[_WN, _NE, _ES, _SW],
|
||||
[_NE, _ES, _SW, _WN],
|
||||
[_ES, _SW, _WN, _NE]
|
||||
] select floor(_heading/90);
|
||||
|
||||
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user