mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 05:00:55 +01:00
[MIRROR] Capture The Flag: Class Warfare (#7108)
* Capture The Flag: Class Warfare (#59629) Co-authored-by: Thunder12345 <stewart@ critar.demon.co.uk> * Capture The Flag: Class Warfare Co-authored-by: Thunder12345 <Thunder12345@users.noreply.github.com> Co-authored-by: Thunder12345 <stewart@ critar.demon.co.uk>
This commit is contained in:
co-authored by
Thunder12345
Thunder12345
parent
548401023d
commit
7201c920cc
@@ -1,132 +1,5 @@
|
||||
///These are for the medisim shuttle
|
||||
|
||||
#define REDFIELD_TEAM "Red"
|
||||
#define BLUESWORTH_TEAM "Blue"
|
||||
|
||||
/obj/machinery/capture_the_flag/medisim
|
||||
game_id = "medieval"
|
||||
game_area = /area/shuttle/escape/simulation
|
||||
ammo_type = null //no guns, no need
|
||||
victory_rejoin_text = "<span class='userdanger'>Teams have been cleared. The next game is starting automatically. Rejoin a team if you wish!</span>"
|
||||
|
||||
/obj/machinery/capture_the_flag/medisim/Initialize(mapload)
|
||||
. = ..()
|
||||
// Ensure that the historical simulation is extra bloody.
|
||||
player_traits -= TRAIT_NEVER_WOUNDED
|
||||
|
||||
start_ctf() //both machines initialize, so both will call start_ctf instead of toggle_id_ctf calling it for both, twice.
|
||||
|
||||
/obj/machinery/capture_the_flag/medisim/victory()
|
||||
. = ..()
|
||||
toggle_id_ctf(null, game_id, automated = TRUE)//only one machine runs the victory proc, start_ctf proc would break the other machine
|
||||
|
||||
/obj/machinery/capture_the_flag/medisim/spawn_team_member(client/new_team_member)
|
||||
. = ..()
|
||||
if(!.)
|
||||
return
|
||||
var/mob/living/carbon/human/human_knight = .
|
||||
randomize_human(human_knight)
|
||||
human_knight.dna.update_dna_identity()
|
||||
human_knight.dna.add_mutation(MEDIEVAL, MUT_OTHER)
|
||||
var/oldname = human_knight.name
|
||||
var/title = "error"
|
||||
switch (human_knight.gender)
|
||||
if (MALE)
|
||||
title = pick(list("Sir", "Lord"))
|
||||
if (FEMALE)
|
||||
title = pick(list("Dame", "Lady"))
|
||||
else
|
||||
title = "Noble"
|
||||
human_knight.real_name = "[title] [oldname]"
|
||||
human_knight.name = human_knight.real_name
|
||||
|
||||
/obj/machinery/capture_the_flag/medisim/red
|
||||
name = "\improper Redfield Data Realizer"
|
||||
icon_state = "syndbeacon"
|
||||
team = REDFIELD_TEAM
|
||||
team_span = "redteamradio"
|
||||
ctf_gear = list("knight" = /datum/outfit/medisim/red_knight, "archer" = /datum/outfit/medisim/red_archer)
|
||||
|
||||
/obj/machinery/capture_the_flag/medisim/blue
|
||||
name = "\improper Bluesworth Data Realizer"
|
||||
icon_state = "bluebeacon"
|
||||
team = BLUESWORTH_TEAM
|
||||
team_span = "blueteamradio"
|
||||
ctf_gear = list("knight" = /datum/outfit/medisim/blue_knight, "archer" = /datum/outfit/medisim/blue_archer)
|
||||
|
||||
/obj/item/ctf/red/medisim
|
||||
name = "\improper Redfield Castle Fair Maiden"
|
||||
desc = "Protect your maiden, and capture theirs!"
|
||||
icon = 'icons/obj/plushes.dmi'
|
||||
icon_state = "plushie_nuke"
|
||||
game_area = /area/shuttle/escape
|
||||
movement_type = FLOATING //there are chasms, and resetting when they fall in is really lame so lets minimize that
|
||||
|
||||
/obj/item/ctf/blue/medisim
|
||||
name = "\improper Bluesworth Hold Fair Maiden"
|
||||
desc = "Protect your maiden, and capture theirs!"
|
||||
icon = 'icons/obj/plushes.dmi'
|
||||
icon_state = "plushie_slime"
|
||||
game_area = /area/shuttle/escape
|
||||
movement_type = FLOATING //there are chasms, and resetting when they fall in is really lame so lets minimize that
|
||||
|
||||
//everything except arrows
|
||||
/datum/outfit/medisim/post_equip(mob/living/carbon/human/H, visualsOnly)
|
||||
var/list/no_drops = list()
|
||||
no_drops += H.get_item_by_slot(ITEM_SLOT_FEET)
|
||||
no_drops += H.get_item_by_slot(ITEM_SLOT_BELT)
|
||||
no_drops += H.get_item_by_slot(ITEM_SLOT_ICLOTHING)
|
||||
no_drops += H.get_item_by_slot(ITEM_SLOT_OCLOTHING)
|
||||
no_drops += H.get_item_by_slot(ITEM_SLOT_HEAD)
|
||||
no_drops += H.get_item_by_slot(ITEM_SLOT_HANDS)
|
||||
no_drops += H.get_item_by_slot(ITEM_SLOT_GLOVES)
|
||||
listclearnulls(no_drops) //any slots we didn't have
|
||||
for(var/_outfit_item in no_drops)
|
||||
var/obj/item/outfit_item = _outfit_item
|
||||
outfit_item.item_flags |= DROPDEL//so this all stays clean :)
|
||||
|
||||
/datum/outfit/medisim/red_knight
|
||||
name = "Redfield Castle Knight"
|
||||
|
||||
uniform = /obj/item/clothing/under/color/red
|
||||
shoes = /obj/item/clothing/shoes/plate/red
|
||||
suit = /obj/item/clothing/suit/armor/riot/knight/red
|
||||
gloves = /obj/item/clothing/gloves/plate/red
|
||||
head = /obj/item/clothing/head/helmet/knight/red
|
||||
r_hand = /obj/item/claymore
|
||||
|
||||
/datum/outfit/medisim/blue_knight
|
||||
name = "Bluesworth Hold Knight"
|
||||
|
||||
uniform = /obj/item/clothing/under/color/blue
|
||||
shoes = /obj/item/clothing/shoes/plate/blue
|
||||
suit = /obj/item/clothing/suit/armor/riot/knight/blue
|
||||
gloves = /obj/item/clothing/gloves/plate/blue
|
||||
head = /obj/item/clothing/head/helmet/knight/blue
|
||||
r_hand = /obj/item/claymore
|
||||
|
||||
/datum/outfit/medisim/red_archer
|
||||
name = "Redfield Castle Archer"
|
||||
|
||||
uniform = /obj/item/clothing/under/color/red
|
||||
belt = /obj/item/storage/bag/quiver
|
||||
shoes = /obj/item/clothing/shoes/plate/red
|
||||
suit = /obj/item/clothing/suit/armor/vest/cuirass
|
||||
gloves = /obj/item/clothing/gloves/plate/red
|
||||
head = /obj/item/clothing/head/helmet/knight/red
|
||||
r_hand = /obj/item/gun/ballistic/bow
|
||||
|
||||
/datum/outfit/medisim/blue_archer
|
||||
name = "Bluesworth Hold Archer"
|
||||
|
||||
uniform = /obj/item/clothing/under/color/blue
|
||||
belt = /obj/item/storage/bag/quiver
|
||||
shoes = /obj/item/clothing/shoes/plate/blue
|
||||
suit = /obj/item/clothing/suit/armor/vest/cuirass
|
||||
gloves = /obj/item/clothing/gloves/plate/blue
|
||||
head = /obj/item/clothing/head/helmet/knight/blue
|
||||
r_hand = /obj/item/gun/ballistic/bow
|
||||
|
||||
/obj/machinery/computer/reality_simulation
|
||||
name = "reality simulation computer"
|
||||
desc = "A computer calculating the medieval times. Uh, wow. Is this bad boy quantum?"
|
||||
@@ -143,6 +16,3 @@
|
||||
<br>
|
||||
<br>
|
||||
<i>the rest of the page is filled with various doodles of people fighting with swords.</i>"}
|
||||
|
||||
#undef REDFIELD_TEAM
|
||||
#undef BLUESWORTH_TEAM
|
||||
|
||||
Reference in New Issue
Block a user