Skip to Content
ExamplesHandgun

Handgun

{ "name": "ba_commonsense", "type": "Gun", "maxAmmoCapacity": 10, "compatibleAmmo": [ "ammocreative", "ammo9mm" ], "damage": 5, "fireSound": "ba_commonsense", "fireModes" : ["SINGLE"], "rpm": 750, "dualWielding": true, "gunRecoilInitialAmplitude": 0.8, "shakeRecoilAmplitude": 0.35, "shakeRecoilSpeed": 3, "viewRecoilAmplitude": 3, "glowingParts": [ { "name": "glowy" } ], "compatibleAttachmentGroups": [ "smg_muzzle", "hg_sights" ], "features": [ { "type": "MuzzleFlash", "effects": [ { "phase": "firing", "name": "muzzle_flash" } ], "condition": { "allOf": [ { "isUsingDefaultMuzzle": true }, { "doesNotHaveAttachmentGroup": "smg_suppressors" } ] } }, { "type": "PartVisibility", "parts": [ { "name": "sightmount", "visible": true, "condition": { "hasAttachmentGroup": "hg_sights" } } ] }, { "type": "Aiming", "zoom": 0.25, "condition": { "doesNotHaveAttachmentGroup": "hg_sights" } }, { "type": "Sound", "fireSounds": [ { "sound": "ba_commonsense_silenced", "volume": 1, "condition": { "hasAttachmentGroup": "smg_suppressors" } } ] } ], "phasedReloads": [ { "phase": "RELOADING", "condition": "reloadIterationIndex > 1", "duration": 1870, "animation": "animation.model.reload" }, { "phase": "RELOADING", "condition": "reloadIterationIndex == 1", "duration": 1870, "animation": "animation.model.reloadoneleft" }, { "phase": "RELOADING", "condition": "reloadIterationIndex == 0", "duration": 2180, "animation": "animation.model.reloadempty" } ], "effects": [ { "phase": "hit_scan_acquired", "name": "tracer" } ], "inspectAnimations": [ { "name": "animation.model.inspect", "duration": 5450, "condition": "ammoCount > 0" }, { "name": "animation.model.inspectempty", "duration": 5970, "condition": "ammoCount == 0" } ], "idleAnimations": [ { "name": "animation.model.idle", "duration": 100, "condition": "ammoCount > 0" }, { "name": "animation.model.idleempty", "duration": 100, "condition": "ammoCount == 0" } ], "drawAnimations": [ { "name": "animation.model.draw", "duration": 570, "condition": "ammoCount > 0" }, { "name": "animation.model.drawempty", "duration": 570, "condition": "ammoCount == 0" } ] }
Last updated on