mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-11 07:58:57 +01:00
201592f6bd
Refactoring the entire destroy proc path from Mob Human all the way down to Atom while trying to find the causes for the damn mob human hard deletes. This PR comprehensively reorganizes every single stray snowflake var used by /atom/ all the way to /mob/living/carbon/human, and makes sure that every var that COULD store a reference, is now cleared during the entirety of the Mob Destroy() parent hierarchy. This may very well be the end of the lag war. In total, I've hunted down and cleared 39 hanging references between /atom and /mob/living/carbon/human --------- Signed-off-by: VMSolidus <evilexecutive@gmail.com>
38 lines
807 B
Plaintext
38 lines
807 B
Plaintext
/mob/verb/toggle_gun_mode()
|
|
set name = "Toggle Gun Mode"
|
|
set desc = "Begin or stop aiming."
|
|
set category = "IC"
|
|
|
|
if(isliving(src))
|
|
var/mob/living/M = src
|
|
if(!M.aiming)
|
|
M.aiming = new(src)
|
|
M.aiming.toggle_active()
|
|
else
|
|
FEEDBACK_FAILURE(src, "This verb may only be used by living mobs, sorry.")
|
|
return
|
|
|
|
/mob/living/proc/stop_aiming(obj/item/thing, no_message = FALSE)
|
|
if(!aiming)
|
|
aiming = new(src)
|
|
if(thing && aiming.aiming_with != thing)
|
|
return
|
|
aiming.cancel_aiming(no_message)
|
|
|
|
/mob/living/death(gibbed,deathmessage="seizes up and falls limp...")
|
|
. = ..()
|
|
|
|
SEND_SIGNAL(src, COMSIG_LIVING_DEATH, gibbed)
|
|
|
|
if(.)
|
|
stop_aiming(no_message=1)
|
|
|
|
/mob/living/update_canmove()
|
|
..()
|
|
if(lying)
|
|
stop_aiming(no_message=TRUE)
|
|
|
|
/mob/living/Weaken(amount)
|
|
stop_aiming(no_message=TRUE)
|
|
..()
|