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

Method Show

ogsr_engine/xrGame/Weapon.cpp:2051–2062  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2049}
2050
2051void CWeapon::Show(bool now)
2052{
2053 if (now)
2054 {
2055 StopCurrentAnimWithoutCallback();
2056 OnStateSwitch(eIdle, GetState());
2057 SetState(eIdle);
2058 StopHUDSounds();
2059 }
2060 else
2061 SwitchState(eShowing);
2062}
2063
2064bool CWeapon::show_crosshair() { return psActorFlags.test(AF_CROSSHAIR_DBG) || !(IsZoomed() && ZoomHideCrosshair()); }
2065

Callers 10

IR_OnKeyboardPressMethod · 0.45
VisualUpdateMethod · 0.45
detach_ActorMethod · 0.45
ActivateMethod · 0.45
IR_OnKeyboardPressMethod · 0.45
OnFrameMethod · 0.45
start_logo_introMethod · 0.45
StartMenuMethod · 0.45
AddDialogToRenderMethod · 0.45
RemoveDialogToRenderMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected