Definition at line 1 of file ActionViewBinoculars.c.
◆ ActionCondition()
Definition at line 14 of file ActionViewBinoculars.c.
15 {
18 return true;
19 return false;
20 }
Super root of all classes in Enforce script.
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
References Class::CastTo().
◆ EnterOptics()
Definition at line 22 of file ActionViewBinoculars.c.
23 {
24 player.SetIronsights(
false);
25 player.SetHandheldOpticsInUse(
true);
28 optic.HideSelection(
"hide");
29 if (NVGoggles.Cast(
optic) &&
optic.ConfigIsExisting(
"simpleHiddenSelections"))
30 optic.SetSimpleHiddenSelectionState(0,
false);
31
32 if (
optic.HasEnergyManager())
33 {
36 return;
37
40 rf.GetCompEM().SwitchOn();
41 }
42 }
proto native CGame GetGame()
References GetGame().
◆ ExitOptics()
Definition at line 44 of file ActionViewBinoculars.c.
45 {
46 optic.ShowSelection(
"hide");
47 if (NVGoggles.Cast(
optic) &&
optic.ConfigIsExisting(
"simpleHiddenSelections"))
48 optic.SetSimpleHiddenSelectionState(0,
true);
49 player.SetHandheldOpticsInUse(
false);
51 if (
optic.HasEnergyManager())
52 {
55 return;
56
59 rf.GetCompEM().SwitchOff();
60 }
61 }
References GetGame().
◆ OnActionInfoUpdate()
◆ m_workingRangefinder
bool ActionViewBinoculars::m_workingRangefinder |
|
private |
The documentation for this class was generated from the following file: