12 if (weapon && active.
Ref() != _weapon)
14 _weapon = active.
Ref();
39 if (weapon && active.
Ref() == _weapon)
The engine's simulation clock, read straight from IVEngineServer2::GetServerGlobals().
A live entity, valid for this frame only.
CEntityInstance * Raw() const noexcept
void Release(const Pawn &pawn)
void Hold(const Pawn &pawn, const Clock &clock)
A player's body: health, armor, movement, aim, weapons. The engine replaces it on every spawn; the Co...
Entity ActiveWeapon() const
void SetNextPrimaryAttackTick(int32_t value) const
void SetNextSecondaryAttackTick(int32_t value) const
int32_t NextSecondaryAttackTick() const
int32_t NextPrimaryAttackTick() const
int HoldFireTick(const Clock &clock)