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
| Field | Type |
|---|---|
m_nSmokeEffectTickBegin | int32_t |
m_bDidSmokeEffect | bool |
m_nRandomSeed | int32_t |
m_vSmokeColor | Vector |
m_vSmokeDetonationPos | Vector |
m_VoxelFrameData | CUtlVector<uint8_t> |
m_nVoxelFrameDataSize | int32_t |
m_nVoxelUpdate | int32_t |
m_nSmokeLightProbeRegen | uint8_t |
m_flLastBounce | float |
m_fllastSimulationTime | float |
m_bExplodeFromInferno | bool |
m_bDidGroundScorch | bool |
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.
| Parameter | Type | Default |
|---|---|---|
vecPosition | const Vector& | |
angAngle | const QAngle& | |
vecVelocity | const Vector& | |
nTeam | int | |
pOwner | CBaseEntity* | |
nItemDefIndex | uint32_t | |
eChain | HookChain | HookChain::Run |