s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
published_with_changes
Changes
Release-by-release changelog
Games
Browse Games
Discover Games
gamejams
live now
Game Jam III
Ends
Fri 25 Sep
Theme
One More Round
The jam is running. Build something, or play the entries.
£
50,000
prizepool
View the jam
Workshop
Playable
sports_esports
Games
Standalone games and gamemodes
Assets
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
apps
Everything
Every asset type in one list
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
input
Log 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.