ACE3 icon indicating copy to clipboard operation
ACE3 copied to clipboard

Auto switch to Binocular

Open Neodyn opened this issue 11 years ago • 7 comments

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

Neodyn avatar Dec 03 '15 07:12 Neodyn

Yep, can confirm.

rebelvg avatar Dec 03 '15 07:12 rebelvg

[_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.

PabstMirror avatar Dec 03 '15 08:12 PabstMirror

Fix will be done later today.

commy2 avatar Dec 03 '15 08:12 commy2

Fixed by #2935

PabstMirror avatar Dec 04 '15 21:12 PabstMirror

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.

OnkelDisMaster avatar Dec 07 '15 19:12 OnkelDisMaster

Fixes are on branch release https://github.com/acemod/ACE3/tree/release

PabstMirror avatar Dec 07 '15 19:12 PabstMirror

Oh, ok thanks and nevermind!

OnkelDisMaster avatar Dec 07 '15 19:12 OnkelDisMaster