12 override void CreateConditionComponents()
18 override bool HasTarget()
26 if (
Class.CastTo(optics,item) && optics.IsNVOptic() )
34 override void OnExecuteServer(
ActionData action_data )
36 SwitchMode(action_data);
39 override void OnExecuteClient(
ActionData action_data )
41 SwitchMode(action_data);
47 switch (optics.GetCurrentOpticMode())
50 optics.SetCurrentOpticMode(
GameConstants.OPTICS_STATE_NIGHTVISION);