]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
makes the shotgun cartridge dispensers like the ammo boxes (#23388)
authorBoaz1111 <149967078+Boaz1111@users.noreply.github.com>
Thu, 4 Jan 2024 05:53:44 +0000 (06:53 +0100)
committerGitHub <noreply@github.com>
Thu, 4 Jan 2024 05:53:44 +0000 (16:53 +1100)
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
Resources/Prototypes/Catalog/Fills/Boxes/ammunition.yml
Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/Boxes/shotgun.yml [new file with mode: 0644]

index 6482c5dd91471928b4f7a857e0d80b8bfd8e03be..ba8fd6fb2501ca4765b6d6c6b4c4c4a3bd61b82e 100644 (file)
       - id: MagazineShotgunIncendiary
         amount: 4
 
-# base BallisticAmmoProvider dispensers
-- type: entity
-  parent: BaseItem
-  id: BaseAmmoProvider
-  abstract: true
-  components:
-  - type: ContainerContainer
-    containers:
-      ballistic-ammo: !type:Container
-  - type: Item
-    size: Normal
-  - type: Sprite
-    sprite: Objects/Storage/boxes.rsi
-
-- type: entity
-  parent: BaseAmmoProvider
-  id: AmmoProviderShotgunShell
-  abstract: true
-  components:
-    - type: BallisticAmmoProvider
-      whitelist:
-        tags:
-        - ShellShotgun
-      capacity: 12
-
-# Shotgun Shells
-- type: entity
-  name: shotgun beanbag cartridges dispenser
-  parent: AmmoProviderShotgunShell
-  id: BoxBeanbag
-  description: A dispenser box full of beanbag shots, designed for riot shotguns.
-  components:
-    - type: BallisticAmmoProvider
-      proto: ShellShotgunBeanbag
-    - type: Sprite
-      layers:
-        - state: boxwide
-        - state: shellbeanbag
-
-- type: entity
-  name: shotgun lethal cartridges dispenser
-  parent: AmmoProviderShotgunShell
-  id: BoxLethalshot
-  description: A dispenser box full of lethal pellet shots, designed for riot shotguns.
-  components:
-    - type: BallisticAmmoProvider
-      proto: ShellShotgun
-    - type: Sprite
-      layers:
-        - state: boxwide
-        - state: shelllethal
-
-- type: entity
-  name: shotgun slug cartridges dispenser
-  parent: AmmoProviderShotgunShell
-  id: BoxShotgunSlug
-  description: A dispenser box full of slugs, designed for riot shotguns.
-  components:
-    - type: BallisticAmmoProvider
-      proto: ShellShotgunSlug
-    - type: Sprite
-      layers:
-        - state: boxwide
-        - state: shellslug
-
-- type: entity
-  name: shotgun flare cartridges dispenser
-  parent: AmmoProviderShotgunShell
-  id: BoxShotgunFlare
-  description: A dispenser box full of flare cartridges, designed for riot shotguns.
-  components:
-    - type: BallisticAmmoProvider
-      proto: ShellShotgunFlare
-    - type: Sprite
-      layers:
-        - state: boxwide
-        - state: shellflare
-
-- type: entity
-  name: shotgun incendiary cartridges dispenser
-  parent: AmmoProviderShotgunShell
-  id: BoxShotgunIncendiary
-  description: A dispenser box full of incendiary cartridges, designed for riot shotguns.
-  components:
-    - type: BallisticAmmoProvider
-      proto: ShellShotgunIncendiary
-    - type: Sprite
-      layers:
-        - state: boxwide
-        - state: shellincendiary
-
-- type: entity
-  name: shotgun practice cartridges dispenser
-  parent: AmmoProviderShotgunShell
-  id: BoxShotgunPractice
-  description: A dispenser box full of practice cartridges, designed for riot shotguns.
-  components:
-    - type: BallisticAmmoProvider
-      proto: ShellShotgunPractice
-    - type: Sprite
-      layers:
-        - state: boxwide
-        - state: shellpractice
-
-- type: entity
-  name: tranquilizer cartridges dispenser
-  parent: AmmoProviderShotgunShell
-  id: BoxShellTranquilizer
-  description: A dispenser box full of tranquilizer cartridges, designed for riot shotguns.
-  components:
-    - type: BallisticAmmoProvider
-      proto: ShellTranquilizer
-    - type: Sprite
-      layers:
-        - state: boxwide
-        - state: shellslug
-
-
 # Rifle
 - type: entity
   name: box of .20 rifle magazines
diff --git a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/Boxes/shotgun.yml b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/Boxes/shotgun.yml
new file mode 100644 (file)
index 0000000..831c3c3
--- /dev/null
@@ -0,0 +1,116 @@
+- type: entity
+  parent: BaseItem
+  id: BaseAmmoProvider
+  abstract: true
+  components:
+  - type: ContainerContainer
+    containers:
+      ballistic-ammo: !type:Container
+  - type: Item
+    size: Normal
+  - type: Sprite
+    sprite: Objects/Storage/boxes.rsi
+
+- type: entity
+  parent: BaseAmmoProvider
+  id: AmmoProviderShotgunShell
+  abstract: true
+  components:
+    - type: BallisticAmmoProvider
+      mayTransfer: true
+      whitelist:
+        tags:
+        - ShellShotgun
+      capacity: 12
+
+# Shotgun Shells
+- type: entity
+  name: shotgun beanbag cartridges dispenser
+  parent: AmmoProviderShotgunShell
+  id: BoxBeanbag
+  description: A dispenser box full of beanbag shots, designed for riot shotguns.
+  components:
+    - type: BallisticAmmoProvider
+      proto: ShellShotgunBeanbag
+    - type: Sprite
+      layers:
+        - state: boxwide
+        - state: shellbeanbag
+
+- type: entity
+  name: shotgun lethal cartridges dispenser
+  parent: AmmoProviderShotgunShell
+  id: BoxLethalshot
+  description: A dispenser box full of lethal pellet shots, designed for riot shotguns.
+  components:
+    - type: BallisticAmmoProvider
+      proto: ShellShotgun
+    - type: Sprite
+      layers:
+        - state: boxwide
+        - state: shelllethal
+
+- type: entity
+  name: shotgun slug cartridges dispenser
+  parent: AmmoProviderShotgunShell
+  id: BoxShotgunSlug
+  description: A dispenser box full of slugs, designed for riot shotguns.
+  components:
+    - type: BallisticAmmoProvider
+      proto: ShellShotgunSlug
+    - type: Sprite
+      layers:
+        - state: boxwide
+        - state: shellslug
+
+- type: entity
+  name: shotgun flare cartridges dispenser
+  parent: AmmoProviderShotgunShell
+  id: BoxShotgunFlare
+  description: A dispenser box full of flare cartridges, designed for riot shotguns.
+  components:
+    - type: BallisticAmmoProvider
+      proto: ShellShotgunFlare
+    - type: Sprite
+      layers:
+        - state: boxwide
+        - state: shellflare
+
+- type: entity
+  name: shotgun incendiary cartridges dispenser
+  parent: AmmoProviderShotgunShell
+  id: BoxShotgunIncendiary
+  description: A dispenser box full of incendiary cartridges, designed for riot shotguns.
+  components:
+    - type: BallisticAmmoProvider
+      proto: ShellShotgunIncendiary
+    - type: Sprite
+      layers:
+        - state: boxwide
+        - state: shellincendiary
+
+- type: entity
+  name: shotgun practice cartridges dispenser
+  parent: AmmoProviderShotgunShell
+  id: BoxShotgunPractice
+  description: A dispenser box full of practice cartridges, designed for riot shotguns.
+  components:
+    - type: BallisticAmmoProvider
+      proto: ShellShotgunPractice
+    - type: Sprite
+      layers:
+        - state: boxwide
+        - state: shellpractice
+
+- type: entity
+  name: tranquilizer cartridges dispenser
+  parent: AmmoProviderShotgunShell
+  id: BoxShellTranquilizer
+  description: A dispenser box full of tranquilizer cartridges, designed for riot shotguns.
+  components:
+    - type: BallisticAmmoProvider
+      proto: ShellTranquilizer
+    - type: Sprite
+      layers:
+        - state: boxwide
+        - state: shellslug
\ No newline at end of file