mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Forgot to set terminal on short-range attacks. Fixes #630
This commit is contained in:
parent
f40373bb78
commit
5bcb0ec493
@ -48,9 +48,12 @@ switch( (_state select 0) ) do {
|
||||
_cruisAlt = 140 * (_distanceShooterToTarget/1250);
|
||||
TRACE_1("_cruisAlt", _cruisAlt);
|
||||
};
|
||||
|
||||
if( ((ASLToATL _projectilePos) select 2) - ((ASLToATL _seekerTargetPos) select 2) >= _cruisAlt) then {
|
||||
_state set[0, STAGE_COAST];
|
||||
if(_cruisAlt < 140) then {
|
||||
_state set[0, STAGE_TERMINAL];
|
||||
} else {
|
||||
_state set[0, STAGE_COAST];
|
||||
};
|
||||
} else {
|
||||
_returnTargetPos = _seekerTargetPos vectorAdd [0,0,_distanceToTarget*2];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user