Auto switch to Binocular
ACE3 Version: 3.4.0
Mods: @CBA_A3 @ace
Description: If you have an Binocular or a Rangefinder in intended slot and exit an car from driverseat the player auto switch to the Binocular or a Rangefinder.
Steps to reproduce:
- Place a Tank or Car
- Take a Binocular or a Rangefinder with you
- get in the car
- get out of the car
Yep, can confirm.
[_unit] call FUNC(binocularMagazine) is called from ace_common_fnc_getAllGear on each frame.
That selectWeapon the binocs and then attempts to switch back, but the _muzzle and _mode are from the car TruckHorn2 so it fails.
I don't think we should be running all that code each frame, maybe we can use weaponsItems.
Fix will be done later today.
Fixed by #2935
Sorry, that I ask about a fixed thing, but I´ve tested #2957 again with the current master. It still doesn´t seem to work.
Fixes are on branch release
https://github.com/acemod/ACE3/tree/release
Oh, ok thanks and nevermind!