s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News
jams
Workshop
Steam
open_in_newSteam Workshop
Assets
view_in_arModels textureMaterials apparelClothing
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
Get s&box
Sign in with Steam
Api
Classes
WeaponHolds
chevron_left Classes
class
WeaponHolds

Static Fields

crop_dinDualPistolscrop_dinFistscrop_dinItemcrop_dinKnifecrop_dinMeleecrop_dinMeleeTwoHandedcrop_dinNonecrop_dinPistolcrop_dinPistolTwoHandedcrop_dinRiflecrop_dinShotguncrop_dinShouldercrop_dinSmgcrop_dinThrowablecrop_dinTool

Static Methods

functionsNormalize
WeaponHolds
Well-known names for how a weapon is held (Sandbox.BaseCombatWeapon.HoldType). Games may use their own names too.
class Sandbox .
staticsealedabstractSandbox.Engine

crop_din Static Fields 15

DualPistols
string
Fists
string
Item
string
Knife
string
Melee
string
MeleeTwoHanded
string
None
string
Pistol
string
PistolTwoHanded
string
Rifle
string
Shotgun
string
Shoulder
string
Rested on the shoulder, like a rocket launcher.
Smg
string
Throwable
string
Tool
string

functions Static Methods 1

Normalize (name)
string
The well-known name for , ignoring case, including the citizen animgraph's holdtype options (rpg, physgun, holditem, melee_punch, melee_weapons). Any other name is returned unchanged.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter