Skip to content

Commit f436e52

Browse files
Missile Guidance - Add support for CBA disposable launchers on SACLOS (#11329)
* add support for disposables on saclos seeker * Update addons/missileguidance/functions/fnc_seekerType_SACLOS.sqf Oh good shout, I forgot that there are no cba-added vanilla disposables. Co-authored-by: PabstMirror <pabstmirror@gmail.com> --------- Co-authored-by: PabstMirror <pabstmirror@gmail.com>
1 parent c922f6d commit f436e52

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

addons/missileguidance/functions/fnc_seekerType_SACLOS.sqf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ private _projPos = getPosASL _projectile;
3333
private _lookDirection = switch (_dirMode) do {
3434
case SCALOS_DIR_WEAPON: { // Player/StaticWeapon
3535
_shooterPos = eyePos _shooter;
36+
if (_weapon isNotEqualTo (currentWeapon _shooter)) then {
37+
if (isNil "CBA_disposable_usedLaunchers") exitWith {};
38+
_weapon = CBA_disposable_usedLaunchers getOrDefault [_weapon, _weapon];
39+
};
3640
_shooter weaponDirection _weapon
3741
};
3842
case SCALOS_DIR_ANIM: { // use animationSourcePhase

0 commit comments

Comments
 (0)