16 override void InitOpticMode()
18 super.InitOpticMode();
23 override int GetCurrentNVType()
27 switch (m_CurrentOpticMode)
30 return NVTypes.NV_OPTICS_KAZUAR_DAY;
33 return NVTypes.NV_OPTICS_KAZUAR_NIGHT;
35 Error(
"Undefined optic mode of " +
this);
44 override void OnOpticModeChange()
46 super.OnOpticModeChange();
48 UpdateSelectionVisibility();
51 override void OnOpticEnter()
55 HideSelection(
"hide_cover_pilot");
58 override void UpdateSelectionVisibility()
60 super.UpdateSelectionVisibility();
62 switch (GetCurrentOpticMode())
65 HideSelection(
"hide_cover");
66 HideSelection(
"hide_cover_pilot");
70 ShowSelection(
"hide_cover");
71 if ( !
GetGame().IsDedicatedServer() && !IsInOptics() )
73 ShowSelection(
"hide_cover_pilot");
79 override void SetActions()
89 override void InitOpticMode()
91 super.InitOpticMode();
96 override int GetCurrentNVType()
100 switch (m_CurrentOpticMode)
103 return NVTypes.NV_OPTICS_STARLIGHT_DAY;
106 return NVTypes.NV_OPTICS_STARLIGHT_NIGHT;
108 Error(
"Undefined optic mode of " +
this);
117 override void OnOpticModeChange()
119 super.OnOpticModeChange();
121 UpdateSelectionVisibility();
124 override void OnOpticEnter()
126 super.OnOpticEnter();
128 HideSelection(
"hide_cover_pilot");
131 override void UpdateSelectionVisibility()
133 super.UpdateSelectionVisibility();
135 switch (GetCurrentOpticMode())
138 HideSelection(
"hide_cover");
139 HideSelection(
"hide_cover_pilot");
143 ShowSelection(
"hide_cover");
144 if ( !
GetGame().IsDedicatedServer() && !IsInOptics() )
146 ShowSelection(
"hide_cover_pilot");
152 override void SetActions()