Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
Diegoflores31 committed Jun 25, 2024
1 parent 40471f7 commit 7b16b55
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 6 additions & 1 deletion code/modules/mob/living/carbon/xenomorph/XenoProcs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,11 @@
add_verb(src, inherent_verbs)

// activates the buffs and debuffs of Stalk mode for certain castes , This is the generic proc but each xeno can have their own set of snowflake.
/mob/living/carbon/xenomorph/set_movement_intent(new_intent)
#define STALKING_COOLDOWN "stalking_cooldown"
/mob/living/carbon/xenomorph/set_movement_intent(new_intent, cooldown = 5 SECONDS)
if(TIMER_COOLDOWN_CHECK(src, STALKING_COOLDOWN))
to_chat(src, SPAN_XENOWARNING("We are not ready to change our stance"))
return
. = ..()
if(caste)
walk_modifier = caste.walk_modifier
Expand All @@ -244,6 +248,7 @@
evasion_modifier += XENO_EVASION_MOD_ULTRA // this looks like a lot but evasion is broken and doesnt even work most of the time
add_temp_pass_flags(PASS_MOB_IS_XENO|PASS_MOB_THRU_XENO)
recalculate_evasion()
TIMER_COOLDOWN_START(src, STALKING_COOLDOWN, cooldown)

//Adds or removes a delay to movement based on your caste. If speed = 0 then it shouldn't do much.
//Runners are -2, -4 is BLINDLINGLY FAST, +2 is fat-level
Expand Down
6 changes: 6 additions & 0 deletions code/modules/mob/living/carbon/xenomorph/attack_alien.dm
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
if(attacking_xeno.behavior_delegate)
intent = attacking_xeno.behavior_delegate.override_intent(src)

if(attacking_xeno.m_intent == MOVE_INTENT_STALK)
attacking_xeno.set_movement_intent(MOVE_INTENT_HUNT, cooldown = 10 SECONDS)

//Reviewing the four primary intents
switch(intent)

Expand Down Expand Up @@ -229,6 +232,9 @@
if(M.fortify || HAS_TRAIT(M, TRAIT_ABILITY_BURROWED))
return XENO_NO_DELAY_ACTION

if(M.m_intent == MOVE_INTENT_STALK)
M.set_movement_intent(MOVE_INTENT_HUNT, cooldown = 10 SECONDS)

switch(M.a_intent)
if(INTENT_HELP)
M.visible_message(SPAN_NOTICE("[M] caresses [src] with its claws."), \
Expand Down

0 comments on commit 7b16b55

Please sign in to comment.