]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Transparent tear gas (#36440)
authorNikovnik <116634167+nkokic@users.noreply.github.com>
Fri, 13 Jun 2025 13:53:44 +0000 (15:53 +0200)
committerGitHub <noreply@github.com>
Fri, 13 Jun 2025 13:53:44 +0000 (09:53 -0400)
* tweaked tear gas

* changed color of tear gas

* sped up metabolism rate of tear gas

* sped up tear gas passing more

* reduced tear gas content in grenades

* added threshold for better effect end timing

* removed clickable component from foams

* Suggestion changes

* Hide in spawn menu

---------

Co-authored-by: SlamBamActionman <slambamactionman@gmail.com>
Resources/Prototypes/Entities/Effects/chemistry_effects.yml
Resources/Prototypes/Entities/Objects/Weapons/Throwable/grenades.yml
Resources/Prototypes/Reagents/narcotics.yml
Resources/Textures/Effects/chemsmoke.rsi/chemsmoke_white.png [new file with mode: 0644]
Resources/Textures/Effects/chemsmoke.rsi/meta.json

index 650179d182e76ef38bd921eaec8b422d9e4422b5..1bf3d351b3758639db5bf58a41e6bcc3eec75e71 100644 (file)
@@ -9,7 +9,6 @@
   - type: SmokeVisuals
   - type: Transform
     anchored: true
-  - type: Clickable
   - type: Physics
   - type: Fixtures
     fixtures:
     tags:
     - HideContextMenu
 
+- type: entity
+  parent: BaseFoam
+  id: TearGasSmoke
+  name: tear gas
+  categories: [ HideSpawnMenu ]
+  components:
+  - type: Sprite
+    sprite: Effects/chemsmoke.rsi
+    state: chemsmoke
+  - type: TimedDespawn
+    lifetime: 10
+  - type: Tag
+    tags:
+    - HideContextMenu
+
+- type: entity
+  parent: TearGasSmoke
+  id: TearGasSmokeWhite
+  categories: [ HideSpawnMenu ]
+  components:
+  - type: Sprite
+    state: chemsmoke_white
+
 - type: entity
   parent: Smoke
   id: WizardSmoke
index eab8838d4eace176d4b04c58a5d7ee5ef687f21e..fbc7bc74ea88ec763c0bbec5b0c92d5a74ce1758 100644 (file)
   - type: SmokeOnTrigger
     duration: 10
     spreadAmount: 30
+    smokePrototype: TearGasSmokeWhite
     solution:
       reagents:
       - ReagentId: TearGas
-        Quantity: 50
+        Quantity: 20
 
 - type: entity
   parent: [ BaseEngineeringContraband, SmokeGrenade ]
index 3f2daa98c9d7e2ff1de563c7741385d7a03b73a7..6e159278e92d5532bfe292132dffbff37df2d944 100644 (file)
   desc: reagent-desc-tear-gas
   physicalDesc: reagent-physical-desc-milky
   flavor: salty
-  color: "#96a8b5"
+  color: "#ffffff4d"
   boilingPoint: 255.0
   meltingPoint: 36.0
   metabolisms:
         - norepinephricacid-effect-eye-pain
         - norepinephricacid-effect-darkness
         - norepinephricacid-effect-blindness
+      - !type:Emote
+        emote: Scream
+        probability: 0.08
         conditions:
         - !type:ReagentThreshold
-          min: 15
+          min: 4
       - !type:Emote
-        emote: Scream
+        emote: Cough
         probability: 0.08
       - !type:GenericStatusEffect
         key: TemporaryBlindness
         component: TemporaryBlindness
         conditions:
         - !type:ReagentThreshold
-          min: 20
+          min: 4
+      - !type:MovespeedModifier
+        walkSpeedModifier: 0.65
+        sprintSpeedModifier: 0.65
+        statusLifetime: 1.5
+        conditions: # because of the remainding after effect, threshold is given so the effects ends simultaniously
+        - !type:ReagentThreshold
+          min: 4
 
 - type: reagent
   id: Happiness
diff --git a/Resources/Textures/Effects/chemsmoke.rsi/chemsmoke_white.png b/Resources/Textures/Effects/chemsmoke.rsi/chemsmoke_white.png
new file mode 100644 (file)
index 0000000..a0d0c4d
Binary files /dev/null and b/Resources/Textures/Effects/chemsmoke.rsi/chemsmoke_white.png differ
index 62514d1c2a5ad52cac2655ba2b86bde6dbe5d4d7..47c04a0ff93cd166348dfdf50fc8c601a5b26f7d 100644 (file)
@@ -1 +1,35 @@
-{"version": 1, "size": {"x": 96, "y": 96}, "license": "CC-BY-SA-3.0", "copyright": "Taken from https://github.com/discordia-space/CEV-Eris/blob/81b3a082ccdfb425f36bbed6e5bc1f0faed346ec/icons/effects/chemsmoke.dmi", "states": [{"name": "chemsmoke", "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]]}]}
\ No newline at end of file
+{
+    "version": 1,
+    "size":
+    {
+        "x": 96,
+        "y": 96
+    },
+    "license": "CC-BY-SA-3.0",
+    "copyright": "Taken from https://github.com/discordia-space/CEV-Eris/blob/81b3a082ccdfb425f36bbed6e5bc1f0faed346ec/icons/effects/chemsmoke.dmi",
+    "states":
+    [
+        {
+            "name": "chemsmoke",
+            "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": "chemsmoke_white",
+            "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]
+            ]
+        }
+    ]
+}