MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / UpdateSwitchNightVision

Method UpdateSwitchNightVision

ogsr_engine/xrGame/Torch.cpp:188–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188void CTorch::UpdateSwitchNightVision()
189{
190 if (!m_bNightVisionEnabled)
191 return;
192
193 auto* pA = smart_cast<CActor*>(H_Parent());
194 if (pA && m_bNightVisionOn && !pA->Cameras().GetPPEffector((EEffectorPPType)effNightvision))
195 SwitchNightVision(true);
196}
197
198void CTorch::Switch()
199{

Callers

nothing calls this directly

Calls 2

H_ParentFunction · 0.85
GetPPEffectorMethod · 0.80

Tested by

no test coverage detected