Skip to content

Commit

Permalink
Adds a nugget smite for admins (ParadiseSS13#22637)
Browse files Browse the repository at this point in the history
* new smites

* part dos

* just nugget

* msg update

* forgot to move this

* Review

* added logmsg

* Update code/modules/mob/living/carbon/human/human_death.dm

Tested and applied!

Co-authored-by: Farie82 <farie82@users.noreply.github.com>

---------

Co-authored-by: Farie82 <farie82@users.noreply.github.com>
  • Loading branch information
2 people authored and BR54FF committed Oct 17, 2023
1 parent 60c4c2a commit f1d6e58
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions code/modules/admin/topic.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2065,6 +2065,7 @@
ptypes += "Crew Traitor"
ptypes += "Floor Cluwne"
ptypes += "Shamebrero"
ptypes += "Nugget"
var/punishment = input(owner, "How would you like to smite [M]?", "Its good to be baaaad...", "") as null|anything in ptypes
if(!(punishment in ptypes))
return
Expand Down Expand Up @@ -2180,6 +2181,13 @@
var/obj/item/clothing/head/sombrero/shamebrero/S = new(H.loc)
H.equip_to_slot_or_del(S, SLOT_HUD_HEAD)
logmsg = "shamebrero"
if("Nugget")
H.Weaken(12 SECONDS, TRUE)
H.AdjustJitter(40 SECONDS)
to_chat(H, "<span class='danger'>You feel as if your limbs are being ripped from your body!</span>")
addtimer(CALLBACK(H, TYPE_PROC_REF(/mob/living/carbon/human, make_nugget)), 6 SECONDS)
logmsg = "nugget"

if(logmsg)
log_admin("[key_name(owner)] smited [key_name(M)] with: [logmsg]")
message_admins("[key_name_admin(owner)] smited [key_name_admin(M)] with: [logmsg]")
Expand Down
7 changes: 7 additions & 0 deletions code/modules/mob/living/carbon/human/human_death.dm
Original file line number Diff line number Diff line change
Expand Up @@ -169,3 +169,10 @@
update_body()
update_mutantrace()
UpdateAppearance() // reset hair from DNA

/mob/living/carbon/human/proc/make_nugget(mob/living)
for(var/obj/item/organ/external/limb as anything in bodyparts)
if(limb.body_part == LEG_RIGHT || limb.body_part == LEG_LEFT || limb.body_part == ARM_RIGHT || limb.body_part == ARM_LEFT)
limb.droplimb()
emote("scream")
playsound(src, 'sound/misc/desceration-03.ogg', 70)

0 comments on commit f1d6e58

Please sign in to comment.