CHEGrenadeProjectile
Interface CHEGrenadeProjectile
Namespace: SwiftlyS2.Shared.SchemaDefinitions
Assembly: SwiftlyS2.CS2.dll
public interface CHEGrenadeProjectile : CBaseCSGrenadeProjectile, CBaseGrenade, CBaseAnimGraph, CBaseModelEntity, CBaseEntity, CEntityInstance, IEquatable<CEntityInstance>, ISchemaClass<CEntityInstance>, ISchemaClass<CBaseEntity>, ISchemaClass<CBaseModelEntity>, ISchemaClass<CBaseAnimGraph>, ISchemaClass<CBaseGrenade>, ISchemaClass<CBaseCSGrenadeProjectile>, ISchemaClass<CHEGrenadeProjectile>, ISchemaField, ISchemaClass, INativeHandleImplements
- CBaseCSGrenadeProjectile
- CBaseGrenade
- CBaseAnimGraph
- CBaseModelEntity
- CBaseEntity
- CEntityInstance
- IEquatable<CEntityInstance>
- ISchemaClass<CEntityInstance>
- ISchemaClass<CBaseEntity>
- ISchemaClass<CBaseModelEntity>
- ISchemaClass<CBaseAnimGraph>
- ISchemaClass<CBaseGrenade>
- ISchemaClass<CBaseCSGrenadeProjectile>
- ISchemaClass<CHEGrenadeProjectile>
- ISchemaField
- ISchemaClass
- INativeHandle
Methods
EmitGrenade(Vector, QAngle, Vector, CBasePlayerPawn?)
Creates a HE grenade projectile.
Thread unsafe, use async variant instead for non-main thread context.
[ThreadUnsafe]
public static CHEGrenadeProjectile EmitGrenade(Vector pos, QAngle angle, Vector velocity, CBasePlayerPawn? owner)Parameters
- pos Vector — The position where the HE grenade projectile will be created.
- angle QAngle — The angle at which the HE grenade projectile will be created.
- velocity Vector — The velocity of the HE grenade projectile.
- owner CBasePlayerPawn? — The owner of the HE grenade projectile.
Returns
- CHEGrenadeProjectile — The created HE grenade projectile.
EmitGrenadeAsync(Vector, QAngle, Vector, CBasePlayerPawn?)
Creates a HE grenade projectile asynchronously.
Task<CHEGrenadeProjectile> EmitGrenadeAsync(Vector pos, QAngle angle, Vector velocity, CBasePlayerPawn? owner)Parameters
- pos Vector — The position where the HE grenade projectile will be created.
- angle QAngle — The angle at which the HE grenade projectile will be created.
- velocity Vector — The velocity of the HE grenade projectile.
- owner CBasePlayerPawn? — The owner of the HE grenade projectile.
Returns
- Task<CHEGrenadeProjectile> — The created HE grenade projectile.