Skip to content

Commit

Permalink
Merge branch 'master' into xeno_endgame_revive
Browse files Browse the repository at this point in the history
  • Loading branch information
Nanu308 authored Oct 22, 2024
2 parents cb5f267 + ad5db10 commit 689c350
Show file tree
Hide file tree
Showing 147 changed files with 2,584 additions and 904 deletions.
2 changes: 2 additions & 0 deletions code/__DEFINES/cooldowns.dm
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
#define COOLDOWN_ITEM_HOOD_SOUND "item_hood_sound"
#define COOLDOWN_LIGHT "cooldown_light"

#define COOLDOWN_PRINTER_ERROR "cooldown_printer_error"

//Define for ship alt
#define COOLDOWN_ALTITUDE_CHANGE "altitude_change"

Expand Down
6 changes: 6 additions & 0 deletions code/__DEFINES/hud.dm
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,9 @@
#define NOTIFY_JOIN_XENO "join_xeno"
#define NOTIFY_XENO_TACMAP "xeno_tacmap"
#define NOTIFY_USCM_TACMAP "uscm_tacmap"

#define INHERENT_HUD_MEDICAL "med"
#define INHERENT_HUD_SECURITY "sec"
#define INHERENT_HUD_NEW_PLAYER "new"

#define HUD_MENTOR_SIGHT "New Player Markers"
1 change: 1 addition & 0 deletions code/__DEFINES/human.dm
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@
#define SYNTH_GEN_ONE "First Generation Synthetic"
#define SYNTH_GEN_TWO "Second Generation Synthetic"
#define SYNTH_GEN_THREE "Third Generation Synthetic"
#define SYNTH_K9 "Synthetic K9"

#define PLAYER_SYNTHS list(SYNTH_GEN_ONE, SYNTH_GEN_TWO, SYNTH_GEN_THREE)
#define SYNTH_TYPES list(SYNTH_COLONY, SYNTH_COLONY_GEN_ONE, SYNTH_COLONY_GEN_TWO, SYNTH_COMBAT, SYNTH_INFILTRATOR, SYNTH_WORKING_JOE, SYNTH_GEN_ONE, SYNTH_GEN_TWO, SYNTH_GEN_THREE)
Expand Down
1 change: 1 addition & 0 deletions code/__DEFINES/job.dm
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ GLOBAL_LIST_INIT(job_squad_roles, JOB_SQUAD_ROLES_LIST)
#define JOB_COMBAT_REPORTER "Combat Correspondent"
#define JOB_MESS_SERGEANT "Mess Technician"
#define JOB_SYNTH "Synthetic"
#define JOB_SYNTH_K9 "Synthetic K9"
#define JOB_WORKING_JOE "Working Joe"

#define JOB_CO "Commanding Officer"
Expand Down
2 changes: 2 additions & 0 deletions code/__DEFINES/mob_hud.dm
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#define HUNTER_CLAN "25" //Displays a colored icon to represent ingame Hunter Clans
#define HUNTER_HUD "26" //Displays various statuses on mobs for Hunters to identify targets
#define HOLOCARD_HUD "27" //Displays the holocards set by medical personnel
#define NEW_PLAYER_HUD "29" //Makes it easy to see new players.

//data HUD (medhud, sechud) defines
#define MOB_HUD_SECURITY_BASIC 1
Expand All @@ -47,6 +48,7 @@
#define MOB_HUD_HUNTER 16
#define MOB_HUD_HUNTER_CLAN 17
#define MOB_HUD_EXECUTE 18
#define MOB_HUD_NEW_PLAYER 19

//for SL/FTL/LZ targeting on locator huds
#define TRACKER_SL "track_sl"
Expand Down
2 changes: 2 additions & 0 deletions code/__DEFINES/mobs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@
#define SPECIAL_BONEBREAK (1<<13) //species do not get their bonebreak chance modified by endurance
#define NO_SHRAPNEL (1<<14)
#define HAS_HARDCRIT (1<<15)
#define NO_OVERLAYS (1<<16) // Stop OnMob overlays from appearing on sprite

