- Suicide is now visible on examine. Since I am terribad at coding, I made it so it checks for the suiciding var, which is usually reset once you finish dying to allow for suiciding again if you're cloned, but now it will instead reset when you are cloned.

- Fixed a bug I made re: examining oxygen tanks.
- Made chemsprayers large instead of small.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2155 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
LastBattaWolf@hotmail.com
2011-09-08 06:17:25 +00:00
parent 463349166d
commit 2cf38f00d2
6 changed files with 16 additions and 8 deletions

View File

@@ -287,7 +287,7 @@
activate(var/mob/living/carbon/mob,var/multiplier) activate(var/mob/living/carbon/mob,var/multiplier)
mob.suiciding = 1 mob.suiciding = 1
//instead of killing them instantly, just put them at -175 health and let 'em gasp for a while //instead of killing them instantly, just put them at -175 health and let 'em gasp for a while
viewers(mob) << "\red <b>[mob.name] is holding \his breath. It looks like \he's trying to commit suicide.</b>" viewers(mob) << "\red <b>[mob.name] is attempting to bite off \his tongue. It looks like \he's trying to commit suicide.</b>"
mob.oxyloss = max(175 - mob.toxloss - mob.fireloss - mob.bruteloss, mob.oxyloss) mob.oxyloss = max(175 - mob.toxloss - mob.fireloss - mob.bruteloss, mob.oxyloss)
mob.updatehealth() mob.updatehealth()
spawn(200) //in case they get revived by cryo chamber or something stupid like that, let them suicide again in 20 seconds spawn(200) //in case they get revived by cryo chamber or something stupid like that, let them suicide again in 20 seconds

View File

@@ -516,7 +516,7 @@
item_state = "chemsprayer" item_state = "chemsprayer"
flags = ONBELT|TABLEPASS|OPENCONTAINER|FPRINT|USEDELAY flags = ONBELT|TABLEPASS|OPENCONTAINER|FPRINT|USEDELAY
throwforce = 3 throwforce = 3
w_class = 2.0 w_class = 3.0
throw_speed = 2 throw_speed = 2
throw_range = 10 throw_range = 10
origin_tech = "combat=3;materials=3;engineering=3" origin_tech = "combat=3;materials=3;engineering=3"

View File

@@ -517,6 +517,7 @@
src.occupant:update_face() src.occupant:update_face()
src.occupant:update_body() src.occupant:update_body()
src.occupant:mutantrace = mrace src.occupant:mutantrace = mrace
src.occupant:suiciding = 0
src.attempting = 0 src.attempting = 0
return 1 return 1

View File

@@ -63,6 +63,7 @@
/obj/item/weapon/tank/oxygen/examine() /obj/item/weapon/tank/oxygen/examine()
set src in usr set src in usr
..()
if(air_contents.oxygen < 10) if(air_contents.oxygen < 10)
usr << text("\red <B>The meter on the tank indicates you are almost out of air!</B>") usr << text("\red <B>The meter on the tank indicates you are almost out of air!</B>")
playsound(usr, 'alert.ogg', 50, 1) playsound(usr, 'alert.ogg', 50, 1)
@@ -74,6 +75,7 @@
/obj/item/weapon/tank/air/examine() /obj/item/weapon/tank/air/examine()
set src in usr set src in usr
..()
if(air_contents.oxygen < 1) if(air_contents.oxygen < 1)
usr << text("\red <B>The meter on the tank indicates you are almost out of air!</B>") usr << text("\red <B>The meter on the tank indicates you are almost out of air!</B>")
playsound(usr, 'alert.ogg', 50, 1) playsound(usr, 'alert.ogg', 50, 1)
@@ -105,6 +107,7 @@
/obj/item/weapon/tank/emergency_oxygen/examine() /obj/item/weapon/tank/emergency_oxygen/examine()
set src in usr set src in usr
..()
if(air_contents.oxygen < 0.4) if(air_contents.oxygen < 0.4)
usr << text("\red <B>The meter on the tank indicates you are almost out of air!</B>") usr << text("\red <B>The meter on the tank indicates you are almost out of air!</B>")
playsound(usr, 'alert.ogg', 50, 1) playsound(usr, 'alert.ogg', 50, 1)

View File

@@ -24,11 +24,9 @@
if(confirm == "Yes") if(confirm == "Yes")
suiciding = 1 suiciding = 1
//instead of killing them instantly, just put them at -175 health and let 'em gasp for a while //instead of killing them instantly, just put them at -175 health and let 'em gasp for a while
viewers(src) << "\red <b>[src] is holding \his breath. It looks like \he's trying to commit suicide.</b>" viewers(src) << "\red <b>[src] is attempting to bite \his tongue. It looks like \he's trying to commit suicide.</b>"
oxyloss = max(175 - toxloss - fireloss - bruteloss, oxyloss) oxyloss = max(175 - toxloss - fireloss - bruteloss, oxyloss)
updatehealth() updatehealth()
spawn(200) //in case they get revived by cryo chamber or something stupid like that, let them suicide again in 20 seconds
suiciding = 0
/mob/living/carbon/brain/verb/suicide() /mob/living/carbon/brain/verb/suicide()
set hidden = 1 set hidden = 1
@@ -75,11 +73,9 @@
if(confirm == "Yes") if(confirm == "Yes")
suiciding = 1 suiciding = 1
//instead of killing them instantly, just put them at -175 health and let 'em gasp for a while //instead of killing them instantly, just put them at -175 health and let 'em gasp for a while
viewers(src) << "\red <b>[src] is holding \his breath. It looks like \he's trying to commit suicide.</b>" viewers(src) << "\red <b>[src] is attempting to bite \his tongue. It looks like \he's trying to commit suicide.</b>"
oxyloss = max(175 - toxloss - fireloss - bruteloss, oxyloss) oxyloss = max(175 - toxloss - fireloss - bruteloss, oxyloss)
updatehealth() updatehealth()
spawn(200) //in case they get revived by cryo chamber or something stupid like that, let them suicide again in 20 seconds
suiciding = 0
/mob/living/silicon/ai/verb/suicide() /mob/living/silicon/ai/verb/suicide()
set hidden = 1 set hidden = 1

View File

@@ -97,6 +97,7 @@
else else
usr << "\blue [src.name] is wearing \icon[src.wear_id] [src.wear_id.name]." usr << "\blue [src.name] is wearing \icon[src.wear_id] [src.wear_id.name]."
if (src.is_jittery) if (src.is_jittery)
switch(src.jitteriness) switch(src.jitteriness)
if(300 to INFINITY) if(300 to INFINITY)
@@ -106,6 +107,11 @@
if(100 to 200) if(100 to 200)
usr << "\red [src] is twitching ever so slightly." usr << "\red [src] is twitching ever so slightly."
if (src.suiciding)
switch(src.suiciding)
if(1)
usr << "\red [src.name] appears to have bitten [t_his] tongue off!"
if (src.stat == 2 || (changeling && changeling.changeling_fakedeath == 1)) if (src.stat == 2 || (changeling && changeling.changeling_fakedeath == 1))
usr << "\red [src] is limp and unresponsive, a dull lifeless look in [t_his] eyes." usr << "\red [src] is limp and unresponsive, a dull lifeless look in [t_his] eyes."
else else
@@ -142,4 +148,6 @@
if (!src.client) if (!src.client)
usr << "\red [src.name] doesn't seem as though they want to talk." usr << "\red [src.name] doesn't seem as though they want to talk."
usr << "\blue *---------*" usr << "\blue *---------*"