Page MenuHomeFeedback Tracker

M2 HMG gunner can't use his NVG if use iron sights
New, NormalPublic

Description

Take a look at the door gunners of the UH-80 Ghost Hawk, they have no optics on weapon but gunner can use night vision goggles (see screenshot in Additional Information)
However the gunner on M2 with the same iron sights cannot use NVG:

Details

Severity
Major
Resolution
Open
Reproducibility
Always
Operating System
Windows 11 x64
Operating System Version
22H2
Category
General
Steps To Reproduce
  1. place e.g. class B_G_HMG_02_F
  2. get in gunner
  3. go aim, right mouse button
  4. try to use NVG

result→ we will not be able to do this

Additional Information

Event Timeline

TRAGER created this task.May 3 2023, 7:27 AM

Compared to Ghost Hawk turret, static M2 has optics = 1;, maybe its the cause? Couldn't find this parameter description in https://community.bistudio.com/wiki/Turret_Config_Reference

TRAGER added a comment.EditedMay 3 2023, 1:16 PM

seems found a problem

visionMode doesn't exist in door gunner turrets of Ghost Hawk

So need to delete visionMode from this config
configfile >> "CfgVehicles" >> "HMG_02_base_F" >> "Turrets" >> "MainTurret" >> "ViewGunner" >> "ViewOptics"

See what actions are needed to fix this issue

TRAGER added a comment.EditedMay 4 2023, 6:23 AM

ye m2 offroad turret doesn't have visionMode too, there is no such problem on an offroad as a static turret

issue location: a3\static_f\hmg_02\config.cpp line 207

Iron sights of M2 vision mode have only "normal" mode, like for 2D optic (see: CfgVehicles → HMG_02_base_F → Turrets → MainTurret → ViewOptics → visionMode)
visionMode parameter must be empty to allow player use his head equipment, i.e.:

vanillaneed change to
visionMode[]={"Normal"};visionMode[]={};
honger added a subscriber: honger.May 22 2023, 3:29 PM

@BIS_fnc_KK can you please take a look into it