ACE3
ACE3 copied to clipboard
Missile Guidance - Fix attack profile and laser code variable
When merged this pull request will:
- Use proper source for attack profile and laser code (both set on vehicle, currently retrieved from player)
- Don't use
E
variant macros inside laser for own variables and functions - Check list of remote targets for the locked target as one of the fallbacks for hellfire ARH onFired, to enable firing on datalink track files without needing LOS on the target or radar sensor on
- If target is a remote track, the missile isn't set as active off the rail so it doesn't go maddog
think about FFV guy shooting javelin, you want to use the shooter of the missle (themself), not vehicle player
(the car)
ref https://github.com/acemod/ACE3/blob/master/addons/missileguidance/functions/fnc_cycleAttackProfileKeyDown.sqf#L28-L35
it uses CBA_fnc_canUseWeapon
Ah damn, hadn't considered that case, will make an edit later today to factor it in
@PabstMirror Does that look correct now? Uses the same logic as the laser and attack profile source