s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
jams
Workshop
Steam
open_in_new
Steam Workshop
Assets
view_in_ar
Models
texture
Materials
apparel
Clothing
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
Get s&box
Sign in with Steam
Api
Classes
BallisticConfig
chevron_left
Classes
struct
BallisticConfig
Constructors
functions
BallisticConfig
Properties
data_object
Damage
data_object
Force
data_object
Pellets
data_object
Radius
data_object
Range
data_object
SpreadBase
data_object
SpreadGrowth
data_object
SpreadRecovery
BallisticConfig
Ballistics for a volley of bullets - damage, pellets, spread and reach.
struct
Sandbox.BaseCombatWeapon
.
sealed
Sandbox.Engine
build
Constructors
1
BallisticConfig
(
)
Ballistics for a volley of bullets - damage, pellets, spread and reach.
data_object
Properties
8
Damage
float
Damage dealt by each pellet.
Force
float
Impulse applied to the physics body a pellet hits.
Pellets
int
Pellets per shot - 1 for a bullet, more for a shotgun blast.
Radius
float
Pellet radius - 0 for a thin ray, higher to be forgiving.
Range
float
How far each pellet travels.
SpreadBase
Vector2
Spread cone in degrees when settled - x wide, y tall.
SpreadGrowth
Vector2
Extra spread in degrees at full bloom, added by recent firing.
SpreadRecovery
float
Seconds after a shot for the spread to settle back to base.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.