Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jaws of life for atmos #20138

Merged
merged 8 commits into from
Nov 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 23 additions & 4 deletions code/game/machinery/doors/airlock.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1465,10 +1465,19 @@ About the new airlock wires panel:
cutting = TRUE
else if(istype(tool, /obj/item/crowbar/robotic/jawsoflife))
if(bolt_cut_state == BOLTS_FINE)
to_chat(user, SPAN_WARNING("You force the bolt cover open!"))
playsound(src, 'sound/weapons/smash.ogg', 100, extrarange = SHORT_RANGE_SOUND_EXTRARANGE)
bolt_cut_state = BOLTS_EXPOSED
user.visible_message(SPAN_DANGER("[user] starts using the [tool] on the airlock's bolt cover!"),
SPAN_WARNING("You start applying pressure on the airlock's bolt cover using the [tool]..."),
SPAN_NOTICE("You hear metal cracking and deforming...")\
)
if (do_after(user, 1 SECONDS))
to_chat(user, SPAN_WARNING("You force the bolt cover open!"))
playsound(src, 'sound/weapons/smash.ogg', 100, extrarange = SHORT_RANGE_SOUND_EXTRARANGE)
bolt_cut_state = BOLTS_EXPOSED
else if(bolt_cut_state != BOLTS_FINE)
user.visible_message(SPAN_DANGER("[user] starts using the [tool] on the airlock's bolts!"),
SPAN_WARNING("You start applying pressure on the airlock's bolts using the [tool]..."),
SPAN_NOTICE("You hear metal cracking and deforming...")
)
cut_verb = "smashing"
cut_sound = 'sound/weapons/smash.ogg'
cut_delay *= 1
Expand Down Expand Up @@ -1737,7 +1746,7 @@ About the new airlock wires panel:
user.visible_message("<b>[user]</b> removes the electronics from the airlock assembly.", SPAN_NOTICE("You remove the electronics from the airlock assembly."))
CreateAssembly()
return
else if(arePowerSystemsOn())
else if(arePowerSystemsOn() && !istype(attacking_item, /obj/item/crowbar/robotic/jawsoflife))
to_chat(user, SPAN_NOTICE("The airlock's motors resist your efforts to force it."))
else if(locked)
if (istype(attacking_item, /obj/item/crowbar/robotic/jawsoflife))
Expand All @@ -1746,6 +1755,16 @@ About the new airlock wires panel:
to_chat(user, SPAN_NOTICE("The airlock's bolts prevent it from being forced."))
else
if(density)
if(arePowerSystemsOn() && istype(attacking_item, /obj/item/crowbar/robotic/jawsoflife))
user.visible_message(SPAN_DANGER("[user] starts using the [attacking_item] on the airlock!"),
SPAN_WARNING("You start applying pressure on the airlock using the [attacking_item]..."),
SPAN_NOTICE("You hear metal cracking and deforming...")
)
if (do_after(user, 5 SECONDS))
playsound(src, 'sound/weapons/smash.ogg', 100, TRUE, extrarange = MEDIUM_RANGE_SOUND_EXTRARANGE)
take_damage(50)
set_broken()
to_chat(user, SPAN_NOTICE("The hydraulic strength easily overcomes the resistance of the airlock's motors opening the way ahead!"))
open(1)
else
close(1)
Expand Down
8 changes: 8 additions & 0 deletions html/changelogs/fabiank3-jaws-of-life-for-atmos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
author: FabianK3

delete-after: True

changes:
- rscadd: "Added a hydraulic rescue tool (also known as jaws of life) to the atmos locker room. They are now able to perform their emergency/fire fighter duties more easily by being able to enter locked areas."
- rscadd: "Jaws of life now work on regular, non-locked, powered doors as well. Using the tool on a powered airlock will force it open and damage it in the act. Previously it only worked bolted/unpowered doors."
- qol: "The jaws of life are a bit more nosy in the chat. It's a powered metal tool, you can't miss its use."
1 change: 1 addition & 0 deletions maps/sccv_horizon/sccv_horizon.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -30252,6 +30252,7 @@
/obj/item/storage/bag/inflatable,
/obj/item/storage/bag/inflatable,
/obj/item/device/hand_labeler,
/obj/item/crowbar/robotic/jawsoflife,
/turf/simulated/floor/tiled/dark/full,
/area/engineering/atmos/storage)
"erN" = (
Expand Down
Loading