Signals and God (#18031)

* Begin godmode

* Adds signals to a LOT of things

Also makes godmode signal based.

* Delete life_signals.dm

* better like this tbh

* this toooo

* logic is hard sometime

* Info and moving that detach

* Unreg these

* Organs

* yeh

* BESPOKE

* emp

* robutt

* YEEE HAAA

* Instant Damage

* these should be updated as well

* Update human_damage.dm

* eh lets move this as well
This commit is contained in:
Cameron Lennox
2025-07-25 12:07:16 +02:00
committed by GitHub
parent 34fa9b9e5e
commit 18db172f87
35 changed files with 376 additions and 106 deletions
+10 -6
View File
@@ -158,20 +158,24 @@ ADMIN_VERB(drop_everything, R_ADMIN, "Drop Everything", ADMIN_VERB_NO_DESCRIPTIO
/client/proc/cmd_admin_godmode(mob/M as mob in GLOB.mob_list)
set category = "Admin.Game"
set name = "Godmode"
set name = "Toggle Godmode"
if(!check_rights_for(src, R_HOLDER))
return
M.status_flags ^= GODMODE
if(M.status_flags & GODMODE)
M.RemoveElement(/datum/element/godmode)
else if(!(M.status_flags & GODMODE))
M.AddElement(/datum/element/godmode)
to_chat(usr, span_blue("Toggled [(M.status_flags & GODMODE) ? "ON" : "OFF"]"))
log_admin("[key_name(usr)] has toggled [key_name(M)]'s nodamage to [(M.status_flags & GODMODE) ? "On" : "Off"]")
var/msg = "[key_name_admin(usr)] has toggled [ADMIN_LOOKUPFLW(M)]'s nodamage to [(M.status_flags & GODMODE) ? "On" : "Off"]"
log_admin("[key_name(usr)] has toggled [key_name(M)]'s godmode to [(M.status_flags & GODMODE) ? "On" : "Off"]")
var/msg = "[key_name_admin(usr)] has toggled [ADMIN_LOOKUPFLW(M)]'s godmode to [(M.status_flags & GODMODE) ? "On" : "Off"]"
message_admins(msg)
admin_ticket_log(M, msg)
feedback_add_details("admin_verb","GOD") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
feedback_add_details("admin_verb","GOD_ENABLE") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/proc/cmd_admin_mute(mob/M as mob, mute_type, automute = 0)
if(automute)