Files
Bubberstation/code/datums/ert.dm
Zonespace 021e56f8ff Adds the ability for ERTs to use a custom shuttle (#71348)
## About The Pull Request
ERTs can now have a custom shuttle template defined on their type,
which, should the "use custom shuttle" toggle be enabled while creating
the ERT, will spawn them in deep space on the given shuttle instead of
at Centcom.

Applies the new system to the bounty hunter ERT

## Why It's Good For The Game
Not all ERTs are NT enough to start at Centcom all the time, and it
gives more control over ERTs

## Changelog
🆑
admin: ERTs can now have a custom shuttle that they can spawn on, on a
toggle while creating said ERT.
/🆑
2022-11-21 22:58:08 -08:00

119 lines
4.4 KiB
Plaintext

/datum/ert
var/mobtype = /mob/living/carbon/human
var/team = /datum/team/ert
var/opendoors = TRUE
var/leader_role = /datum/antagonist/ert/commander
var/enforce_human = TRUE
var/roles = list(/datum/antagonist/ert/security, /datum/antagonist/ert/medic, /datum/antagonist/ert/engineer) //List of possible roles to be assigned to ERT members.
var/rename_team
var/code
var/mission = "Assist the station."
var/teamsize = 5
var/polldesc
/// If TRUE, gives the team members "[role] [random last name]" style names
var/random_names = TRUE
/// If TRUE, the admin who created the response team will be spawned in the briefing room in their preferred briefing outfit (assuming they're a ghost)
var/spawn_admin = FALSE
/// If TRUE, we try and pick one of the most experienced players who volunteered to fill the leader slot
var/leader_experience = TRUE
/// A custom map template to spawn the ERT at. If this is null or use_custom_shuttle is FALSE, the ERT will spawn at Centcom.
var/datum/map_template/ert_template
/// If we should actually _use_ the ert_template custom shuttle
var/use_custom_shuttle = TRUE
/datum/ert/New()
if (!polldesc)
polldesc = "a Code [code] Nanotrasen Emergency Response Team"
/datum/ert/blue
opendoors = FALSE
code = "Blue"
/datum/ert/amber
code = "Amber"
/datum/ert/red
leader_role = /datum/antagonist/ert/commander/red
roles = list(/datum/antagonist/ert/security/red, /datum/antagonist/ert/medic/red, /datum/antagonist/ert/engineer/red)
code = "Red"
/datum/ert/deathsquad
roles = list(/datum/antagonist/ert/deathsquad)
leader_role = /datum/antagonist/ert/deathsquad/leader
rename_team = "Deathsquad"
code = "Delta"
mission = "Leave no witnesses."
polldesc = "an elite Nanotrasen Strike Team"
/datum/ert/marine
leader_role = /datum/antagonist/ert/marine
roles = list(/datum/antagonist/ert/marine/security, /datum/antagonist/ert/marine/engineer, /datum/antagonist/ert/marine/medic)
rename_team = "Marine Squad"
polldesc = "an 'elite' Nanotrasen Strike Team"
opendoors = FALSE
/datum/ert/centcom_official
code = "Green"
teamsize = 1
opendoors = FALSE
leader_role = /datum/antagonist/ert/official
roles = list(/datum/antagonist/ert/official)
rename_team = "CentCom Officials"
polldesc = "a CentCom Official"
random_names = FALSE
leader_experience = FALSE
/datum/ert/centcom_official/New()
mission = "Conduct a routine performance review of [station_name()] and its Captain."
/datum/ert/inquisition
roles = list(/datum/antagonist/ert/chaplain/inquisitor, /datum/antagonist/ert/security/inquisitor, /datum/antagonist/ert/medic/inquisitor)
leader_role = /datum/antagonist/ert/commander/inquisitor
rename_team = "Inquisition"
mission = "Destroy any traces of paranormal activity aboard the station."
polldesc = "a Nanotrasen paranormal response team"
/datum/ert/janitor
roles = list(/datum/antagonist/ert/janitor, /datum/antagonist/ert/janitor/heavy)
leader_role = /datum/antagonist/ert/janitor/heavy
teamsize = 4
opendoors = FALSE
rename_team = "Janitor"
mission = "Clean up EVERYTHING."
polldesc = "a Nanotrasen Janitorial Response Team"
/datum/ert/intern
roles = list(/datum/antagonist/ert/intern)
leader_role = /datum/antagonist/ert/intern/leader
teamsize = 7
opendoors = FALSE
rename_team = "Horde of Interns"
mission = "Assist in conflict resolution."
polldesc = "an unpaid internship opportunity with Nanotrasen"
random_names = FALSE
/datum/ert/intern/unarmed
roles = list(/datum/antagonist/ert/intern/unarmed)
leader_role = /datum/antagonist/ert/intern/leader/unarmed
rename_team = "Unarmed Horde of Interns"
/datum/ert/erp
roles = list(/datum/antagonist/ert/security/party, /datum/antagonist/ert/clown/party, /datum/antagonist/ert/engineer/party, /datum/antagonist/ert/janitor/party)
leader_role = /datum/antagonist/ert/commander/party
opendoors = FALSE
rename_team = "Emergency Response Party"
mission = "Create entertainment for the crew."
polldesc = "a Code Rainbow Nanotrasen Emergency Response Party"
code = "Rainbow"
/datum/ert/bounty_hunters
roles = list(/datum/antagonist/ert/bounty_armor, /datum/antagonist/ert/bounty_hook, /datum/antagonist/ert/bounty_synth)
leader_role = /datum/antagonist/ert/bounty_armor
teamsize = 3
opendoors = FALSE
rename_team = "Bounty Hunters"
mission = "Assist the station in catching perps, dead or alive."
polldesc = "a Centcom-hired bounty hunting gang"
random_names = FALSE
ert_template = /datum/map_template/shuttle/ert/bounty