load an AT missile and switch to top-down,
then reload an AP missile and the missile guidance stops working
Description
Description
Details
Details
- Severity
- Trivial
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 10 x64
- Category
- Engine
Steps To Reproduce
Start with titan launcher with AT ammo
Hit F to switch to "Top Attack"
Reload AP Ammo
Hud still shows top attack
Fire missile and it goes straight with no guidance (should be "wire guided" for AP)
the following code will quickly get into bugged state
removeAllWeapons player; player addWeapon "launch_B_Titan_short_F"; player selectWeapon "launch_B_Titan_short_F"; // start with AT ammo player addWeaponItem ["launch_B_Titan_short_F", ["Titan_AT", 1]]; // switch to top down mode { _x params ["_xIndex", "", "", "", "_xMode"]; if (_xMode == "TopDown") exitWith { player action ["SwitchWeapon", player, player, _xIndex]; }; } forEach (player weaponsInfo ["launch_B_Titan_short_F", true]); // reload ap player addWeaponItem ["launch_B_Titan_short_F", ["Titan_AP", 1]]; systemChat format ["Still in mode %1", currentWeaponMode player];
Additional Information
I guess we need some kind of check between flightProfiles[] on the ammo and modes[] on the weapon when reloading?