mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 02:34:00 +00:00
Revert "Revert "Add quick authentic nif""
This commit is contained in:
@@ -106,6 +106,7 @@ var/list/admin_verbs_admin = list(
|
|||||||
/datum/admins/proc/paralyze_mob,
|
/datum/admins/proc/paralyze_mob,
|
||||||
/client/proc/fixatmos,
|
/client/proc/fixatmos,
|
||||||
/datum/admins/proc/quick_nif, //VOREStation Add,
|
/datum/admins/proc/quick_nif, //VOREStation Add,
|
||||||
|
/datum/admins/proc/quick_authentic_nif, //CHOMPStation add
|
||||||
/datum/admins/proc/sendFax,
|
/datum/admins/proc/sendFax,
|
||||||
/client/proc/despawn_player,
|
/client/proc/despawn_player,
|
||||||
/datum/admins/proc/view_feedback,
|
/datum/admins/proc/view_feedback,
|
||||||
@@ -368,6 +369,7 @@ var/list/admin_verbs_mod = list(
|
|||||||
/datum/admins/proc/view_persistent_data,
|
/datum/admins/proc/view_persistent_data,
|
||||||
/datum/admins/proc/view_txt_log, //shows the server log (diary) for today,
|
/datum/admins/proc/view_txt_log, //shows the server log (diary) for today,
|
||||||
/datum/admins/proc/quick_nif, //CHOMPEdit
|
/datum/admins/proc/quick_nif, //CHOMPEdit
|
||||||
|
/datum/admins/proc/quick_authentic_nif, //CHOMPEdit
|
||||||
/client/proc/admin_teleport, //CHOMPEdit
|
/client/proc/admin_teleport, //CHOMPEdit
|
||||||
/datum/admins/proc/view_atk_log //shows the server combat-log, doesn't do anything presently,
|
/datum/admins/proc/view_atk_log //shows the server combat-log, doesn't do anything presently,
|
||||||
)
|
)
|
||||||
|
|||||||
32
code/modules/admin/verbs/debug_ch.dm
Normal file
32
code/modules/admin/verbs/debug_ch.dm
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
/datum/admins/proc/quick_authentic_nif()
|
||||||
|
set category = "Fun"
|
||||||
|
set name = "Quick Auth NIF"
|
||||||
|
set desc = "Spawns an authentic NIF into someone in quick-implant mode."
|
||||||
|
|
||||||
|
if(!check_rights(R_ADMIN|R_EVENT|R_DEBUG)) //CHOMPStation Edit TFF 24/4/19: Allow Devs to use Quick-NIF verb.
|
||||||
|
return
|
||||||
|
|
||||||
|
var/mob/living/carbon/human/H = input("Pick a mob with a player","Quick Authentic NIF") as null|anything in player_list
|
||||||
|
|
||||||
|
if(!H)
|
||||||
|
return
|
||||||
|
|
||||||
|
if(!istype(H))
|
||||||
|
to_chat(usr,"<span class='warning'>That mob type ([H.type]) doesn't support NIFs, sorry.</span>")
|
||||||
|
return
|
||||||
|
|
||||||
|
if(!H.get_organ(BP_HEAD))
|
||||||
|
to_chat(usr,"<span class='warning'>Target is unsuitable.</span>")
|
||||||
|
return
|
||||||
|
|
||||||
|
if(H.nif)
|
||||||
|
to_chat(usr,"<span class='warning'>Target already has a NIF.</span>")
|
||||||
|
return
|
||||||
|
|
||||||
|
if(H.species.flags & NO_SCAN)
|
||||||
|
new /obj/item/device/nif/authenticbio(H)
|
||||||
|
else
|
||||||
|
new /obj/item/device/nif/authentic(H)
|
||||||
|
|
||||||
|
log_and_message_admins("[key_name(src)] Quick Authentic NIF'd [H.real_name].")
|
||||||
|
feedback_add_details("admin_verb","QANIF") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||||
@@ -1796,6 +1796,7 @@
|
|||||||
#include "code\modules\admin\verbs\custom_event.dm"
|
#include "code\modules\admin\verbs\custom_event.dm"
|
||||||
#include "code\modules\admin\verbs\deadsay.dm"
|
#include "code\modules\admin\verbs\deadsay.dm"
|
||||||
#include "code\modules\admin\verbs\debug.dm"
|
#include "code\modules\admin\verbs\debug.dm"
|
||||||
|
#include "code\modules\admin\verbs\debug_ch.dm"
|
||||||
#include "code\modules\admin\verbs\debug_vr.dm"
|
#include "code\modules\admin\verbs\debug_vr.dm"
|
||||||
#include "code\modules\admin\verbs\diagnostics.dm"
|
#include "code\modules\admin\verbs\diagnostics.dm"
|
||||||
#include "code\modules\admin\verbs\dice.dm"
|
#include "code\modules\admin\verbs\dice.dm"
|
||||||
|
|||||||
Reference in New Issue
Block a user