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

Method IsScopeAttached

ogsr_engine/xrGame/Weapon.cpp:1447–1451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1445}
1446
1447bool CWeapon::IsScopeAttached() const
1448{
1449 return (CSE_ALifeItemWeapon::eAddonAttachable == m_eScopeStatus && 0 != (m_flagsAddOnState & CSE_ALifeItemWeapon::eWeaponAddonScope)) ||
1450 CSE_ALifeItemWeapon::eAddonPermanent == m_eScopeStatus;
1451}
1452
1453bool CWeapon::IsSilencerAttached() const
1454{

Callers 7

UpdateMethod · 0.80
is_snipperFunction · 0.80
is_scopeMethod · 0.80
UpdateMethod · 0.80
ActivatePropertiesBoxMethod · 0.80
UpdatePickUpItemMethod · 0.80
ActivatePropertiesBoxMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected