Skip to Content
ExamplesMelee Weapon

Melee Weapon

There are multiple ways of creating melee weapons. They use a clever combination of different features, including ammo capacity, preparefire, fire animations, etc..

{ "name": "hl_crowbar", "type": "Gun", "maxAmmoCapacity": "infinite", "compatibleAmmo": [ "ammocreative" ], "damage": 5, "fireSound": "hl_crowbar", "fireSoundVolume": 1, "fireModes": [ "AUTOMATIC" ], "rpm": 222, "drawCooldownDuration": 420, "shakeRecoilAmplitude": 0.35, "shakeRecoilSpeed": 2, "viewRecoilAmplitude": 0, "inspectCooldownDuration": 2330, "maxShootingDistance": 3.5, "completeFireCooldownDuration": 350, "phasedReloads": [ { "phase": "RELOADING", "duration": 3350, "animation": "animation.model.reload" } ], "fireAnimations": [ { "name": "animation.model.fire", "condition": "random" }, { "name": "animation.model.fire2", "condition": "random" }, { "name": "animation.model.fire3", "condition": "random" }, { "name": "animation.model.fire4", "condition": "random" }, { "name": "animation.model.fire5", "condition": "random" } ] }
{ "name": "metalgear_hfblade", "type": "Gun", "maxAmmoCapacity" : "infinite", "compatibleAmmo" : [ "ammocreative" ], "drawCooldownDuration" : 650, "fireSound" : "metalgear_hfblade", "damage": 11.0, "rpm": 200, "gunRecoilInitialAmplitude" : 0.0, "shakeRecoilAmplitude" : 0.0, "shakeRecoilSpeed" : 0.0, "viewRecoilAmplitude" : 0, "inspectCooldownDuration": 7070, "aimingEnabled": false, "thirdPersonFallbackAnimations": "metalgear_sword", "glowingParts": [ { "name": "glowy", "texture": "textures/effect/metalgear_blueelectricity.png", "direction": "west", "sprites": { "type": "loop", "rows": 5, "columns": 5, "fps": 60 } }, { "name": "glowy2", "texture": "textures/effect/metalgear_blueelectricity.png", "direction": "east", "sprites": { "type": "loop", "rows": 5, "columns": 5, "fps": 80 } } ], "features": [ { "type": "FireMode", "fireModes": [ { "name": "metalgear_melee", "displayName": "label.pointblank.fireMode.metalgear_melee", "type": "AUTOMATIC", "rpm": 200, "damage": 11.0, "maxShootingDistance": 4.5, "prepareFireAnimations": [ { "name": "animation.model.preparefire", "duration": 320 } ], "fireAnimations": [ { "name": "animation.model.swing1", "condition": "random" }, { "name": "animation.model.swing2", "condition": "random" }, { "name": "animation.model.swing3", "condition": "random" }, { "name": "animation.model.swing4", "condition": "random" } ] } ] } ] }
Last updated on