Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
ihatethisengine committed Dec 22, 2023
1 parent d6ba8c5 commit 98b6901
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
5 changes: 5 additions & 0 deletions code/controllers/subsystem/minimap.dm
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,11 @@ SUBSYSTEM_DEF(minimaps)
if(faction == FACTION_NEUTRAL && isobserver(user))
faction = allowed_flags == MINIMAP_FLAG_XENO ? XENO_HIVE_NORMAL : FACTION_MARINE

if(is_xeno && xeno.hive.see_humans_on_tacmap)
allowed_flags = MINIMAP_FLAG_ALL
faction = FACTION_NEUTRAL
targeted_ztrait = ZTRAIT_MARINE_MAIN_SHIP

new_current_map = get_unannounced_tacmap_data_png(faction)
old_map = get_tacmap_data_png(faction)
current_svg = get_tacmap_data_svg(faction)
Expand Down
13 changes: 11 additions & 2 deletions code/modules/mob/living/carbon/human/death.dm
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,23 @@
// Finding the last guy for anti-delay.
if(SSticker.mode && SSticker.mode.is_in_endgame && SSticker.current_state != GAME_STATE_FINISHED && is_mainship_level(z))
var/mob/last_living_human
var/shipside_humans_count = 0
var/datum/hive_status/main_hive = GLOB.hive_datum[XENO_HIVE_NORMAL]
var/see_humans_on_tacmap = main_hive.see_humans_on_tacmap
for(var/mob/living/carbon/human/cur_human as anything in GLOB.alive_human_list)
if(!is_mainship_level(cur_human.z))
continue
if(last_living_human)
shipside_humans_count++
if(last_living_human && see_humans_on_tacmap)
last_living_human = null
break
last_living_human = cur_human
if(last_living_human && (GLOB.last_qm_callout + 2 MINUTES) < world.time)
xeno_announcement("[shipside_humans_count].", XENO_HIVE_NORMAL, SPAN_ANNOUNCEMENT_HEADER_BLUE("[QUEEN_MOTHER_ANNOUNCE]"))

if(!see_humans_on_tacmap && shipside_humans_count < main_hive.totalXenos.len * 0.75)
xeno_announcement("TRUE.", XENO_HIVE_NORMAL, SPAN_ANNOUNCEMENT_HEADER_BLUE("[QUEEN_MOTHER_ANNOUNCE]"))
main_hive.see_humans_on_tacmap = TRUE
if(last_living_human && shipside_humans_count <= 1 && (GLOB.last_qm_callout + 2 MINUTES) < world.time)
GLOB.last_qm_callout = world.time
// Tell the xenos where the human is.
xeno_announcement("I sense the last tallhost hiding in [get_area(last_living_human)].", XENO_HIVE_NORMAL, SPAN_ANNOUNCEMENT_HEADER_BLUE("[QUEEN_MOTHER_ANNOUNCE]"))
Expand Down
2 changes: 2 additions & 0 deletions code/modules/mob/living/carbon/xenomorph/hive_status.dm
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@
/// Set to false if you want to prevent getting burrowed larva from latejoin marines
var/latejoin_burrowed = TRUE

var/see_humans_on_tacmap = FALSE

var/list/hive_inherant_traits

// Cultist Info
Expand Down

0 comments on commit 98b6901

Please sign in to comment.