Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
Update attack_alien.dm (#662)
Browse files Browse the repository at this point in the history
  • Loading branch information
Helg2 authored Jun 24, 2024
1 parent c6441e8 commit 2f662bb
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions code/modules/mob/living/carbon/xenomorph/attack_alien.dm
Original file line number Diff line number Diff line change
Expand Up @@ -190,19 +190,16 @@
SEND_SIGNAL(X, COMSIG_XENOMORPH_ATTACK_HUMAN, src)

//RUTGMC EDIT ADDITION BEGIN - Preds
if(wear_mask && X.zone_selected == "head")
if(!istype(wear_mask, /obj/item/clothing/mask/gas/yautja))
return FALSE
if(prob(5))
playsound(loc, "alien_claw_metal", 25, 1)
X.visible_message(span_danger("The [X] smashes off [src]'s [wear_mask.name]!"), \
span_danger("You smash off [src]'s [wear_mask.name]!"), null, 5)
dropItemToGround(wear_mask)
if(isyautja(src))
emote("roar")
else
emote("scream")
return TRUE
if(wear_mask && X.zone_selected == "head" && istype(wear_mask, /obj/item/clothing/mask/gas/yautja) && prob(5))
playsound(loc, "alien_claw_metal", 25, 1)
X.visible_message(span_danger("The [X] smashes off [src]'s [wear_mask.name]!"), \
span_danger("You smash off [src]'s [wear_mask.name]!"), null, 5)
dropItemToGround(wear_mask)
if(isyautja(src))
emote("roar")
else
emote("scream")
return TRUE
//RUTGMC EDIT ADDITION END

. = ..()
Expand Down

0 comments on commit 2f662bb

Please sign in to comment.