Entity systemClasses

CSmokeGrenadeProjectile

Schema class CSmokeGrenadeProjectile, derived from CBaseCSGrenadeProjectile.

Generated from the game's schema. Header: source2mod/schema/entity/classes/CSmokeGrenadeProjectile.h

Inherits CBaseCSGrenadeProjectile

Fields

FieldType
m_nSmokeEffectTickBeginint32_t
m_bDidSmokeEffectbool
m_nRandomSeedint32_t
m_vSmokeColorVector
m_vSmokeDetonationPosVector
m_VoxelFrameDataCUtlVector<uint8_t>
m_nVoxelFrameDataSizeint32_t
m_nVoxelUpdateint32_t
m_nSmokeLightProbeRegenuint8_t
m_flLastBouncefloat
m_fllastSimulationTimefloat
m_bExplodeFromInfernobool
m_bDidGroundScorchbool

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 CSmokeGrenadeProjectile* EmitGrenade(const Vector& vecPosition, const QAngle& angAngle, const Vector& vecVelocity, int nTeam, CBaseEntity* pOwner, uint32_t nItemDefIndex, HookChain eChain = HookChain::Run);

Spawns a live grenade of this type. Ported from SwiftlyS2.

ParameterTypeDefault
vecPositionconst Vector&
angAngleconst QAngle&
vecVelocityconst Vector&
nTeamint
pOwnerCBaseEntity*
nItemDefIndexuint32_t
eChainHookChainHookChain::Run

On this page