]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
beno turrets (#14516)
authorT-Stalker <43253663+DogZeroX@users.noreply.github.com>
Fri, 10 Mar 2023 13:25:33 +0000 (10:25 -0300)
committerGitHub <noreply@github.com>
Fri, 10 Mar 2023 13:25:33 +0000 (00:25 +1100)
13 files changed:
Resources/Audio/Weapons/Xeno/alien_spitacid.ogg [new file with mode: 0644]
Resources/Audio/Weapons/Xeno/license.txt
Resources/Prototypes/Entities/Objects/Weapons/Guns/Projectiles/projectiles.yml
Resources/Prototypes/Entities/Objects/Weapons/Guns/turrets.yml
Resources/Textures/Objects/Weapons/Guns/Projectiles/xeno_toxic.rsi/meta.json [new file with mode: 0644]
Resources/Textures/Objects/Weapons/Guns/Projectiles/xeno_toxic.rsi/xeno_toxic.png [new file with mode: 0644]
Resources/Textures/Objects/Weapons/Guns/Turrets/turrets.rsi/meta.json [moved from Resources/Textures/Objects/Weapons/Guns/turrets.rsi/meta.json with 100% similarity]
Resources/Textures/Objects/Weapons/Guns/Turrets/turrets.rsi/syndie_broken.png [moved from Resources/Textures/Objects/Weapons/Guns/turrets.rsi/syndie_broken.png with 100% similarity]
Resources/Textures/Objects/Weapons/Guns/Turrets/turrets.rsi/syndie_lethal.png [moved from Resources/Textures/Objects/Weapons/Guns/turrets.rsi/syndie_lethal.png with 100% similarity]
Resources/Textures/Objects/Weapons/Guns/Turrets/turrets.rsi/syndie_off.png [moved from Resources/Textures/Objects/Weapons/Guns/turrets.rsi/syndie_off.png with 100% similarity]
Resources/Textures/Objects/Weapons/Guns/Turrets/turrets.rsi/syndie_stun.png [moved from Resources/Textures/Objects/Weapons/Guns/turrets.rsi/syndie_stun.png with 100% similarity]
Resources/Textures/Objects/Weapons/Guns/Turrets/xenoturret.rsi/acid_turret.png [new file with mode: 0644]
Resources/Textures/Objects/Weapons/Guns/Turrets/xenoturret.rsi/meta.json [new file with mode: 0644]

diff --git a/Resources/Audio/Weapons/Xeno/alien_spitacid.ogg b/Resources/Audio/Weapons/Xeno/alien_spitacid.ogg
new file mode 100644 (file)
index 0000000..b4aa578
Binary files /dev/null and b/Resources/Audio/Weapons/Xeno/alien_spitacid.ogg differ
index defddc5e45e89a91fb5096bc674f90fe7c828bcd..bb082c7c07fd0635d69c2c79981d8b693e444adc 100644 (file)
@@ -1 +1,2 @@
-alien_claw_flesh1, alien_claw_flesh2, alien_claw_flesh3 were taken from: https://gitlab.com/cmdevs/colonial-warfare/-/tree/dev/sound/weapons
\ No newline at end of file
+alien_claw_flesh1, alien_claw_flesh2, alien_claw_flesh3 were taken from: https://gitlab.com/cmdevs/colonial-warfare/-/tree/dev/sound/weapons
+alien_spitacid was taken from: https://github.com/tgstation/TerraGov-Marine-Corps/blob/233891d0e19a002d8307299bfe15206591172784/sound/voice/alien_spitacid.ogg
\ No newline at end of file
index f2c1bae75725fe95df7ba77e191ace134ad583db..f55735e8dbdc589911993c135f2b8c01569c4fb9 100644 (file)
     damage:
       types:
         Piercing: 0
+
+- type: entity
+  id: BulletAcid
+  name: acid spit
+  parent: BaseBullet
+  noSpawn: true
+  components:
+    - type: Projectile
+      damage:
+        groups:
+          Caustic: 5
+    - type: Sprite
+      sprite: Objects/Weapons/Guns/Projectiles/xeno_toxic.rsi
+      layers:
+        - state: xeno_toxic
+    - type: Ammo
+      muzzleFlash: null
index 26a8a3b9ea39838c88f6707c08ea823e81ca428d..030a6ce389d005228c056c8b48fa4611052b13ed 100644 (file)
@@ -8,7 +8,7 @@
     - type: InteractionOutline
     - type: Sprite
       netsync: false
-      sprite: Objects/Weapons/Guns/turrets.rsi
+      sprite: Objects/Weapons/Guns/Turrets/turrets.rsi
       drawdepth: WallMountedItems
       layers:
         - state: syndie_broken
@@ -27,7 +27,7 @@
         ballistic-ammo: !type:Container
     - type: Sprite
       netsync: false
-      sprite: Objects/Weapons/Guns/turrets.rsi
+      sprite: Objects/Weapons/Guns/Turrets/turrets.rsi
       drawdepth: WallMountedItems
       layers:
         - state: syndie_lethal
   components:
   - type: Faction
     factions:
-    - SimpleHostile
\ No newline at end of file
+    - SimpleHostile
+
+- type: entity
+  name: xeno turret
+  description: Shoots 9mm acid projectiles
+  parent: BaseWeaponTurret
+  id: WeaponTurretXeno
+  suffix: Xeno
+  components:
+    - type: Faction
+      factions:
+        - Xeno
+    - type: Sprite
+      netsync: false
+      sprite: Objects/Weapons/Guns/Turrets/xenoturret.rsi
+      noRot: true
+      layers:
+        - state: acid_turret
+    - type: BallisticAmmoProvider
+      proto: BulletAcid
+      capacity: 500
+    - type: Gun
+      fireRate: 1
+      selectedMode: FullAuto
+      soundGunshot: /Audio/Weapons/Xeno/alien_spitacid.ogg
+    - type: HTN
+      rootTask: TurretCompound
+      blackboard:
+        SoundTargetInLOS: !type:SoundPathSpecifier
+          path: /Audio/Animals/snake_hiss.ogg
+    - type: Damageable
+      damageContainer: Biological
+    - type: Destructible
+      thresholds:
+        - trigger:
+            !type:DamageTrigger
+            damage: 100
+          behaviors:
+            - !type:DoActsBehavior
+              acts: [ "Destruction" ]
+            - !type:PlaySoundBehavior
+              sound:
+                path: /Audio/Effects/gib1.ogg
+            - !type:SpawnEntitiesBehavior
+              spawn:
+                FoodMeatXeno:
+                  min: 3
+                  max: 5
+    - type: InteractionPopup
+      interactDelay: 1.0
+      successChance: 0.8
+      interactSuccessString: petting-success-generic
+      interactFailureString: petting-failure-generic
+      interactSuccessSound:
+        path: /Audio/Animals/snake_hiss.ogg
diff --git a/Resources/Textures/Objects/Weapons/Guns/Projectiles/xeno_toxic.rsi/meta.json b/Resources/Textures/Objects/Weapons/Guns/Projectiles/xeno_toxic.rsi/meta.json
new file mode 100644 (file)
index 0000000..91ba946
--- /dev/null
@@ -0,0 +1,14 @@
+{
+  "version": 1,
+  "license": "CC-BY-NC-4.0",
+  "copyright": "https://github.com/tgstation/TerraGov-Marine-Corps/blob/f90afeb849db243c8613dbc4defd040aff689b72/icons/obj/items/projectiles.dmi",
+  "size": {
+    "x": 32,
+    "y": 32
+  },
+  "states": [
+    {
+      "name": "xeno_toxic"
+    }
+  ]
+}
\ No newline at end of file
diff --git a/Resources/Textures/Objects/Weapons/Guns/Projectiles/xeno_toxic.rsi/xeno_toxic.png b/Resources/Textures/Objects/Weapons/Guns/Projectiles/xeno_toxic.rsi/xeno_toxic.png
new file mode 100644 (file)
index 0000000..239ef9e
Binary files /dev/null and b/Resources/Textures/Objects/Weapons/Guns/Projectiles/xeno_toxic.rsi/xeno_toxic.png differ
diff --git a/Resources/Textures/Objects/Weapons/Guns/Turrets/xenoturret.rsi/acid_turret.png b/Resources/Textures/Objects/Weapons/Guns/Turrets/xenoturret.rsi/acid_turret.png
new file mode 100644 (file)
index 0000000..a8b58a5
Binary files /dev/null and b/Resources/Textures/Objects/Weapons/Guns/Turrets/xenoturret.rsi/acid_turret.png differ
diff --git a/Resources/Textures/Objects/Weapons/Guns/Turrets/xenoturret.rsi/meta.json b/Resources/Textures/Objects/Weapons/Guns/Turrets/xenoturret.rsi/meta.json
new file mode 100644 (file)
index 0000000..3adb37e
--- /dev/null
@@ -0,0 +1,65 @@
+{
+  "version": 1,
+  "license": "CC-BY-NC-4.0",
+  "copyright": "https://github.com/tgstation/TerraGov-Marine-Corps/blob/f90afeb849db243c8613dbc4defd040aff689b72/icons/Xeno/acidturret.dmi",
+  "size": {
+    "x": 32,
+    "y": 32
+  },
+  "states": [
+    {
+      "name": "acid_turret",
+      "directions": 4,
+      "delays": [
+        [
+          0.1,
+          0.1,
+          0.1,
+          0.1,
+          0.1,
+          0.1,
+          0.1,
+          0.1,
+          0.1,
+          0.1
+        ],
+        [
+          0.1,
+          0.1,
+          0.1,
+          0.1,
+          0.1,
+          0.1,
+          0.1,
+          0.1,
+          0.1,
+          0.1
+        ],
+        [
+          0.1,
+          0.1,
+          0.1,
+          0.1,
+          0.1,
+          0.1,
+          0.1,
+          0.1,
+          0.1,
+          0.1
+        ],
+        [
+          0.1,
+          0.1,
+          0.1,
+          0.1,
+          0.1,
+          0.1,
+          0.1,
+          0.1,
+          0.1,
+          0.1
+        ]
+      ]
+    }
+  ]
+}
\ No newline at end of file