mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-01-19 05:23:32 +00:00
Give command ported, with more sanity checks (It works, now!) Added BS12 c4 in addition to TG c4 Fixed server air alarm Book length increased 3 fold. Blood and gibs now maintains DNA Fixed evidence bags Ported the awesome BS12 handcuff stuff, with flavor text.
196 lines
5.9 KiB
Plaintext
196 lines
5.9 KiB
Plaintext
/mob/var/suiciding = 0
|
|
|
|
/mob/living/carbon/human/verb/suicide()
|
|
set hidden = 1
|
|
|
|
if (stat == 2)
|
|
src << "You're already dead!"
|
|
return
|
|
|
|
if (!ticker)
|
|
src << "You can't commit suicide before the game starts!"
|
|
return
|
|
|
|
var/permitted = 0
|
|
var/list/allowed = list("Syndicate","traitor","Wizard","Head Revolutionary","Cultist","Changeling")
|
|
for(var/T in allowed)
|
|
if(mind.special_role == T)
|
|
permitted = 1
|
|
break
|
|
|
|
if(!permitted)
|
|
message_admins("[ckey] has tried to suicide, but they were not permitted due to not being antagonist as human.", 1)
|
|
src << "No. Adminhelp if there is a legitimate reason."
|
|
return
|
|
|
|
if (suiciding)
|
|
src << "You're already committing suicide! Be patient!"
|
|
return
|
|
|
|
var/confirm = alert("Are you sure you want to commit suicide?", "Confirm Suicide", "Yes", "No")
|
|
|
|
if(alien_egg_flag)
|
|
src << "The alien inside you forces you to breathe, preventing you from suiciding."
|
|
return
|
|
|
|
if(confirm == "Yes")
|
|
message_admins("[ckey] has suicided.", 1)
|
|
suiciding = 1
|
|
//instead of killing them instantly, just put them at -175 health and let 'em gasp for a while
|
|
viewers(src) << "\red <b>[src] is attempting to bite \his tongue. It looks like \he's trying to commit suicide.</b>"
|
|
oxyloss = max(175 - getToxLoss() - getFireLoss() - getBruteLoss(), getOxyLoss())
|
|
updatehealth()
|
|
|
|
/mob/living/carbon/brain/verb/suicide()
|
|
set hidden = 1
|
|
|
|
if (stat == 2)
|
|
src << "You're already dead!"
|
|
return
|
|
|
|
if (!ticker)
|
|
src << "You can't commit suicide before the game starts!"
|
|
return
|
|
|
|
if (suiciding)
|
|
src << "You're already committing suicide! Be patient!"
|
|
return
|
|
|
|
var/confirm = alert("Are you sure you want to commit suicide?", "Confirm Suicide", "Yes", "No")
|
|
|
|
if(confirm == "Yes")
|
|
message_admins("[ckey] has suicided.", 1)
|
|
suiciding = 1
|
|
viewers(loc) << "\red <b>[src]'s brain is growing dull and lifeless. It looks like it's trying to commit suicide. Somehow.</b>"
|
|
oxyloss = max(175 - getToxLoss() - getFireLoss() - getBruteLoss(), getOxyLoss())
|
|
updatehealth()
|
|
spawn(200)
|
|
suiciding = 0
|
|
|
|
/mob/living/carbon/monkey/verb/suicide()
|
|
set hidden = 1
|
|
|
|
if (stat == 2)
|
|
src << "You're already dead!"
|
|
return
|
|
|
|
if (!ticker)
|
|
src << "You can't commit suicide before the game starts!"
|
|
return
|
|
|
|
if (suiciding)
|
|
src << "You're already committing suicide! Be patient!"
|
|
return
|
|
|
|
var/confirm = alert("Are you sure you want to commit suicide?", "Confirm Suicide", "Yes", "No")
|
|
|
|
if(confirm == "Yes")
|
|
message_admins("[ckey] has suicided.", 1)
|
|
suiciding = 1
|
|
//instead of killing them instantly, just put them at -175 health and let 'em gasp for a while
|
|
viewers(src) << "\red <b>[src] is attempting to bite \his tongue. It looks like \he's trying to commit suicide.</b>"
|
|
oxyloss = max(175 - getToxLoss() - getFireLoss() - getBruteLoss(), getOxyLoss())
|
|
updatehealth()
|
|
|
|
/mob/living/silicon/ai/verb/suicide()
|
|
set hidden = 1
|
|
|
|
if (stat == 2)
|
|
src << "You're already dead!"
|
|
return
|
|
|
|
if (suiciding)
|
|
src << "You're already committing suicide! Be patient!"
|
|
return
|
|
|
|
var/confirm = alert("Are you sure you want to commit suicide?", "Confirm Suicide", "Yes", "No")
|
|
|
|
if(confirm == "Yes")
|
|
message_admins("[ckey] has suicided.", 1)
|
|
suiciding = 1
|
|
viewers(src) << "\red <b>[src] is powering down. It looks like \he's trying to commit suicide.</b>"
|
|
//put em at -175
|
|
oxyloss = max(175 - getToxLoss() - getFireLoss() - getBruteLoss(), getOxyLoss())
|
|
updatehealth()
|
|
|
|
/mob/living/silicon/robot/verb/suicide()
|
|
set hidden = 1
|
|
|
|
if (stat == 2)
|
|
src << "You're already dead!"
|
|
return
|
|
|
|
if (suiciding)
|
|
src << "You're already committing suicide! Be patient!"
|
|
return
|
|
|
|
var/confirm = alert("Are you sure you want to commit suicide?", "Confirm Suicide", "Yes", "No")
|
|
|
|
if(confirm == "Yes")
|
|
message_admins("[ckey] has suicided.", 1)
|
|
suiciding = 1
|
|
viewers(src) << "\red <b>[src] is powering down. It looks like \he's trying to commit suicide.</b>"
|
|
//put em at -175
|
|
oxyloss = max(475 - getToxLoss() - getFireLoss() - getBruteLoss(), getOxyLoss())
|
|
updatehealth()
|
|
|
|
/mob/living/silicon/pai/verb/suicide()
|
|
set category = "pAI Commands"
|
|
set desc = "Kill yourself and become a ghost (You will receive a confirmation prompt)"
|
|
set name = "pAI Suicide"
|
|
var/answer = input("REALLY kill yourself? This action can't be undone.", "Suicide", "No") in list ("Yes", "No")
|
|
if(answer == "Yes")
|
|
message_admins("[ckey] has suicided.", 1)
|
|
var/obj/item/device/paicard/card = loc
|
|
card.pai = null
|
|
var/turf/T = get_turf_or_move(card.loc)
|
|
for (var/mob/M in viewers(T))
|
|
M.show_message("\blue [src] flashes a message across its screen, \"Wiping core files. Please acquire a new personality to continue using pAI device functions.\"", 3, "\blue [src] bleeps electronically.", 2)
|
|
death(0)
|
|
else
|
|
src << "Aborting suicide attempt."
|
|
|
|
/mob/living/carbon/alien/humanoid/verb/suicide()
|
|
set hidden = 1
|
|
|
|
if (stat == 2)
|
|
src << "You're already dead!"
|
|
return
|
|
|
|
if (suiciding)
|
|
src << "You're already committing suicide! Be patient!"
|
|
return
|
|
|
|
var/confirm = alert("Are you sure you want to commit suicide?", "Confirm Suicide", "Yes", "No")
|
|
|
|
if(confirm == "Yes")
|
|
message_admins("[ckey] has suicided.", 1)
|
|
suiciding = 1
|
|
viewers(src) << "\red <b>[src] is thrashing wildly! It looks like \he's trying to commit suicide.</b>"
|
|
//put em at -175
|
|
oxyloss = max(100 - getFireLoss() - getBruteLoss(), getOxyLoss())
|
|
updatehealth()
|
|
|
|
|
|
/mob/living/carbon/metroid/verb/suicide()
|
|
set hidden = 1
|
|
if (stat == 2)
|
|
src << "You're already dead!"
|
|
return
|
|
|
|
if (suiciding)
|
|
src << "You're already committing suicide! Be patient!"
|
|
return
|
|
|
|
var/confirm = alert("Are you sure you want to commit suicide?", "Confirm Suicide", "Yes", "No")
|
|
|
|
if(confirm == "Yes")
|
|
message_admins("[ckey] has suicided.", 1)
|
|
suiciding = 1
|
|
setOxyLoss(100)
|
|
adjustBruteLoss(100 - getBruteLoss())
|
|
setToxLoss(100)
|
|
setCloneLoss(100)
|
|
|
|
updatehealth()
|