SwiftlyS2

CFlashbangProjectile

Interface CFlashbangProjectile

Namespace: SwiftlyS2.Shared.SchemaDefinitions

Assembly: SwiftlyS2.CS2.dll

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

Implements

Properties

NumOpponentsHit

ref byte NumOpponentsHit { get; }
Property Value

NumTeammatesHit

ref byte NumTeammatesHit { get; }
Property Value

TimeToDetonate

ref float TimeToDetonate { get; }
Property Value

Methods

EmitGrenade(Vector, QAngle, Vector, CBasePlayerPawn?)

Creates a flashbang grenade projectile.

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

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

EmitGrenadeAsync(Vector, QAngle, Vector, CBasePlayerPawn?)

Creates a flashbang grenade projectile asynchronously.

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

On this page