Skip to content

Commit

Permalink
adds wip shipmap, shuttle, code for both
Browse files Browse the repository at this point in the history
also fixes some role allocation issues
  • Loading branch information
silencer-pl committed Sep 6, 2024
1 parent dea4e06 commit 1d01590
Show file tree
Hide file tree
Showing 14 changed files with 1,227 additions and 5 deletions.
1 change: 1 addition & 0 deletions code/__DEFINES/shuttles.dm
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@
#define DROPSHIP_NORMANDY "dropship_normandy"
#define DROPSHIP_UPP "dropship_upp"
#define DROPSHIP_CYCLONE "dropship_cyclone"
#define DROPSHIP_WRAITH "dropship_wraith"

#define ALMAYER_DROPSHIP_LZ1 "almayer-hangar-lz1"
#define ALMAYER_DROPSHIP_LZ2 "almayer-hangar-lz2"
Expand Down
13 changes: 13 additions & 0 deletions code/game/area/Sulaco.dm
Original file line number Diff line number Diff line change
Expand Up @@ -231,3 +231,16 @@
/area/shuttle/distress/arrive_s_engi
name = "\improper VIP Shuttle"
icon_state = "away2"

/area/shuttle/wraith
name = "dropship Wraith"
icon_state = "shuttlered"
base_muffle = MUFFLE_HIGH
soundscape_interval = 30
is_landing_zone = TRUE
ceiling = CEILING_REINFORCED_METAL

/area/shuttle/wraith/Enter(atom/movable/O, atom/oldloc)
if(istype(O, /obj/structure/barricade))
return FALSE
return TRUE
2 changes: 1 addition & 1 deletion code/game/jobs/role_authority.dm
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ I hope it's easier to tell what the heck this proc is even doing, unlike previou
if(!lowest)
lowest = S
if(!lowest)
var/ranpick = rand(1,4)
var/ranpick = rand(1,2)
lowest = mixed_squads[ranpick]
if(lowest) lowest.put_marine_in_squad(H)
else to_chat(H, "Something went badly with randomize_squad()! Tell a coder!")
Expand Down
3 changes: 3 additions & 0 deletions code/game/machinery/doors/multi_tile.dm
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,9 @@
/obj/structure/machinery/door/airlock/multi_tile/almayer/dropshiprear/dropshipside/ds2/cyclone
name = "\improper Cyclone crew hatch"

/obj/structure/machinery/door/airlock/multi_tile/almayer/dropshiprear/dropshipside/ds2/wraith
name = "\improper Wraith crew hatch"

/obj/structure/machinery/door/airlock/multi_tile/almayer/dropshiprear/upp
name = "\improper Akademia Nauk cargo door"
icon = 'icons/obj/structures/doors/dropshipupp_cargo.dmi'
Expand Down
8 changes: 8 additions & 0 deletions code/game/turfs/closed.dm
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,14 @@
/turf/closed/shuttle/cyclone/transparent
opacity = FALSE

/turf/closed/shuttle/wraith
name = "\improper Wraith"
icon = 'icons/turf/dropship2.dmi'
icon_state = "1"

/turf/closed/shuttle/wraith/transparent
opacity = FALSE

/turf/closed/shuttle/twe_dropship
name = "\improper UD4-UK"
icon = 'icons/turf/twedropship.dmi'
Expand Down
4 changes: 4 additions & 0 deletions code/game/turfs/transit.dm
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,10 @@
shuttle_tag = DROPSHIP_CYCLONE
dir = SOUTH

/turf/open/space/transit/dropship/wraith
shuttle_tag = DROPSHIP_WRAITH
dir = SOUTH

/turf/open/space/transit/south
dir = SOUTH

Expand Down
4 changes: 2 additions & 2 deletions code/global.dm
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//This file was auto-corrected by findeclaration.exe on 25.5.2012 20:42:31
#define MAIN_SHIP_NAME SSmapping.get_main_ship_name()
#define MAIN_SHIP_DEFAULT_NAME "USS Golden Arrow"
#define SHIP_MAP_NAMES list("USS Almayer", "USS Golden Arrow", "USS Golden Arrow (Classic)", "SSV Chapaev", "USS Rover")
#define MAIN_SHIP_DEFAULT_NAME "USS Arrowhead"
#define SHIP_MAP_NAMES list("UAS Arrowhead")

#define MAIN_SHIP_PLATOON text2path(SSmapping.get_main_ship_platoon())
#define MAIN_SHIP_DEFAULT_PLATOON "/datum/squad/marine/alpha"
Expand Down
3 changes: 3 additions & 0 deletions code/modules/gear_presets/xenosurge.dm
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
access = list(ACCESS_MARINE_PREP)
assignment = JOB_UER_MARINE
rank = JOB_UER_MARINE
faction = FACTION_MARINE
paygrade = "ME3"
role_comm_title = "OPR"
skills = /datum/skills/pve/standard
Expand Down Expand Up @@ -76,6 +77,7 @@
access = list(ACCESS_MARINE_PREP)
assignment = JOB_UER_MARINE_POINT
rank = JOB_UER_MARINE_POINT
faction = FACTION_MARINE
paygrade = "ME4"
role_comm_title = "PNT"
skills = /datum/skills/pve/standard
Expand Down Expand Up @@ -121,6 +123,7 @@
access = list(ACCESS_MARINE_PREP)
assignment = JOB_UER_MARINE_LEAD
rank = JOB_UER_MARINE_LEAD
faction = FACTION_MARINE
paygrade = "ME5"
role_comm_title = "TML"
skills = /datum/skills/pve/standard
Expand Down
19 changes: 19 additions & 0 deletions code/modules/shuttle/shuttles/dropship.dm
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,15 @@
dwidth = 4
dheight = 8

/obj/docking_port/mobile/marine_dropship/wraith
name = "Wraith"
id = DROPSHIP_WRAITH
width = 9
height = 18

dwidth = 4
dheight = 8

/obj/docking_port/mobile/marine_dropship/cyclone/get_transit_path_type()
return /turf/open/space/transit/dropship/cyclone

Expand Down Expand Up @@ -324,6 +333,12 @@
auto_open = TRUE
roundstart_template = /datum/map_template/shuttle/midway

/obj/docking_port/stationary/marine_dropship/arrowhead_hangar
name = "Wraith Launch Bay"
id = GOLDEN_ARROW_LZ
auto_open = TRUE
roundstart_template = /datum/map_template/shuttle/wraith

/obj/docking_port/stationary/marine_dropship/crash_site
auto_open = TRUE

Expand Down Expand Up @@ -368,3 +383,7 @@
/datum/map_template/shuttle/cyclone
name = "Cyclone"
shuttle_id = DROPSHIP_CYCLONE

/datum/map_template/shuttle/wraith
name = "Wraith"
shuttle_id = DROPSHIP_WRAITH
11 changes: 9 additions & 2 deletions map_config/shipmaps.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,21 @@ map almayer
endmap

map golden_arrow
default
disabled
endmap

map chapaev
disabled
endmap

map rover
disabled
endmap

map golden_arrow_classic
endmap
disabled
endmap

map arrowhead
default
endmap
8 changes: 8 additions & 0 deletions maps/arrowhead.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"map_name": "UAS Arrowhead",
"map_path": "map_files/UAS_Arrowhead",
"map_file": "UAS_Arrowhead.dmm",
"webmap_url": "UASArrowhead",
"traits": [{"Marine Main Ship": true}],
"nightmare_path": "maps/Nightmare/maps/UAS_Arrowhead/"
}
Loading

0 comments on commit 1d01590

Please sign in to comment.