Timestop prevents speech (#47695)

This commit is contained in:
XDTM
2019-11-11 17:51:09 +01:00
committed by Emmett Gaines
parent ae5cd20205
commit 196568e0d1
2 changed files with 3 additions and 0 deletions

View File

@@ -249,3 +249,4 @@ Remember to update _globalvars/traits.dm if you're adding/removing/renaming trai
#define ANTI_DROP_IMPLANT_TRAIT "anti-drop-implant"
#define SLEEPING_CARP_TRAIT "sleeping_carp"
#define MADE_UNCLONEABLE "made-uncloneable"
#define TIMESTOP_TRAIT "timestop"

View File

@@ -180,6 +180,7 @@
/datum/proximity_monitor/advanced/timestop/proc/freeze_mob(mob/living/L)
frozen_mobs += L
L.Stun(20, 1, 1)
ADD_TRAIT(L, TRAIT_MUTE, TIMESTOP_TRAIT)
walk(L, 0) //stops them mid pathing even if they're stunimmune
if(isanimal(L))
var/mob/living/simple_animal/S = L
@@ -190,6 +191,7 @@
/datum/proximity_monitor/advanced/timestop/proc/unfreeze_mob(mob/living/L)
L.AdjustStun(-20, 1, 1)
REMOVE_TRAIT(L, TRAIT_MUTE, TIMESTOP_TRAIT)
frozen_mobs -= L
if(isanimal(L))
var/mob/living/simple_animal/S = L