Skip to content

Commit

Permalink
Makes Ship Turrets Connectable Without Areas (shiptest-ss13#3386)
Browse files Browse the repository at this point in the history
<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may
not be viewable. -->
<!-- You can view Contributing.MD for a detailed description of the pull
request process. -->

## About The Pull Request
Hacks some stuff onto the code for turrets and turretid machines so that
they can see turrets outside the area (thanks fallcon). Applies this to
every single ship so that ship turrets are a little less weird.
<!-- Describe The Pull Request. Please be sure every change is
documented or this can delay review and even discourage maintainers from
merging your PR! -->

## Why It's Good For The Game
Extendable + Useful for mappers. Also less area gore.
<!-- Please add a short description of why you think these changes would
benefit the game. If you can't justify it in words, it might not be
worth adding. -->

## Changelog

:cl:
code: Ship Turrets can now be attached to control consoles outside the
area they are in. please look at ship maps for examples on how.
add: Every single ship with turrets now does the above
/:cl:

<!-- Both :cl:'s are required for the changelog to work! You can put
your name to the right of the first :cl: if you want to overwrite your
GitHub username as author ingame. -->
<!-- You can use multiple of the same prefix (they're only used for the
icon ingame) and delete the unneeded ones. Despite some of the tags,
changelogs should generally represent how a player might be affected by
the changes rather than a summary of the PR's contents. -->
  • Loading branch information
Bjarl authored and MysticalFaceLesS committed Sep 22, 2024
1 parent c5dae66 commit bb4a37f
Show file tree
Hide file tree
Showing 18 changed files with 826 additions and 482 deletions.
183 changes: 108 additions & 75 deletions _maps/shuttles/inteq/inteq_colossus.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -180,29 +180,6 @@
/obj/effect/turf_decal/industrial/warning/fulltile,
/turf/open/floor/engine/hull/reinforced/interior,
/area/ship/maintenance/starboard)
"cd" = (
/obj/item/storage/backpack/messenger/inteq,
/obj/item/storage/backpack/messenger/inteq,
/obj/item/storage/backpack/messenger/inteq,
/obj/item/clothing/head/beret/sec/inteq,
/obj/item/clothing/head/beret/sec/inteq,
/obj/item/clothing/head/beret/sec/inteq,
/obj/item/clothing/head/soft/inteq,
/obj/item/clothing/head/soft/inteq,
/obj/item/clothing/head/soft/inteq,
/obj/structure/closet/wall/directional/north{
icon_door = "orange_wall";
name = "uniform closet"
},
/obj/machinery/firealarm/directional/east,
/obj/item/clothing/suit/hooded/wintercoat/security/inteq,
/obj/item/clothing/suit/hooded/wintercoat/security/inteq,
/obj/item/clothing/suit/hooded/wintercoat/security/inteq,
/obj/item/clothing/suit/hooded/wintercoat/security/inteq/alt,
/obj/item/clothing/suit/hooded/wintercoat/security/inteq/alt,
/obj/item/clothing/suit/hooded/wintercoat/security/inteq/alt,
/turf/open/floor/plasteel/grimy,
/area/ship/crew)
"cq" = (
/obj/structure/cable{
icon_state = "1-2"
Expand Down Expand Up @@ -268,6 +245,29 @@
/obj/machinery/newscaster/directional/west,
/turf/open/floor/plasteel/dark,
/area/ship/crew/office)
"cT" = (
/obj/item/storage/backpack/messenger/inteq,
/obj/item/storage/backpack/messenger/inteq,
/obj/item/storage/backpack/messenger/inteq,
/obj/item/clothing/head/beret/sec/inteq,
/obj/item/clothing/head/beret/sec/inteq,
/obj/item/clothing/head/beret/sec/inteq,
/obj/item/clothing/head/soft/inteq,
/obj/item/clothing/head/soft/inteq,
/obj/item/clothing/head/soft/inteq,
/obj/structure/closet/wall/directional/north{
icon_door = "orange_wall";
name = "uniform closet"
},
/obj/machinery/firealarm/directional/east,
/obj/item/clothing/suit/hooded/wintercoat/security/inteq,
/obj/item/clothing/suit/hooded/wintercoat/security/inteq,
/obj/item/clothing/suit/hooded/wintercoat/security/inteq,
/obj/item/clothing/suit/hooded/wintercoat/security/inteq/alt,
/obj/item/clothing/suit/hooded/wintercoat/security/inteq/alt,
/obj/item/clothing/suit/hooded/wintercoat/security/inteq/alt,
/turf/open/floor/plasteel/grimy,
/area/ship/crew)
"dq" = (
/obj/effect/spawner/structure/window/plasma/reinforced/plastitanium,
/obj/structure/cable{
Expand Down Expand Up @@ -652,6 +652,13 @@
/obj/effect/decal/cleanable/dirt/dust,
/turf/open/floor/plasteel/telecomms_floor,
/area/ship/bridge)
"gH" = (
/obj/machinery/porta_turret/ship/ballistic{
dir = 6;
id = "colossus_grid"
},
/turf/closed/wall/mineral/plastitanium/nodiagonal,
/area/ship/crew)
"gJ" = (
/obj/effect/turf_decal/siding/thinplating/corner{
dir = 8
Expand Down Expand Up @@ -894,6 +901,25 @@
},
/turf/open/floor/plating,
/area/ship/engineering)
"ja" = (
/obj/machinery/atmospherics/components/unary/vent_pump/on/layer2{
dir = 8
},
/obj/structure/cable{
icon_state = "4-8"
},
/obj/effect/turf_decal/corner/opaque/brown{
dir = 4
},
/obj/effect/turf_decal/corner/opaque/yellow{
dir = 1
},
/obj/machinery/turretid/ship{
pixel_y = 24;
id = "colossus_grid"
},
/turf/open/floor/plasteel/dark,
/area/ship/bridge)
"jo" = (
/obj/machinery/atmospherics/components/unary/tank/toxins{
piping_layer = 1
Expand Down Expand Up @@ -1111,6 +1137,13 @@
/obj/structure/extinguisher_cabinet/directional/south,
/turf/open/floor/plasteel/patterned/grid,
/area/ship/hallway/fore)
"mb" = (
/obj/machinery/porta_turret/ship/ballistic{
dir = 5;
id = "colossus_grid"
},
/turf/closed/wall/mineral/plastitanium/nodiagonal,
/area/ship/hallway/port)
"mq" = (
/obj/structure/cable{
icon_state = "1-8"
Expand Down Expand Up @@ -1430,12 +1463,6 @@
/obj/effect/turf_decal/techfloor,
/turf/open/floor/plasteel/tech/grid,
/area/ship/crew/cryo)
"qJ" = (
/obj/machinery/porta_turret/ship/ballistic{
dir = 9
},
/turf/closed/wall/mineral/plastitanium/nodiagonal,
/area/ship/bridge)
"qK" = (
/obj/structure/cable/yellow{
icon_state = "1-4"
Expand Down Expand Up @@ -1706,6 +1733,13 @@
/obj/item/pen,
/turf/open/floor/plasteel/dark,
/area/ship/crew/office)
"sT" = (
/obj/machinery/porta_turret/ship/ballistic{
dir = 5;
id = "colossus_grid"
},
/turf/closed/wall/mineral/plastitanium,
/area/ship/crew)
"td" = (
/obj/structure/cable{
icon_state = "1-2"
Expand Down Expand Up @@ -2033,6 +2067,13 @@
"vH" = (
/turf/closed/wall/mineral/plastitanium/nodiagonal,
/area/ship/cargo)
"vJ" = (
/obj/machinery/porta_turret/ship/ballistic{
dir = 5;
id = "colossus_grid"
},
/turf/closed/wall/mineral/plastitanium,
/area/ship/maintenance/port)
"vZ" = (
/obj/effect/turf_decal/industrial/warning/fulltile,
/obj/machinery/door/poddoor{
Expand Down Expand Up @@ -2135,12 +2176,6 @@
},
/turf/open/floor/plasteel/patterned/grid,
/area/ship/hallway/central)
"xh" = (
/obj/machinery/porta_turret/ship/ballistic{
dir = 5
},
/turf/closed/wall/mineral/plastitanium,
/area/ship/bridge)
"xr" = (
/obj/effect/turf_decal/trimline/opaque/yellow/line{
dir = 1
Expand Down Expand Up @@ -2406,6 +2441,13 @@
},
/turf/open/floor/plating,
/area/ship/maintenance/port)
"Bi" = (
/obj/machinery/porta_turret/ship/ballistic{
dir = 9;
id = "colossus_grid"
},
/turf/closed/wall/mineral/plastitanium/nodiagonal,
/area/ship/crew/office)
"Bj" = (
/obj/effect/turf_decal/trimline/opaque/yellow/line,
/obj/effect/turf_decal/siding/thinplating,
Expand Down Expand Up @@ -3005,12 +3047,6 @@
/obj/machinery/atmospherics/pipe/simple/orange/hidden/layer1,
/turf/open/floor/plasteel/tech,
/area/ship/engineering)
"Hu" = (
/obj/machinery/porta_turret/ship/ballistic{
dir = 6
},
/turf/closed/wall/mineral/plastitanium/nodiagonal,
/area/ship/bridge)
"HD" = (
/obj/effect/spawner/structure/window/plasma/reinforced/plastitanium,
/obj/structure/cable{
Expand Down Expand Up @@ -3486,24 +3522,6 @@
/obj/effect/landmark/start/security_officer,
/turf/open/floor/plasteel/dark,
/area/ship/crew/office)
"NH" = (
/obj/machinery/atmospherics/components/unary/vent_pump/on/layer2{
dir = 8
},
/obj/machinery/turretid/lethal{
pixel_y = 22
},
/obj/structure/cable{
icon_state = "4-8"
},
/obj/effect/turf_decal/corner/opaque/brown{
dir = 4
},
/obj/effect/turf_decal/corner/opaque/yellow{
dir = 1
},
/turf/open/floor/plasteel/dark,
/area/ship/bridge)
"NP" = (
/obj/item/kirbyplants/random,
/obj/effect/turf_decal/corner/opaque/yellow,
Expand Down Expand Up @@ -3611,6 +3629,13 @@
},
/turf/open/floor/engine/hull/reinforced,
/area/ship/maintenance/starboard)
"OI" = (
/obj/machinery/porta_turret/ship/ballistic{
dir = 6;
id = "colossus_grid"
},
/turf/closed/wall/mineral/plastitanium,
/area/ship/maintenance/starboard)
"OV" = (
/obj/structure/cable{
icon_state = "2-4"
Expand Down Expand Up @@ -3764,6 +3789,13 @@
},
/turf/open/floor/plating,
/area/ship/maintenance/starboard)
"Qw" = (
/obj/machinery/porta_turret/ship/ballistic{
dir = 10;
id = "colossus_grid"
},
/turf/closed/wall/mineral/plastitanium/nodiagonal,
/area/ship/security/armory)
"QC" = (
/obj/machinery/atmospherics/pipe/simple/supply/hidden/layer2{
dir = 10
Expand Down Expand Up @@ -3820,12 +3852,6 @@
/obj/machinery/light/directional/north,
/turf/open/floor/plasteel/patterned/grid,
/area/ship/hallway/central)
"QZ" = (
/obj/machinery/porta_turret/ship/ballistic{
dir = 10
},
/turf/closed/wall/mineral/plastitanium/nodiagonal,
/area/ship/bridge)
"Rb" = (
/obj/machinery/atmospherics/components/unary/outlet_injector/on{
name = "exhaust injector"
Expand Down Expand Up @@ -3917,6 +3943,13 @@
/obj/effect/landmark/start/station_engineer,
/turf/open/floor/plasteel/patterned/cargo_one,
/area/ship/cargo)
"RZ" = (
/obj/machinery/porta_turret/ship/ballistic{
dir = 6;
id = "colossus_grid"
},
/turf/closed/wall/mineral/plastitanium,
/area/ship/security)
"Sa" = (
/obj/effect/turf_decal/borderfloor{
dir = 4
Expand Down Expand Up @@ -4758,7 +4791,7 @@ XJ
(8,1,1) = {"
XJ
XJ
xh
vJ
bo
bo
bo
Expand All @@ -4774,7 +4807,7 @@ rl
rl
rl
rl
Oa
OI
XJ
"}
(9,1,1) = {"
Expand Down Expand Up @@ -4955,7 +4988,7 @@ XJ
"}
(17,1,1) = {"
XJ
qJ
Bi
ZB
ZB
ZB
Expand All @@ -4973,7 +5006,7 @@ Dq
Dq
Dq
Dq
QZ
Qw
"}
(18,1,1) = {"
XJ
Expand Down Expand Up @@ -5193,7 +5226,7 @@ XA
XA
XA
XA
Oa
RZ
"}
(28,1,1) = {"
Yy
Expand All @@ -5219,7 +5252,7 @@ XJ
"}
(29,1,1) = {"
XJ
Ll
mb
hD
hD
hD
Expand Down Expand Up @@ -5287,7 +5320,7 @@ XJ
XJ
XJ
tX
NH
ja
tI
Ae
Sj
Expand Down Expand Up @@ -5320,7 +5353,7 @@ fN
fN
Yr
zF
cd
cT
GW
vq
gu
Expand Down Expand Up @@ -5364,11 +5397,11 @@ XJ
XJ
XJ
XJ
xh
sT
xT
xT
xT
Hu
gH
XJ
"}
(36,1,1) = {"
Expand Down
Loading

0 comments on commit bb4a37f

Please sign in to comment.