mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-11 01:13:18 +00:00
* Airlock Seals 2: I'm dumb and a fool edition (#53114) Adds door seals to the game, inspired by the ones used in Alien Isolation and SOMA. Trivially easy for a human to remove, but makes it a nightmare to try and smash through if you're an alien, an evil robot, or don't have hands. I also slightly changed how airlock reinforcement works, as now there are two ways to increase the integrity, the previous way of just resetting the max_integrity after the removal of the plating wouldn't work. * Airlock Seals 2: I'm dumb and a fool edition Co-authored-by: Jimmius <huw4@btinternet.com>
26 lines
1.0 KiB
Plaintext
26 lines
1.0 KiB
Plaintext
/obj/item/door_seal
|
|
name = "pneumatic seal"
|
|
desc = "A brace used to seal and reinforce an airlock. Useful for making areas inaccessible to those without opposable thumbs."
|
|
icon = 'icons/obj/items_and_weapons.dmi'
|
|
icon_state = "pneumatic_seal"
|
|
lefthand_file = 'icons/mob/inhands/items_lefthand.dmi'
|
|
righthand_file = 'icons/mob/inhands/items_righthand.dmi'
|
|
flags_1 = CONDUCT_1
|
|
resistance_flags = FIRE_PROOF | ACID_PROOF
|
|
force = 5
|
|
throwforce = 5
|
|
throw_speed = 2
|
|
throw_range = 1
|
|
w_class = WEIGHT_CLASS_BULKY
|
|
custom_materials = list(/datum/material/iron=5000,/datum/material/plasma=500)
|
|
/// how long the seal takes to place on the door
|
|
var/seal_time = 3 SECONDS
|
|
/// how long it takes to remove the seal from a door
|
|
var/unseal_time = 2 SECONDS
|
|
|
|
/obj/item/door_seal/suicide_act(mob/user)
|
|
user.visible_message("<span class='suicide'>[user] is sealing [user.p_them()]self off from the world with [src]! It looks like [user.p_theyre()] trying to commit suicide!</span>")
|
|
playsound(src, 'sound/items/jaws_pry.ogg', 30, TRUE)
|
|
return(BRUTELOSS)
|
|
|