Installation & Configuration/Guns
Guns.yml - here you create your own guns
Sniper: damage: 8 melee-damage: 2 head-shot-damage: 20 range: 70 reload-time: 60 shot-delay: 40 shots-between-reload: 6 knockback: 40 recoil: 0 texture: 'http://dl.dropbox.com/u/44243469/GunPack/Textures/sniper.png' zoom-texture: 'http://dl.dropbox.com/u/44243469/GunPack/Textures/sniperScreen.png' shot-sound: url: 'http://dl.dropbox.com/u/44243469/GunPack/Sounds/sniper.ogg' volume: 100 reload-sound: url: 'http://dl.dropbox.com/u/44243469/GunPack/Sounds/reload.ogg' volume: 75 ammo: 'SniperAmmo, sulphur' zoom-factor: 8 projectile: type: 'NONE' speed: 0 accuracy: random-factor: 3.0 spread-angle: '3->0' missing-chance: '60->5' damage-change: -0.1 critical: 10 weight: 30 hud-enabled: true additions: Silencer, ExtraScope mountable: false shootable: true fire-behavior: single effects: smoke_effect: type: particle args: - type: smoke - amount: 4 - max-age: 60 - gravity: 1 - scale: 1 target: type: flightpath args: - length: 20 potion_effect: type: potion args: - id: 9 - duration: 100 - strength: 5 target: type: targetentity
These are the nodes, the accepted value types and their function.
node | value | function |
---|---|---|
damage | integer | the damage the gun deals per hit(if it is not a headshot) in half hearts, means 4=2 hearts |
melee | integer | the damage the gun deals per hit(in actaul physical use) in half hearts, means 4=2 hearts |
head-shot-damage | integer | the damage the gun deals per headshot, again in half hearts |
range | integer | the range of the gun in blocks |
reload-time | integer | the time each reload takes in server ticks; 20 ticks = 1 second |
shot-delay | integer | the time the gun is delayed after a shot in server ticks |
shots-between-reload | integer | the count of shots you can proceed after the gun will autoreload/you have to reload |
knockback | float | a multiplier on how fast you will be knocked back each shot |
recoil | integer | the value of vertical recoil in degrees; NOTE: this will not let you move or aim during shooting, since we use a teleport to perform this |
texture | string | the texture url of this gun |
zoom-texture | string | the url of the texture you want to show up if someone zoomes in with this gun |
shot-sound.url | string | the url where the shot sound of this gun is located |
reload-sound.url | string | the url where the reload sound of this gun is located |
shot-sound.volume | string | the volume of the shot sound in percent |
reload-sound.volume | string | the volume of the reload sound in percent |
ammo | string | comma separated list of ammo names this gun will be able to consume on shot, you can put vanilla item names too |
zoom-factor | integer | the strength of the zoom |
projectile.type | string | the type of the projectile in CAPITAL LETTERS; see below for accepted values |
projectile.speed | float | the speed factor of the projectile, means as it is a multiplier 1.0 is the normal speed |
damage-change | float | the amount the damage of the gun should change by one block distance to the target,e.g -1 means it decreases by one per block |
critical | integer | the chance of a critical hit (means instant kill) in percent |
weight | float | the weight of the gun in percent, 100 means you can't move anymore |
additions | string | a comma separated list of the additions that can be added to this gun |
accuracy.random-factor | float | a certain randomness of spreading a bit around the guns |
accuracy.missing-chance | integer | the chance of missing the target in percent separated by the '->' pointer. The value before the pointer means the missing-chance if zoomed out, after the pointer means if zoomed in |
accuracy.spread-angle | integer | the spread angle in degrees separated by the '->' pointer. The value before the pointer means the spread if zoomed out, after the pointer means if zoomed in |
effects | - | see the the effects page to learn more about effects |
hud-enabled | true/false | set either the hud will show this gun and the ammo or not |
mountable | true/false | set either you can mount this gun on a tripod or not |
shootable | true/false | set either you can shoot with this gun in your hand or not;NOTE: this is useful to make mountable only guns |
fire-behavior | string | there are two settings right now: single (you have to press the fire key over and over again to fire), automatic (you can hold down the fire key) |
This are the available projectile types:
- EGG
- SNOWBALL
- ARROW
- ENDERPEARL
- FIREBALL
- FIRECHARGE
Is it possible to use item id textures instead of urls for the gun and zoom textures? And also can you just use regular minecraft sound names instead of urls too?