Entity systemClasses
CDecoyProjectile
Schema class CDecoyProjectile, derived from CBaseCSGrenadeProjectile.
Generated from the game's schema. Header: source2mod/schema/entity/classes/CDecoyProjectile.h
Inherits CBaseCSGrenadeProjectile
Fields
| Field | Type |
|---|---|
m_nDecoyShotTick | int32_t |
m_shotsRemaining | int32_t |
m_fExpireTime | float |
m_decoyWeaponDefIndex | uint16_t |
Schema fields are accessors: read with entity->m_field(), write with entity->m_field = value (the write marks the field for networking).
Methods
EmitGrenade
static CDecoyProjectile* EmitGrenade(const Vector& vecPosition, const QAngle& angAngle, const Vector& vecVelocity, CBaseEntity* pOwner, uint32_t nItemDefIndex, HookChain eChain = HookChain::Run);Spawns a live grenade of this type. Ported from SwiftlyS2.
| Parameter | Type | Default |
|---|---|---|
vecPosition | const Vector& | |
angAngle | const QAngle& | |
vecVelocity | const Vector& | |
pOwner | CBaseEntity* | |
nItemDefIndex | uint32_t | |
eChain | HookChain | HookChain::Run |