]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Predatory pet for HoS (#15237)
authorNim <128169402+Nimfar11@users.noreply.github.com>
Mon, 10 Apr 2023 04:33:22 +0000 (07:33 +0300)
committerGitHub <noreply@github.com>
Mon, 10 Apr 2023 04:33:22 +0000 (21:33 -0700)
Resources/Prototypes/Entities/Markers/Spawners/mobs.yml
Resources/Prototypes/Entities/Mobs/NPCs/pets.yml
Resources/Prototypes/ai_factions.yml
Resources/Textures/Mobs/Pets/shiva.rsi/meta.json [new file with mode: 0644]
Resources/Textures/Mobs/Pets/shiva.rsi/shiva.png [new file with mode: 0644]
Resources/Textures/Mobs/Pets/shiva.rsi/shiva_dead.png [new file with mode: 0644]

index c2db58ce1448528f1c2a3d686435df9988343a99..fbf4d3ace99f979d9672d358b9dda7f3d0fedafa 100644 (file)
   - type: ConditionalSpawner
     prototypes:
       - MobAlexander
+
+- type: entity
+  name: Shiva Spawner
+  id: SpawnMobShiva
+  parent: MarkerBase
+  components:
+  - type: Sprite
+    layers:
+      - state: green
+      - state: ai
+  - type: ConditionalSpawner
+    prototypes:
+      - MobSpiderShiva
index 947a7d059f0e8f6da07c886b1fea94602f1ae872..83f4c5963a393c4e82a0827f6b54f1effa9f4b4e 100644 (file)
     tags:
     - CannotSuicide
 
+- type: entity
+  name: Shiva
+  parent: MobGiantSpider
+  id: MobSpiderShiva
+  description: The first defender of the station.
+  components:
+  - type: Faction
+    factions:
+      - PetsNT
+  - type: Sprite
+    drawdepth: Mobs
+    layers:
+    - map: ["enum.DamageStateVisualLayers.Base"]
+      state: shiva
+      sprite: Mobs/Pets/shiva.rsi
+  - type: HTN
+    rootTask: SimpleHostileCompound
+  - type: Physics
+  - type: Fixtures
+    fixtures:
+    - shape:
+        !type:PhysShapeCircle
+        radius: 0.35
+      density: 130
+      mask:
+      - MobMask
+      layer:
+      - MobLayer
+  - type: Appearance
+  - type: DamageStateVisuals
+    states:
+      Alive:
+        Base: shiva
+      Critical:
+        Base: shiva_dead
+      Dead:
+        Base: shiva_dead
+  - type: Butcherable
+    spawned:
+    - id: FoodMeatSpider
+      amount: 2
+  - type: CombatMode
+  - type: MobThresholds
+    thresholds:
+      0: Alive
+      90: Critical
+      150: Dead
+  - type: MeleeWeapon
+    hidden: true
+    angle: 0
+    animation: WeaponArcBite
+    soundHit:
+      path: /Audio/Effects/bite.ogg
+    damage:
+      types:
+        Piercing: 8
+        Poison: 8
+  - type: ReplacementAccent
+    accent: xeno
+  - type: NoSlip
+  - type: Spider
+  - type: IgnoreSpiderWeb
+  - type: Grammar
+    attributes:
+      proper: true
+      gender: female
index 84c15c2e1699d968e5081832698dc7a1b40f480b..40bb8a545536ed533e23cea49fa72166f7cc4fa8 100644 (file)
   - Syndicate
   - Xeno
 
+- type: faction
+  id: PetsNT
+  hostile:
+  - SimpleHostile
+  - Xeno
+
 - type: faction
   id: SimpleHostile
   hostile:
diff --git a/Resources/Textures/Mobs/Pets/shiva.rsi/meta.json b/Resources/Textures/Mobs/Pets/shiva.rsi/meta.json
new file mode 100644 (file)
index 0000000..dbf2bcc
--- /dev/null
@@ -0,0 +1,45 @@
+{
+  "version": 1,
+  "size": {
+    "x": 32,
+    "y": 32
+  },
+  "license": "CC-BY-SA-3.0",
+  "copyright": "Redid the original tarantulas. Made by Nimfar11 (github) for SS14",
+  "states": [
+    {
+      "name": "shiva",
+      "directions": 4,
+      "delays": [
+        [
+          0.2,
+          0.2,
+          0.2
+        ],
+        [
+          0.2,
+          0.2,
+          0.2
+        ],
+        [
+          0.2,
+          0.2,
+          0.2
+        ],
+        [
+          0.2,
+          0.2,
+          0.2
+        ]
+      ]
+    },
+    {
+      "name": "shiva_dead",
+      "delays": [
+        [
+          1
+        ]
+      ]
+    }
+  ]
+}
diff --git a/Resources/Textures/Mobs/Pets/shiva.rsi/shiva.png b/Resources/Textures/Mobs/Pets/shiva.rsi/shiva.png
new file mode 100644 (file)
index 0000000..bcaef60
Binary files /dev/null and b/Resources/Textures/Mobs/Pets/shiva.rsi/shiva.png differ
diff --git a/Resources/Textures/Mobs/Pets/shiva.rsi/shiva_dead.png b/Resources/Textures/Mobs/Pets/shiva.rsi/shiva_dead.png
new file mode 100644 (file)
index 0000000..f85faf2
Binary files /dev/null and b/Resources/Textures/Mobs/Pets/shiva.rsi/shiva_dead.png differ