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
coming soon
Gamejams
Date
Theme
Date announced very soon. Theme revealed when the jam starts.
$
50,000
prizepool
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
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
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.