API Referenceglobal
BallisticConfigclass
Ballistics for a volley of bullets - damage, pellets, spread and reach.
object→BallisticConfig
Constructors1
Showing 1 constructors
public BallisticConfig()
Ballistics for a volley of bullets - damage, pellets, spread and reach.
No results match this filter.
Properties8
Showing 8 properties
public float Sandbox.BaseCombatWeapon.BallisticConfig.Damage { get; set; }
Damage dealt by each pellet.
Returns:
float—public float Sandbox.BaseCombatWeapon.BallisticConfig.Force { get; set; }
Impulse applied to the physics body a pellet hits.
Returns:
float—public int Sandbox.BaseCombatWeapon.BallisticConfig.Pellets { get; set; }
Pellets per shot - 1 for a bullet, more for a shotgun blast.
Returns:
int—public float Sandbox.BaseCombatWeapon.BallisticConfig.Radius { get; set; }
Pellet radius - 0 for a thin ray, higher to be forgiving.
Returns:
float—public float Sandbox.BaseCombatWeapon.BallisticConfig.Range { get; set; }
How far each pellet travels.
Returns:
float—public Vector2 Sandbox.BaseCombatWeapon.BallisticConfig.SpreadBase { get; set; }
Spread cone in degrees when settled - x wide, y tall.
public Vector2 Sandbox.BaseCombatWeapon.BallisticConfig.SpreadGrowth { get; set; }
Extra spread in degrees at full bloom, added by recent firing.
public float Sandbox.BaseCombatWeapon.BallisticConfig.SpreadRecovery { get; set; }
Seconds after a shot for the spread to settle back to base.
Returns:
float—No results match this filter.