ShotClaimclass

An owning client's report of one trigger pull - every pellet that hit something, and the damage and force the weapon says each pellet carries. Everything in it is client-reported. On claimed hits `Sandbox.DamageInfo.Hitbox` is null - hitgroups arrive as tags on each pellet (e.g. "head") instead, resolved on the client.

object→ShotClaim
Namespace
global
Assembly
Sandbox.Engine
Declaration
public sealed struct Sandbox.BaseCombatWeapon.ShotClaim

Constructors1

Showing 1 constructors

public ShotClaim(int Sequence, float Damage, float Force, Sandbox.BaseCombatWeapon.PelletClaim[] Pellets)PUBLICCONSTRUCTOR

An owning client's report of one trigger pull - every pellet that hit something, and the damage and force the weapon says each pellet carries. Everything in it is client-reported. On claimed hits `Sandbox.DamageInfo.Hitbox` is null - hitgroups arrive as tags on each pellet (e.g. "head") instead, resolved on the client.

ParameterTypeDescription
Sequenceint—
Damagefloat—
Forcefloat—
PelletsPelletClaim[]—

Methods1

Showing 1 methods

public void Deconstruct(int Sequence, float Damage, float Force, Sandbox.BaseCombatWeapon.PelletClaim[] Pellets)PUBLIC

ParameterTypeDescription
Sequenceint—
Damagefloat—
Forcefloat—
PelletsPelletClaim[]—
Returns:void—

Properties4

Showing 4 properties

On this page