Add default ammo for guns (#1207)

* Add default ammo types

* Add revolver and bolt action default pro support

Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com>
This commit is contained in:
metalgearsloth
2020-06-25 01:29:40 +10:00
committed by GitHub
parent f6da38ccb9
commit 63f2724341
11 changed files with 71 additions and 6 deletions

View File

@@ -56,6 +56,7 @@
sprite: Objects/Guns/LMGs/l6.rsi
- type: RangedWeapon
- type: MagazineBarrel
magFillPrototype: MagazineLRifleBox
fireRate: 5
minAngle: 0
maxAngle: 45
@@ -91,6 +92,7 @@
sprite: Objects/Guns/LMGs/pk.rsi
- type: RangedWeapon
- type: MagazineBarrel
magFillPrototype: MagazineLRiflePkBox
fireRate: 5
minAngle: 0
maxAngle: 45

View File

@@ -37,6 +37,7 @@
currentSelector: Single
allSelectors:
- Single
fillPrototype: GrenadeFrag
fireRate: 1
capacity: 3
soundEmpty: /Audio/Guns/Empty/empty.ogg
@@ -70,6 +71,7 @@
currentSelector: Single
allSelectors:
- Single
fillPrototype: RocketAmmo
fireRate: 0.5
capacity: 1
soundEmpty: /Audio/Guns/Empty/empty.ogg

View File

@@ -31,6 +31,7 @@
maxAngle: 60
angleIncrease: 10
angleDecay: 60
magFillPrototype: MagazinePistol
soundGunshot: /Audio/Guns/Gunshots/pistol.ogg
soundEmpty: /Audio/Guns/Empty/empty.ogg
soundRack: /Audio/Guns/Cock/pistol_cock.ogg
@@ -193,6 +194,7 @@
caliber: Magnum
magazineTypes:
- Pistol
magFillPrototype: MagazineMagnum
autoEjectMag: true
fireRate: 5
minAngle: 0
@@ -236,6 +238,7 @@
caliber: ClRifle
magazineTypes:
- Pistol
magFillPrototype: MagazineClRiflePistol
autoEjectMag: true
canMuzzleFlash: false # Dat in-built suppressor
minAngle: 0
@@ -330,6 +333,7 @@
magazineTypes:
- HCPistol
- Smg
magFillPrototype: MagazinePistolSmg
autoEjectMag: true
fireRate: 6
minAngle: 0

View File

@@ -37,6 +37,7 @@
currentSelector: Single
allSelectors:
- Single
fillPrototype: CartridgeMagnum
caliber: Magnum
capacity: 5
autoCycle: true
@@ -69,6 +70,7 @@
currentSelector: Single
allSelectors:
- Single
fillPrototype: CartridgeMagnum
caliber: Magnum
capacity: 7
soundEmpty: /Audio/Guns/Empty/empty.ogg
@@ -94,6 +96,7 @@
currentSelector: Single
allSelectors:
- Single
fillPrototype: CartridgeMagnum
caliber: Magnum
capacity: 7
soundEmpty: /Audio/Guns/Empty/empty.ogg

View File

@@ -16,6 +16,7 @@
currentSelector: Automatic
allSelectors:
- Automatic
magFillPrototype: MagazineLRifle
fireRate: 5
minAngle: 0
maxAngle: 45
@@ -132,6 +133,7 @@
caliber: SRifle
magazineTypes:
- Rifle
magFillPrototype: MagazineSRifle
fireRate: 5
minAngle: 0
maxAngle: 45
@@ -172,6 +174,7 @@
caliber: ClRifle
magazineTypes:
- Rifle
magFillPrototype: MagazineClRifle10x24
fireRate: 8
minAngle: 10
maxAngle: 60
@@ -255,6 +258,7 @@
caliber: SRifle
magazineTypes:
- Rifle
magFillPrototype: MagazineSRifle
fireRate: 5
minAngle: 0
maxAngle: 45
@@ -293,6 +297,7 @@
caliber: SRifle
magazineTypes:
- Rifle
magFillPrototype: MagazineSRifle
autoEjectMag: true
fireRate: 5
minAngle: 0

View File

@@ -25,6 +25,7 @@
maxAngle: 60
angleIncrease: 10
angleDecay: 60
magFillPrototype: MagazinePistolSmg
soundGunshot: /Audio/Guns/Gunshots/smg.ogg
soundEmpty: /Audio/Guns/Empty/empty.ogg
soundRack: /Audio/Guns/Cock/smg_cock.ogg
@@ -146,6 +147,7 @@
caliber: Magnum
magazineTypes:
- Smg
magFillPrototype: MagazineMagnumSmg
minAngle: 5
maxAngle: 60
angleIncrease: 12
@@ -229,6 +231,7 @@
caliber: Pistol
magazineTypes:
- SmgTopMounted
magFillPrototype: MagazinePistolSmgTopMounted
- type: Appearance
visuals:
- type: MagVisualizer2D
@@ -265,6 +268,7 @@
caliber: Magnum
magazineTypes:
- Smg
magFillPrototype: MagazineMagnumSmg
- type: Appearance
visuals:
- type: BarrelBoltVisualizer2D

View File

@@ -16,6 +16,7 @@
currentSelector: Single
allSelectors:
- Single
fillPrototype: ShellShotgun
caliber: Shotgun
capacity: 7
fireRate: 2.0
@@ -57,6 +58,7 @@
caliber: Shotgun
magazineTypes:
- Rifle
magFillPrototype: MagazineShotgun
soundGunshot: /Audio/Guns/Gunshots/shotgun.ogg
soundEmpty: /Audio/Guns/Empty/empty.ogg
soundRack: /Audio/Guns/Cock/smg_cock.ogg
@@ -98,6 +100,7 @@
currentSelector: Single
allSelectors:
- Single
fillPrototype: ShellShotgun
capacity: 2
fireRate: 8.0
minAngle: 10
@@ -221,6 +224,7 @@
currentSelector: Single
allSelectors:
- Single
fillPrototype: ShellShotgun
capacity: 2
fireRate: 8.0
minAngle: 10

View File

@@ -20,6 +20,7 @@
currentSelector: Single
allSelectors:
- Single
fillPrototype: CartridgeLRifle
caliber: LRifle
capacity: 10
fireRate: 1.0
@@ -79,6 +80,7 @@
- type: BoltActionBarrel
caliber: AntiMaterial
capacity: 1
fillPrototype: CartridgeAntiMaterial
- type: Appearance
visuals:
- type: BarrelBoltVisualizer2D