Source2Toolkit
SchemaEntityClasses

CDecoyProjectile

CDecoyProjectile

Inheritance: CBaseCSGrenadeProjectile

Fields

  • m_nDecoyShotTick int32_t
  • m_shotsRemaining int32_t
  • m_fExpireTime float
  • m_decoyWeaponDefIndex uint16_t

Methods

CDecoyProjectile* EmitGrenade(vecPosition, angAngle, vecVelocity, pOwner, nItemDefIndex)

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

Parameters
  • vecPosition const Vector&
  • angAngle const QAngle&
  • vecVelocity const Vector&
  • pOwner CBaseEntity*
  • nItemDefIndex uint32_t

CDecoyProjectile* New(className)

Parameters
  • className const char*

CDecoyProjectile* FromIndex(iIndex)

Parameters
  • iIndex int

CDecoyProjectile* FromIndex(index)

Parameters
  • index CEntityIndex

CHandle<CDecoyProjectile> GetHandle()

On this page