MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / SilencerIsEquipped

Function SilencerIsEquipped

TombEngine/Game/pickup/pickup_misc_items.cpp:8–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include "Objects/objectslist.h"
7
8auto SilencerIsEquipped(LaraInfo& lara)
9{
10 if (lara.Weapons[(int)LaraWeaponType::Uzi].HasSilencer ||
11 lara.Weapons[(int)LaraWeaponType::Pistol].HasSilencer ||
12 lara.Weapons[(int)LaraWeaponType::Shotgun].HasSilencer ||
13 lara.Weapons[(int)LaraWeaponType::Revolver].HasSilencer ||
14 lara.Weapons[(int)LaraWeaponType::Crossbow].HasSilencer ||
15 lara.Weapons[(int)LaraWeaponType::HK].HasSilencer)
16 {
17 return true;
18 }
19
20 return false;
21};
22
23auto LaserSightIsEquipped(LaraInfo& lara)
24{

Callers 2

TryModifyMiscCountFunction · 0.85
HasMiscItemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected