Skip to content

Commit

Permalink
Makes all CTF windows actually indestructible (tgstation#74021)
Browse files Browse the repository at this point in the history
## About The Pull Request

Adds a spawner for indestructible shuttle windows
Replaces all "hardened windows" (which were actually not unbreakable)
with proper unbreakable windows

## Why It's Good For The Game

Fixes tgstation#73297, people shouldn't be breaking into space in CTF

## Changelog
:cl:
fix: All CTF windows are now indestructible, fixes breaking into space
during CTF.
/:cl:
  • Loading branch information
mc-oofert authored Mar 16, 2023
1 parent 07bdb7e commit 9bb9e35
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 35 deletions.
6 changes: 1 addition & 5 deletions _maps/map_files/CTF/classic.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,7 @@
/turf/open/floor/circuit/green/off,
/area/centcom/ctf)
"ev" = (
/obj/structure/window/reinforced/fulltile{
max_integrity = 5000;
name = "hardened window";
atom_integrity = 5000
},
/obj/structure/window/reinforced/fulltile/indestructible,
/turf/open/floor/plating,
/area/centcom/ctf)
"eW" = (
Expand Down
18 changes: 3 additions & 15 deletions _maps/map_files/CTF/cruiser.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -56,28 +56,16 @@
/turf/open/floor/pod/light,
/area/centcom/ctf)
"cK" = (
/obj/structure/window/reinforced/shuttle{
max_integrity = 5000;
name = "hardened window";
atom_integrity = 5000
},
/obj/effect/spawner/structure/window/reinforced/shuttle/indestructible,
/turf/open/floor/plating,
/area/centcom/ctf)
"cO" = (
/obj/item/ctf/green,
/turf/open/floor/circuit/green/anim,
/area/centcom/ctf)
"dq" = (
/obj/structure/window/reinforced/shuttle{
max_integrity = 5000;
name = "hardened window";
atom_integrity = 5000
},
/obj/structure/window/reinforced/shuttle{
max_integrity = 5000;
name = "hardened window";
atom_integrity = 5000
},
/obj/effect/spawner/structure/window/reinforced/shuttle/indestructible,
/obj/effect/spawner/structure/window/reinforced/shuttle/indestructible,
/turf/open/floor/plating,
/area/centcom/ctf)
"ds" = (
Expand Down
6 changes: 1 addition & 5 deletions _maps/map_files/CTF/downtown.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -1249,11 +1249,7 @@
/turf/open/floor/iron,
/area/centcom/ctf)
"Am" = (
/obj/structure/window/reinforced/fulltile{
atom_integrity = 5000;
max_integrity = 5000;
name = "hardened window"
},
/obj/effect/spawner/structure/window/reinforced/indestructible,
/turf/open/floor/plating,
/area/centcom/ctf)
"Ao" = (
Expand Down
6 changes: 1 addition & 5 deletions _maps/map_files/CTF/fourSide.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,7 @@
/turf/open/floor/iron/dark,
/area/centcom/ctf)
"bI" = (
/obj/structure/window/reinforced/fulltile{
max_integrity = 5000;
name = "hardened window";
atom_integrity = 5000
},
/obj/effect/spawner/structure/window/reinforced/indestructible,
/turf/open/floor/plating,
/area/centcom/ctf)
"cj" = (
Expand Down
7 changes: 2 additions & 5 deletions _maps/map_files/CTF/limbo.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,8 @@
/turf/open/floor/carpet/blue,
/area/centcom/ctf)
"ef" = (
/obj/structure/window/reinforced/fulltile{
color = "#008000";
max_integrity = 5000;
name = "hardened window";
atom_integrity = 5000
/obj/structure/window/reinforced/fulltile/indestructible{
color = "#008000"
},
/turf/open/floor/plating,
/area/centcom/ctf)
Expand Down
4 changes: 4 additions & 0 deletions code/game/objects/effects/spawners/structure.dm
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ again.
icon_state = "swindow_spawner"
spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/shuttle)

/obj/effect/spawner/structure/window/reinforced/shuttle/indestructible
name = "indestructible shuttle window spawner"
icon_state = "swindow_spawner"
spawn_list = list(/obj/structure/grille/indestructible, /obj/structure/window/reinforced/shuttle/indestructible)

//plastitanium window

Expand Down
8 changes: 8 additions & 0 deletions code/game/objects/structures/window.dm
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,14 @@
anchored = FALSE
state = WINDOW_OUT_OF_FRAME

/obj/structure/window/reinforced/shuttle/indestructible
name = "hardened shuttle window"
flags_1 = PREVENT_CLICK_UNDER_1 | NODECONSTRUCT_1
resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | UNACIDABLE | ACID_PROOF

/obj/structure/window/reinforced/shuttle/indestructible/rcd_vals(mob/user, obj/item/construction/rcd/the_rcd)
return FALSE

/obj/structure/window/reinforced/plasma/plastitanium
name = "plastitanium window"
desc = "A durable looking window made of an alloy of of plasma and titanium."
Expand Down

0 comments on commit 9bb9e35

Please sign in to comment.