s&
infoAbout
infoAbout s&box newspaperLatest News published_with_changesChanges mapRoadmap monitoringMetrics
gamesGames
sports_esportsBrowse Games exploreDiscover Games
categoryWorkshop
sports_esportsGames landscapeMaps view_in_arModels textureMaterials apparelClothing constructionMore..
forumForum menu_bookLearn
docsDocumentation apiApi Reference schoolTutorials manage_searchCode Search
inputLog in with Steam chevron_leftChange Language
简体中文EnglishРусскийEspañolPortuguês-BrasilDeutsch日本語FrançaisPolskiTürkçe한국어PirateItalianoไทย繁體中文УкраїнськаČeštinaNederlandsMagyarDanskSuomiSvenskaNorskΕλληνικάRomânăБългарскиTiếng ViệtBahasa IndonesiaEspañol-Latinoaméricaالعربية
Api
Classes
BallisticConfig
chevron_left Classes
struct
BallisticConfig

Constructors

functionsBallisticConfig

Properties

data_objectDamagedata_objectForcedata_objectPelletsdata_objectRadiusdata_objectRangedata_objectSpreadBasedata_objectSpreadGrowthdata_objectSpreadRecovery
BallisticConfig
Ballistics for a volley of bullets - damage, pellets, spread and reach.
struct Sandbox.BaseWeapon .
sealedSandbox.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.
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter