Skip to content

Commit

Permalink
Add Equip Delays to Clothing (Simple-Station#499)
Browse files Browse the repository at this point in the history
# Description
For centuries SS14 had equip and unequip delays on the clothing
component, and yet that feature remained unused and unheard of, not even
nyanotrasen/deltav used it when designing shock collars and headcages,
whose descriptions clearly suggested they should take time to take off.
For centuries salvage specialists could safely swap suits in space. For
centuries you could accidentally unequip your eva suit mid-spacewalk and
die. Now the time has come. The time when we change it.

This adds equip and unequip delays to the base clothing item. The
currently chosen time is half a second - it's meant to not be too
annoying, but at the same time prevent people from being able to
instantly swap clothes, headsets, other things with a single click.

EVA suits take 1.5 seconds to equip and 1 second to take off, so to swap
EVA suits, you will have to expose your body to the dangers of space for
at least 1.5 seconds. For hardsuits, both values are increased to 2.5
seconds.

The values are not final and this PR will probably need polishing before
it can be merged - for example, while recording the second preview
video, I discovered that jetpacks do not inherit from base clothing and
thus do not inherit the delays. There's probably way more such items.

---

# TODO
Add equip/unequip delays to:

- [X] most basic clothing items
- [X] hardsuits/softsuits
- [X] special items (currently headcages and shock collars, possibly
more later?)
- [ ] Everything that was missed by the above

---

<details><summary><h1>Media</h1></summary>
<p>

Basics


https://github.com/Simple-Station/Einstein-Engines/assets/69920617/3fc900b8-ee13-4968-bf5d-cddeb9a141b6

Hardsuits, eva suits, shock collars, headcages + demonstration that
aghost stripping is unaffected.


https://github.com/Simple-Station/Einstein-Engines/assets/69920617/a536578f-2ac3-40e1-9b27-3b167e006397



</p>
</details>

---

# Changelog
:cl:
- add: Most items now take time to equip and unequip, especially space
suits.
  • Loading branch information
Mnemotechnician authored Jun 30, 2024
1 parent 6f54ed1 commit f439eb7
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@
- Hardsuit
- WhitelistChameleon
- HidesHarpyWings #DeltaV: Used by harpies to help render their hardsuit sprites
- type: Clothing
equipDelay: 2.5 # Hardsuits are heavy and take a while to put on/off.
unequipDelay: 2.5

- type: entity
abstract: true
Expand All @@ -114,6 +117,9 @@
- type: Tag
tags:
- HidesHarpyWings #DeltaV: Used by harpies to help render their hardsuit sprites
- type: Clothing
equipDelay: 1.25 # Softsuits are easier to put on and off
unequipDelay: 1

- type: entity
parent: ClothingOuterBase
Expand Down
3 changes: 3 additions & 0 deletions Resources/Prototypes/Entities/Clothing/base_clothing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
- WhitelistChameleon
- type: StaticPrice
price: 15
- type: Clothing
equipDelay: 0.5
unequipDelay: 0.5

- type: entity
abstract: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@
sprite: Nyanotrasen/Clothing/Head/Hats/cage.rsi
- type: Clothing
sprite: Nyanotrasen/Clothing/Head/Hats/cage.rsi
equipDelay: 0.5
unequipDelay: 6
- type: HeadCage

- type: entity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
sprite: Nyanotrasen/Clothing/Neck/Misc/shock.rsi
- type: Clothing
sprite: Nyanotrasen/Clothing/Neck/Misc/shock.rsi
equipDelay: 1
unequipDelay: 10 # It's a collar meant to be used on prisoners (or not), so it probably has some sort of safety.
- type: ShockCollar
- type: UseDelay
delay: 3 # DeltaV: prevent clocks instakilling people
Expand Down

0 comments on commit f439eb7

Please sign in to comment.