//=================================================

Expand Down Expand Up @@ -346,6 +347,7 @@ GLOBAL_LIST_INIT(default_xeno_onmob_icons, list(
#define SPECIES_HUMAN "Human"
#define SPECIES_YAUTJA "Yautja"
#define SPECIES_SYNTHETIC "Synthetic"
#define SPECIES_SYNTHETIC_K9 "Synthetic K9"
#define SPECIES_MONKEY "Monkey"
#define SPECIES_ZOMBIE "Zombie"

Expand Down
1 change: 1 addition & 0 deletions code/__DEFINES/mode.dm
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ DEFINE_BITFIELD(whitelist_status, list(
#define FACTION_LIST_MARINE_WY list(FACTION_MARINE, FACTION_PMC, FACTION_WY_DEATHSQUAD, FACTION_WY)
#define FACTION_LIST_MARINE_UPP list(FACTION_MARINE, FACTION_UPP)
#define FACTION_LIST_MARINE_TWE list(FACTION_MARINE, FACTION_TWE)
#define FACTION_LIST_YAUTJA list(FACTION_YAUTJA)

// Xenomorphs
#define FACTION_PREDALIEN "Predalien"
Expand Down
3 changes: 3 additions & 0 deletions code/__DEFINES/paygrade_defs/marines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,6 @@

/// MO10S, Commandant of the Marine Corps
#define PAY_SHORT_MO10S "MO10S"

/// SYN_K9, Synthetic K9
#define PAY_SHORT_SYN_K9 "K9"
1 change: 1 addition & 0 deletions code/__DEFINES/pred.dm
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#define PRED_YAUTJA_HALF_CAPE "yautja half-cape"
#define PRED_YAUTJA_QUARTER_CAPE "yautja quarter-cape"
#define PRED_YAUTJA_PONCHO "yautja poncho"
#define PRED_YAUTJA_DAMAGED_CAPE "yautja damaged cape"

#define SD_TYPE_BIG 0
#define SD_TYPE_SMALL 1
1 change: 1 addition & 0 deletions code/__DEFINES/shuttles.dm
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,4 @@
#define ADMIN_LANDING_PAD_3 "base-ert3"
#define ADMIN_LANDING_PAD_4 "base-ert4"
#define ADMIN_LANDING_PAD_5 "base-ert5"
#define ADMIN_LANDING_PAD_6 "base-ert6"
1 change: 1 addition & 0 deletions code/__DEFINES/tutorial.dm
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#define TUTORIAL_ATOM_FROM_TRACKING(path, varname) var##path/##varname = tracking_atoms[##path]
#define IS_TUTORIAL_COMPLETED(user, tutorial_id) (user.client && (tutorial_id in user.client.prefs.completed_tutorials))

#define TUTORIAL_CATEGORY_BASE "Base" // Shouldn't be used outside of base types
#define TUTORIAL_CATEGORY_SS13 "Space Station 13"
Expand Down
1 change: 1 addition & 0 deletions code/__DEFINES/typecheck/humanoids.dm
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#define isworkingjoe(A) (ishuman(A) && istype(A?:species, /datum/species/synthetic/colonial/working_joe))
#define ishazardjoe(A) (ishuman(A) && istype(A?:species, /datum/species/synthetic/colonial/working_joe/hazard))
#define isinfiltratorsynthetic(A) (ishuman(A) && istype(A?:species, /datum/species/synthetic/infiltrator))
#define isk9synth(A) (ishuman(A) && istype(A?:species, /datum/species/synthetic/synth_k9))

//Specic group checks, use instead of typechecks (but use traits instead)
#define issamespecies(A, B) (A.species?.group == B.species?.group)
Expand Down
2 changes: 1 addition & 1 deletion code/__HELPERS/game.dm
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@
continue

if(abomination)
if(!(/datum/tutorial/xenomorph/abomination::tutorial_id in cur_obs.client.prefs.completed_tutorials))
if(!IS_TUTORIAL_COMPLETED(cur_obs, "xeno_abom_1"))
to_chat(cur_obs, SPAN_BOLDNOTICE("You were passed over for playing as an Abomination because you have not completed its tutorial."))
continue

Expand Down
3 changes: 3 additions & 0 deletions code/_globalvars/misc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,6 @@ GLOBAL_VAR(xeno_queue_candidate_count)
GLOBAL_VAR(obfs_x)
/// A number between -500 and 500.
GLOBAL_VAR(obfs_y)

/// The current amount of giant lizards that are alive.
GLOBAL_VAR_INIT(giant_lizards_alive, 0)
2 changes: 2 additions & 0 deletions code/datums/emergency_calls/clf.dm
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
to_chat(H, SPAN_BOLD("The arrival of the USCM Battalion, the Falling Falcons, and their flagship, the [MAIN_SHIP_NAME], have reaffirmed that the United Americas considers the Neroid Sector part of their holdings."))
to_chat(H, SPAN_BOLD("It is up to you and your fellow colonists to make them realize their trespasses. This sector is no longer theirs."))

to_chat(H, SPAN_WARNING(FONT_SIZE_HUGE("YOU ARE HOSTILE to the USCM")))

/datum/emergency_call/clf/create_member(datum/mind/M, turf/override_spawn_loc)
var/turf/spawn_loc = override_spawn_loc ? override_spawn_loc : get_spawn_point()

Expand Down
4 changes: 4 additions & 0 deletions code/datums/emergency_calls/deathsquad.dm
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@
to_chat(person, SPAN_ROLE_BODY("Whiteout protocol is in effect for the target, all assets onboard are to be liquidated with expediency unless otherwise instructed by Weyland Yutani personnel holding the position of Director or above."))
arm_equipment(person, /datum/equipment_preset/pmc/w_y_whiteout, TRUE, TRUE)

to_chat(person, SPAN_WARNING(FONT_SIZE_HUGE("YOU ARE [hostility? "HOSTILE":"FRIENDLY"] to the USCM")))

addtimer(CALLBACK(GLOBAL_PROC, GLOBAL_PROC_REF(to_chat), person, SPAN_BOLD("Objectives: [objectives]")), 1 SECONDS)

/datum/emergency_call/death/low_threat
Expand Down Expand Up @@ -83,6 +85,8 @@
to_chat(person, SPAN_ROLE_BODY("Whiteout protocol is in effect for the target, all assets onboard are to be liquidated with expediency unless otherwise instructed by Weyland Yutani personnel holding the position of Director or above."))
arm_equipment(person, /datum/equipment_preset/pmc/w_y_whiteout/low_threat, TRUE, TRUE)

to_chat(person, SPAN_WARNING(FONT_SIZE_HUGE("YOU ARE [hostility? "HOSTILE":"FRIENDLY"] to the USCM")))

addtimer(CALLBACK(GLOBAL_PROC, GLOBAL_PROC_REF(to_chat), person, SPAN_BOLD("Objectives: [objectives]")), 1 SECONDS)

//################################################################################################
Expand Down
3 changes: 3 additions & 0 deletions code/datums/emergency_calls/deus_vult.dm
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,7 @@
to_chat(H, SPAN_ROLE_BODY("You must clear out any traces of the unholy from this wretched place!"))
to_chat(H, SPAN_ROLE_BODY("Follow any orders directly from the Higher Power!"))


to_chat(M, SPAN_WARNING(FONT_SIZE_HUGE("YOU ARE [hostility? "HOSTILE":"FRIENDLY"] to the USCM")))

addtimer(CALLBACK(GLOBAL_PROC, GLOBAL_PROC_REF(to_chat), H, SPAN_BOLD("Objectives: [objectives]")), 1 SECONDS)
2 changes: 1 addition & 1 deletion code/datums/emergency_calls/emergency_call.dm
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@
if(announce_incoming)
marine_announcement(dispatch_message, "Distress Beacon", 'sound/AI/distressreceived.ogg', logging = ARES_LOG_SECURITY) //Announcement that the Distress Beacon has been answered, does not hint towards the chosen ERT

message_admins("Distress beacon: [src.name] finalized, setting up candidates.")
message_admins("Distress beacon: [src.name] finalized, setting up candidates. [hostility? "[SPAN_WARNING("(THEY ARE HOSTILE)")]":"(they are friendly)"].")

//Let the deadchat know what's up since they are usually curious
for(var/mob/dead/observer/M in GLOB.observer_list)
Expand Down
3 changes: 3 additions & 0 deletions code/datums/emergency_calls/hefa_knight.dm
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@

arm_equipment(H, /datum/equipment_preset/fun/hefa/melee, FALSE, TRUE)
addtimer(CALLBACK(GLOBAL_PROC, GLOBAL_PROC_REF(to_chat), H, SPAN_BOLD("Objectives: [objectives]")), 1 SECONDS)


to_chat(H, SPAN_WARNING(FONT_SIZE_HUGE("YOU ARE [hostility? "HOSTILE":"FRIENDLY"] to the USCM")))
2 changes: 2 additions & 0 deletions code/datums/emergency_calls/mercs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
else
to_chat(H, SPAN_NOTICE(SPAN_BOLD("To this end, you have been contacted by Weyland-Yutani of the USCSS Royce to assist the [MAIN_SHIP_NAME]..")))
to_chat(H, SPAN_NOTICE(SPAN_BOLD("Ensure they are not destroyed.</b>")))
to_chat(H, SPAN_WARNING(FONT_SIZE_HUGE("YOU ARE [hostility? "HOSTILE":"FRIENDLY"] to the USCM")))

/datum/emergency_call/mercs/create_member(datum/mind/M, turf/override_spawn_loc)
var/turf/spawn_loc = override_spawn_loc ? override_spawn_loc : get_spawn_point()
Expand Down Expand Up @@ -131,6 +132,7 @@
else
to_chat(H, SPAN_NOTICE(SPAN_BOLD("To this end, you have been contacted by Weyland-Yutani of the USCSS Royce to assist the [MAIN_SHIP_NAME]..")))
to_chat(H, SPAN_NOTICE(SPAN_BOLD("Ensure they are not destroyed.</b>")))
to_chat(H, SPAN_WARNING(FONT_SIZE_HUGE("YOU ARE [hostility? "HOSTILE":"FRIENDLY"] to the USCM")))

/datum/emergency_call/heavy_mercs/create_member(datum/mind/M, turf/override_spawn_loc)
var/turf/spawn_loc = override_spawn_loc ? override_spawn_loc : get_spawn_point()
Expand Down
3 changes: 2 additions & 1 deletion code/datums/emergency_calls/upp.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

//UPP Strike Team
/datum/emergency_call/upp
name = "UPP Naval Infantry (Squad)"
name = "UPP Naval Infantry (Squad) (RANDOM)"
mob_max = 9
probability = 20
shuttle_id = MOBILE_SHUTTLE_ID_ERT3
Expand Down Expand Up @@ -49,6 +49,7 @@
to_chat(M, SPAN_WARNING(FONT_SIZE_BIG("Glory to Colonel Ganbaatar.")))
to_chat(M, SPAN_WARNING(FONT_SIZE_BIG("Glory to the Smoldering Sons.")))
to_chat(M, SPAN_WARNING(FONT_SIZE_BIG("Glory to the UPP.")))
to_chat(M, SPAN_WARNING(FONT_SIZE_HUGE("YOU ARE [hostility? "HOSTILE":"FRIENDLY"] to the USCM")))

///////////////////UPP///////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion code/datums/entities/ticket.dm
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ BSQL_PROTECT_DATUM(/datum/entity/ticket)
ticket_ent.sender = sender
ticket_ent.urgent = urgent
ticket_ent.time = time2text(world.timeofday, "YYYY-MM-DD hh:mm:ss")
ticket_ent.round_id = SSperf_logging.round?.id
ticket_ent.round_id = GLOB.round_id
ticket_ent.save()
ticket_ent.detach()

Expand Down
4 changes: 2 additions & 2 deletions code/datums/factions/upp.dm
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@
list("Type 71 Magazine (5.45x39mm)", 5, /obj/item/ammo_magazine/rifle/type71, null, VENDOR_ITEM_REGULAR),

list("SIDEARMS", 0, null, null, null),
list("Type 73 Pistol", 25, /obj/item/weapon/gun/pistol/t73, null, VENDOR_ITEM_REGULAR),
list("Type 73 Pistol", 15, /obj/item/weapon/gun/pistol/t73, null, VENDOR_ITEM_REGULAR),
list("NP92 Pistol", 15, /obj/item/weapon/gun/pistol/np92, null, VENDOR_ITEM_REGULAR),
list("ZHNK-72 Revolver", 15, /obj/item/weapon/gun/revolver/upp, null, VENDOR_ITEM_REGULAR),

list("SIDEARM AMMUNITION", 0, null, null, null),
list("Type 73 Magazine (7.62x25mm Tokarev)", 5, /obj/item/ammo_magazine/pistol/t73, null, VENDOR_ITEM_REGULAR),
list("ZHNK-72 Speed Loader (7.62x38mmR)", 5, /obj/item/ammo_magazine/revolver/upp, null, VENDOR_ITEM_REGULAR),
list("NP92 Magazine (9x18mm Makarov)", 40, /obj/item/ammo_magazine/pistol/np92, null, VENDOR_ITEM_REGULAR),
list("NP92 Magazine (9x18mm Makarov)", 5, /obj/item/ammo_magazine/pistol/np92, null, VENDOR_ITEM_REGULAR),

list("ATTACHMENTS", 0, null, null, null),
list("Angled Grip", 15, /obj/item/attachable/angledgrip, null, VENDOR_ITEM_REGULAR),
Expand Down
8 changes: 7 additions & 1 deletion code/datums/factions/uscm.dm
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
if(JOB_SQUAD_ENGI) marine_rk = "engi"
if(JOB_SQUAD_SPECIALIST) marine_rk = "spec"
if(JOB_SQUAD_TEAM_LEADER) marine_rk = "tl"
if(JOB_SQUAD_MEDIC) marine_rk = "med"
if(JOB_SQUAD_MEDIC)
if(current_human.rank_fallback == "medk9")
marine_rk = "medk9" //We don't need Medics to lose their job when converting to K9 Handlers as it would duplicate JOB_SQUAD_MEDIC
else
marine_rk = "med"
if(JOB_SQUAD_SMARTGUN) marine_rk = "gun"
if(JOB_XO) marine_rk = "xo"
if(JOB_CO) marine_rk = "co"
Expand Down Expand Up @@ -139,6 +143,8 @@
border_rk = "command"
if(JOB_SYNTH)
marine_rk = "syn"
if(JOB_SYNTH_K9)
marine_rk = "syn_k9"
if(JOB_MESS_SERGEANT)
marine_rk = "messtech"
// Provost
Expand Down
2 changes: 1 addition & 1 deletion code/datums/keybinding/yautja.dm
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@
if(.)
return
var/mob/living/carbon/human/human = user.mob
var/obj/item/weapon/yautja/combistick/held_item = human.get_held_item()
var/obj/item/weapon/yautja/chained/combistick/held_item = human.get_held_item()
if(istype(held_item))
held_item.fold_combistick()
return TRUE
Loading

0 comments on commit 689c350

Please sign in to comment.