SwiftlyS2

CDecoyProjectile

Interface CDecoyProjectile

Namespace: SwiftlyS2.Shared.SchemaDefinitions

Assembly: SwiftlyS2.CS2.dll

public interface CDecoyProjectile : CBaseCSGrenadeProjectile, CBaseGrenade, CBaseFlex, CBaseAnimGraph, CBaseModelEntity, CBaseEntity, CEntityInstance, ISchemaClass<CEntityInstance>, ISchemaClass<CBaseEntity>, ISchemaClass<CBaseModelEntity>, ISchemaClass<CBaseAnimGraph>, ISchemaClass<CBaseFlex>, ISchemaClass<CBaseGrenade>, ISchemaClass<CBaseCSGrenadeProjectile>, ISchemaClass<CDecoyProjectile>, ISchemaField, ISchemaClass, INativeHandle

Implements

Properties

DecoyShotTick

ref int DecoyShotTick { get; }
Property Value

DecoyWeaponDefIndex

ref ushort DecoyWeaponDefIndex { get; }
Property Value

ExpireTime

GameTime_t ExpireTime { get; }
Property Value

ShotsRemaining

ref int ShotsRemaining { get; }
Property Value

Methods

DecoyShotTickUpdated()

void DecoyShotTickUpdated()

EmitGrenade(Vector, QAngle, Vector, CBasePlayerPawn?)

Creates a decoy grenade projectile.

Thread unsafe, use async variant instead for non-main thread context.

[ThreadUnsafe]
public static CDecoyProjectile EmitGrenade(Vector pos, QAngle angle, Vector velocity, CBasePlayerPawn? owner)
Parameters
  • pos Vector — The position where the decoy grenade projectile will be created.
  • angle QAngle — The angle at which the decoy grenade projectile will be created.
  • velocity Vector — The velocity of the decoy grenade projectile.
  • owner CBasePlayerPawn? — The owner of the decoy grenade projectile.
Returns

EmitGrenadeAsync(Vector, QAngle, Vector, CBasePlayerPawn?)

Creates a decoy grenade projectile asynchronously.

Task<CDecoyProjectile> EmitGrenadeAsync(Vector pos, QAngle angle, Vector velocity, CBasePlayerPawn? owner)
Parameters
  • pos Vector — The position where the decoy grenade projectile will be created.
  • angle QAngle — The angle at which the decoy grenade projectile will be created.
  • velocity Vector — The velocity of the decoy grenade projectile.
  • owner CBasePlayerPawn? — The owner of the decoy grenade projectile.
Returns

On this page