SANITYPOCALYPSE

This commit is contained in:
9600bauds
2016-02-04 21:45:20 -03:00
parent 5b89b1e21c
commit f78a22d0c5
22 changed files with 39 additions and 45 deletions

View File

@@ -315,9 +315,9 @@
set name = "Enter Pod" set name = "Enter Pod"
set src in oview(1) set src in oview(1)
if(usr.restrained() || usr.isUnconscious() || usr.weakened || usr.stunned || usr.paralysis || usr.resting) //are you cuffed, dying, lying, stunned or other if(usr.incapacitated() || usr.lying) //are you cuffed, dying, lying, stunned or other
return return
if (usr.stat || !ishuman(usr)) if (!ishuman(usr))
return return
if (src.occupant) if (src.occupant)
to_chat(usr, "<span class='notice'><B>The [src.name] is already occupied!</B></span>") to_chat(usr, "<span class='notice'><B>The [src.name] is already occupied!</B></span>")

View File

@@ -121,7 +121,7 @@
set category = "Object" set category = "Object"
set name = "Enter DNA Scanner" set name = "Enter DNA Scanner"
if(usr.restrained() || usr.isUnconscious() || usr.weakened || usr.stunned || usr.paralysis || usr.resting) //are you cuffed, dying, lying, stunned or other if(usr.incapacitated() || usr.lying) //are you cuffed, dying, lying, stunned or other
return return
if (!ishuman(usr) && !ismonkey(usr)) //Make sure they're a mob that has dna if (!ishuman(usr) && !ismonkey(usr)) //Make sure they're a mob that has dna
to_chat(usr, "<span class='notice'> Try as you might, you can not climb up into the scanner.</span>") to_chat(usr, "<span class='notice'> Try as you might, you can not climb up into the scanner.</span>")
@@ -149,7 +149,7 @@
return return
if(O.loc == user || !isturf(O.loc) || !isturf(user.loc)) //no you can't pull things out of your ass if(O.loc == user || !isturf(O.loc) || !isturf(user.loc)) //no you can't pull things out of your ass
return return
if(user.restrained() || usr.isUnconscious() || user.weakened || user.stunned || user.paralysis || user.resting) //are you cuffed, dying, lying, stunned or other if(user.incapacitated() || user.lying) //are you cuffed, dying, lying, stunned or other
return return
if(O.anchored || !Adjacent(user) || !user.Adjacent(src) || user.contents.Find(src)) // is the mob anchored, too far away from you, or are you too far away from the source if(O.anchored || !Adjacent(user) || !user.Adjacent(src) || user.contents.Find(src)) // is the mob anchored, too far away from you, or are you too far away from the source
return return
@@ -192,7 +192,7 @@
user.pulling = null user.pulling = null
/obj/machinery/dna_scannernew/MouseDrop(over_object, src_location, var/turf/over_location, src_control, over_control, params) /obj/machinery/dna_scannernew/MouseDrop(over_object, src_location, var/turf/over_location, src_control, over_control, params)
if(!ishuman(usr) && !isrobot(usr)) if(!ishuman(usr) && !isrobot(usr) || usr.incapacitated() || usr.lying)
return return
if(!occupant) if(!occupant)
to_chat(usr, "<span class='warning'>The sleeper is unoccupied!</span>") to_chat(usr, "<span class='warning'>The sleeper is unoccupied!</span>")

View File

@@ -90,7 +90,7 @@
return return
if(O.loc == user || !isturf(O.loc) || !isturf(user.loc)) //no you can't pull things out of your ass if(O.loc == user || !isturf(O.loc) || !isturf(user.loc)) //no you can't pull things out of your ass
return return
if(user.restrained() || user.stat || user.weakened || user.stunned || user.paralysis || user.resting) //are you cuffed, dying, lying, stunned or other if(user.incapacitated() || user.lying) //are you cuffed, dying, lying, stunned or other
return return
if(O.anchored || !Adjacent(user) || !user.Adjacent(src)) // is the mob anchored, too far away from you, or are you too far away from the source if(O.anchored || !Adjacent(user) || !user.Adjacent(src)) // is the mob anchored, too far away from you, or are you too far away from the source
return return

View File

@@ -246,7 +246,7 @@
return return
if(O.loc == user || !isturf(O.loc) || !isturf(user.loc)) //no you can't pull things out of your ass if(O.loc == user || !isturf(O.loc) || !isturf(user.loc)) //no you can't pull things out of your ass
return return
if(user.restrained() || user.stat || user.weakened || user.stunned || user.paralysis || user.resting) //are you cuffed, dying, lying, stunned or other if(user.incapacitated() || user.lying) //are you cuffed, dying, lying, stunned or other
return return
if(O.anchored || !Adjacent(user) || !user.Adjacent(src) || user.contents.Find(src)) // is the mob anchored, too far away from you, or are you too far away from the source if(O.anchored || !Adjacent(user) || !user.Adjacent(src) || user.contents.Find(src)) // is the mob anchored, too far away from you, or are you too far away from the source
return return
@@ -300,7 +300,7 @@
/obj/machinery/sleeper/MouseDrop(over_object, src_location, var/turf/over_location, src_control, over_control, params) /obj/machinery/sleeper/MouseDrop(over_object, src_location, var/turf/over_location, src_control, over_control, params)
if(!ishuman(usr) && !isrobot(usr)) if(!ishuman(usr) && !isrobot(usr) || usr.incapacitated() || usr.lying)
return return
if(!occupant) if(!occupant)
to_chat(usr, "<span class='warning'>The sleeper is unoccupied!</span>") to_chat(usr, "<span class='warning'>The sleeper is unoccupied!</span>")
@@ -314,9 +314,6 @@
return return
if(!Adjacent(over_location)) if(!Adjacent(over_location))
return return
var/mob/user = usr
if(user.restrained() || user.isUnconscious() || user.stunned || user.paralysis || user.resting) // If you're too disabled to put someone into it, you're too disabled to pull someone out of it.
return
if(!(occupant == usr) && (!Adjacent(usr) || !usr.Adjacent(over_location))) if(!(occupant == usr) && (!Adjacent(usr) || !usr.Adjacent(over_location)))
return return
for(var/atom/movable/A in over_location.contents) for(var/atom/movable/A in over_location.contents)
@@ -542,7 +539,7 @@
if(src.occupant) if(src.occupant)
to_chat(usr, "<span class='notice'><B>\The [src] is already occupied!</B></span>") to_chat(usr, "<span class='notice'><B>\The [src] is already occupied!</B></span>")
return return
if(usr.restrained() || usr.isUnconscious() || usr.weakened || usr.stunned || usr.paralysis || usr.resting) //are you cuffed, dying, lying, stunned or other if(usr.incapacitated() || usr.lying) //are you cuffed, dying, lying, stunned or other
return return
for(var/mob/living/carbon/slime/M in range(1,usr)) for(var/mob/living/carbon/slime/M in range(1,usr))
if(M.Victim == usr) if(M.Victim == usr)

View File

@@ -94,7 +94,7 @@
return return
if(O.loc == user || !isturf(O.loc) || !isturf(user.loc)) //no you can't pull things out of your ass if(O.loc == user || !isturf(O.loc) || !isturf(user.loc)) //no you can't pull things out of your ass
return return
if(user.restrained() || user.stat || user.weakened || user.stunned || user.paralysis || user.resting) //are you cuffed, dying, lying, stunned or other if(user.incapacitated() || user.lying) //are you cuffed, dying, lying, stunned or other
return return
if(O.anchored || !Adjacent(user) || !user.Adjacent(src) || user.contents.Find(src)) // is the mob anchored, too far away from you, or are you too far away from the source if(O.anchored || !Adjacent(user) || !user.Adjacent(src) || user.contents.Find(src)) // is the mob anchored, too far away from you, or are you too far away from the source
return return
@@ -140,7 +140,7 @@
return return
/obj/machinery/bodyscanner/MouseDrop(over_object, src_location, var/turf/over_location, src_control, over_control, params) /obj/machinery/bodyscanner/MouseDrop(over_object, src_location, var/turf/over_location, src_control, over_control, params)
if(!ishuman(usr) && !isrobot(usr)) if(!ishuman(usr) && !isrobot(usr) || usr.incapacitated() || usr.lying)
return return
if(!occupant) if(!occupant)
to_chat(usr, "<span class='warning'>The scanner is unoccupied!</span>") to_chat(usr, "<span class='warning'>The scanner is unoccupied!</span>")

View File

@@ -69,7 +69,7 @@ var/global/list/cryo_health_indicator = list( "full" = image("icon" = 'icons/obj
return return
if(O.loc == user) //no you can't pull things out of your ass if(O.loc == user) //no you can't pull things out of your ass
return return
if(user.restrained() || user.stat || user.weakened || user.stunned || user.paralysis || user.resting) //are you cuffed, dying, lying, stunned or other if(user.incapacitated() || user.lying) //are you cuffed, dying, lying, stunned or other
return return
if(O.anchored || get_dist(user, src) > 1 || get_dist(user, O) > 1 || user.contents.Find(src)) // is the mob anchored, too far away from you, or are you too far away from the source if(O.anchored || get_dist(user, src) > 1 || get_dist(user, O) > 1 || user.contents.Find(src)) // is the mob anchored, too far away from you, or are you too far away from the source
return return
@@ -108,7 +108,7 @@ var/global/list/cryo_health_indicator = list( "full" = image("icon" = 'icons/obj
user.pulling = null user.pulling = null
/obj/machinery/atmospherics/unary/cryo_cell/MouseDrop(over_object, src_location, var/turf/over_location, src_control, over_control, params) /obj/machinery/atmospherics/unary/cryo_cell/MouseDrop(over_object, src_location, var/turf/over_location, src_control, over_control, params)
if(!ishuman(usr) && !isrobot(usr) || occupant == usr) if(!ishuman(usr) && !isrobot(usr) || occupant == usr || usr.incapacitated() || usr.lying)
return return
if(!occupant) if(!occupant)
to_chat(usr, "<span class='warning'>The sleeper is unoccupied!</span>") to_chat(usr, "<span class='warning'>The sleeper is unoccupied!</span>")
@@ -494,7 +494,7 @@ var/global/list/cryo_health_indicator = list( "full" = image("icon" = 'icons/obj
set name = "Move Inside" set name = "Move Inside"
set category = "Object" set category = "Object"
set src in oview(1) set src in oview(1)
if(usr.restrained() || usr.isUnconscious() || usr.weakened || usr.stunned || usr.paralysis || usr.resting || usr.locked_to) //are you cuffed, dying, lying, stunned or other if(usr.incapacitated() || usr.lying || usr.locked_to) //are you cuffed, dying, lying, stunned or other
return return
for(var/mob/living/carbon/slime/M in range(1,usr)) for(var/mob/living/carbon/slime/M in range(1,usr))
if(M.Victim == usr) if(M.Victim == usr)

View File

@@ -38,7 +38,7 @@
/obj/machinery/iv_drip/MouseDrop(over_object, src_location, over_location) /obj/machinery/iv_drip/MouseDrop(over_object, src_location, over_location)
..() ..()
if(isobserver(usr)) return if(isobserver(usr)) return
if(usr.stat) // Stop interacting with shit while dead pls if(usr.incapacitated()) // Stop interacting with shit while dead pls
return return
if(isanimal(usr)) if(isanimal(usr))
return return

View File

@@ -1033,9 +1033,9 @@
set name = "Enter Exosuit" set name = "Enter Exosuit"
set src in oview(1) set src in oview(1)
if(usr.restrained() || usr.isUnconscious() || usr.weakened || usr.stunned || usr.paralysis || usr.resting) //are you cuffed, dying, lying, stunned or other if(usr.incapacitated() || usr.lying) //are you cuffed, dying, lying, stunned or other
return return
if (usr.stat || !ishuman(usr)) if (!ishuman(usr))
return return
src.log_message("[usr] tries to move in.") src.log_message("[usr] tries to move in.")
if (src.occupant) if (src.occupant)
@@ -1200,7 +1200,7 @@
return return
/obj/mecha/MouseDrop(over_object, src_location, var/turf/over_location, src_control, over_control, params) /obj/mecha/MouseDrop(over_object, src_location, var/turf/over_location, src_control, over_control, params)
if(usr!=src.occupant) if(usr != src.occupant || usr.incapacitated())
return return
if(!istype(over_location) || over_location.density) if(!istype(over_location) || over_location.density)
return return

View File

@@ -77,7 +77,7 @@
/obj/structure/closet/body_bag/MouseDrop(over_object, src_location, over_location) /obj/structure/closet/body_bag/MouseDrop(over_object, src_location, over_location)
..() ..()
if((over_object == usr && (in_range(src, usr) || usr.contents.Find(src)))) if((over_object == usr && (in_range(src, usr) || usr.contents.Find(src))))
if(!ishuman(usr)) return if(!ishuman(usr) || usr.incapacitated() || usr.lying) return
if(opened) return 0 if(opened) return 0
if(contents.len) return 0 if(contents.len) return 0
visible_message("[usr] folds up the [src.name]") visible_message("[usr] folds up the [src.name]")
@@ -128,6 +128,6 @@
/obj/structure/closet/body_bag/cryobag/MouseDrop(over_object, src_location, over_location) /obj/structure/closet/body_bag/cryobag/MouseDrop(over_object, src_location, over_location)
if((over_object == usr && (in_range(src, usr) || usr.contents.Find(src)))) if((over_object == usr && (in_range(src, usr) || usr.contents.Find(src))))
if(!ishuman(usr)) return if(!ishuman(usr) || usr.incapacitated() || usr.lying) return
to_chat(usr, "<span class='warning'>You can't fold that up anymore..</span>") to_chat(usr, "<span class='warning'>You can't fold that up anymore.</span>")
..() ..()

View File

@@ -91,7 +91,7 @@
return 0 return 0
/obj/item/device/deskbell/MouseDrop(mob/user as mob) /obj/item/device/deskbell/MouseDrop(mob/user as mob)
if((user == usr && (!( usr.restrained() ) && (!( usr.stat ) && (usr.contents.Find(src) || in_range(src, usr)))))) if(user == usr && !usr.incapacitated() && (usr.contents.Find(src) || in_range(src, usr)))
if(istype(user, /mob/living/carbon/human) || istype(user, /mob/living/carbon/monkey)) if(istype(user, /mob/living/carbon/human) || istype(user, /mob/living/carbon/monkey))
if(anchored) if(anchored)
to_chat(user, "You must undo the securing bolts before you can pick it up.") to_chat(user, "You must undo the securing bolts before you can pick it up.")

View File

@@ -11,7 +11,7 @@ THAT STUPID GAME KIT
return src.attack_hand(user) return src.attack_hand(user)
/obj/item/weapon/game_kit/MouseDrop(mob/user as mob) /obj/item/weapon/game_kit/MouseDrop(mob/user as mob)
if (user == usr && !usr.restrained() && !usr.stat && (usr.contents.Find(src) || in_range(src, usr))) if (user == usr && !usr.incapacitated() && (usr.contents.Find(src) || in_range(src, usr)))
if (usr.hand) if (usr.hand)
if (!usr.l_hand) if (!usr.l_hand)
spawn (0) spawn (0)

View File

@@ -134,12 +134,11 @@
/obj/item/weapon/storage/pill_bottle/MouseDrop(obj/over_object as obj) //Quick pillbottle fix. -Agouri /obj/item/weapon/storage/pill_bottle/MouseDrop(obj/over_object as obj) //Quick pillbottle fix. -Agouri
if (ishuman(usr) || ismonkey(usr)) //Can monkeys even place items in the pocket slots? Leaving this in just in case~ if (ishuman(usr) || ismonkey(usr)) //Can monkeys even place items in the pocket slots? Leaving this in just in case~
var/mob/M = usr var/mob/M = usr //I don't see how this is necessary
if (!( istype(over_object, /obj/screen) )) if (!( istype(over_object, /obj/screen) ))
return ..() return ..()
if ((!( M.restrained() ) && !( M.stat ) /*&& M.pocket == src*/)) if (!M.incapacitated())
switch(over_object.name) switch(over_object.name)
if("r_hand") if("r_hand")
M.u_equip(src,0) M.u_equip(src,0)

View File

@@ -74,7 +74,8 @@
/obj/item/weapon/storage/secure/MouseDrop(over_object, src_location, over_location) /obj/item/weapon/storage/secure/MouseDrop(over_object, src_location, over_location)
if (locked) if (locked)
src.add_fingerprint(usr) if(Adjacent(usr))
src.add_fingerprint(usr)
return return
..() ..()

View File

@@ -34,7 +34,7 @@
var/mob/M = usr var/mob/M = usr
if(istype(over_object, /obj/structure/table) && M.Adjacent(over_object)) if(istype(over_object, /obj/structure/table) && M.Adjacent(over_object))
var/mob/living/L = usr var/mob/living/L = usr
if(istype(L) && !(L.restrained() || L.stat || L.weakened || L.stunned || L.paralysis || L.resting)) if(istype(L) && !(L.incapacitated() || L.lying))
empty_contents_to(over_object) empty_contents_to(over_object)
if(!( istype(over_object, /obj/screen) )) if(!( istype(over_object, /obj/screen) ))
return ..() return ..()

View File

@@ -163,7 +163,7 @@
if (!( istype(over_object, /obj/screen) )) if (!( istype(over_object, /obj/screen) ))
return ..() return ..()
playsound(get_turf(src), "rustle", 50, 1, -5) playsound(get_turf(src), "rustle", 50, 1, -5)
if ((!( M.restrained() ) && !( M.stat ) && M.wear_suit == src)) if (M.wear_suit == src && !M.incapacitated())
if (over_object.name == "r_hand") if (over_object.name == "r_hand")
M.u_equip(src,0) M.u_equip(src,0)
M.put_in_r_hand(src) M.put_in_r_hand(src)

View File

@@ -143,7 +143,7 @@
/obj/structure/bed/roller/MouseDrop(over_object, src_location, over_location) /obj/structure/bed/roller/MouseDrop(over_object, src_location, over_location)
..() ..()
if(over_object == usr && Adjacent(usr)) if(over_object == usr && Adjacent(usr))
if(!ishuman(usr)) if(!ishuman(usr) || usr.incapacitated() || usr.lying)
return return
if(locked_atoms.len) if(locked_atoms.len)

View File

@@ -181,7 +181,7 @@
/obj/item/toy/cards/MouseDrop(atom/over_object) /obj/item/toy/cards/MouseDrop(atom/over_object)
var/mob/M = usr var/mob/M = usr
if(usr.stat || !ishuman(usr) || !usr.canmove || usr.restrained()) if(!ishuman(usr) || usr.incapacitated())
return return
if(Adjacent(usr)) if(Adjacent(usr))
if(over_object == M) if(over_object == M)

View File

@@ -94,7 +94,7 @@
if(contents.len) if(contents.len)
var/obj/item/weapon/book/choice = input("Which book would you like to remove from \the [src]?") as null|obj in contents var/obj/item/weapon/book/choice = input("Which book would you like to remove from \the [src]?") as null|obj in contents
if(choice) if(choice)
if(user.restrained() || user.stat || user.weakened || user.stunned || user.paralysis || user.resting || get_dist(user, src) > 1) if(user.incapacitated() || user.lying || get_dist(user, src) > 1)
return return
if(!user.get_active_hand()) if(!user.get_active_hand())
user.put_in_hands(choice) user.put_in_hands(choice)

View File

@@ -373,11 +373,8 @@ var/global/list/animal_count = list() //Stores types, and amount of animals of t
return return
/mob/living/simple_animal/MouseDrop(mob/living/carbon/human/M) /mob/living/simple_animal/MouseDrop(mob/living/carbon/human/M)
if(M != usr) return if(M != usr || !istype(M) || !Adjacent(M) || M.incapacitated())
if(!istype(M)) return return
if(M.isUnconscious())return
if(M.restrained()) return
if(!Adjacent(M)) return
var/strength_of_M = (M.size - 1) //Can only pick up mobs whose size is less or equal to this value. Normal human's size is 3, so his strength is 2 - he can pick up TINY and SMALL animals. Varediting human's size to 5 will allow him to pick up goliaths. var/strength_of_M = (M.size - 1) //Can only pick up mobs whose size is less or equal to this value. Normal human's size is 3, so his strength is 2 - he can pick up TINY and SMALL animals. Varediting human's size to 5 will allow him to pick up goliaths.

View File

@@ -22,7 +22,7 @@
if(!(istype(over_object, /obj/screen) )) if(!(istype(over_object, /obj/screen) ))
return ..() return ..()
if(!M.restrained() && !M.stat) if(!M.incapacitated())
switch(over_object.name) switch(over_object.name)
if("r_hand") if("r_hand")
M.u_equip(src,0) M.u_equip(src,0)

View File

@@ -15,7 +15,7 @@
/obj/item/weapon/paper_bin/nano/MouseDrop(mob/user as mob) /obj/item/weapon/paper_bin/nano/MouseDrop(mob/user as mob)
if((user == usr && (!( usr.restrained() ) && (!( usr.stat ) && (usr.contents.Find(src) || in_range(src, usr)))))) if(user == usr && !usr.incapacitated() && (usr.contents.Find(src) || in_range(src, usr)))
if(!istype(usr, /mob/living/carbon/slime) && !istype(usr, /mob/living/simple_animal)) if(!istype(usr, /mob/living/carbon/slime) && !istype(usr, /mob/living/simple_animal))
if( !usr.get_active_hand() ) //if active hand is empty if( !usr.get_active_hand() ) //if active hand is empty
src.loc = user src.loc = user

View File

@@ -24,7 +24,7 @@
return amount return amount
/obj/item/weapon/paper_bin/MouseDrop(over_object) /obj/item/weapon/paper_bin/MouseDrop(over_object)
if(!usr.restrained() && !usr.stat && (usr.contents.Find(src) || Adjacent(usr))) if(!usr.incapacitated() && (usr.contents.Find(src) || Adjacent(usr)))
if(!istype(usr, /mob/living/carbon/slime) && !istype(usr, /mob/living/simple_animal)) if(!istype(usr, /mob/living/carbon/slime) && !istype(usr, /mob/living/simple_animal))
if(istype(over_object,/obj/screen)) //We're being dragged into the user's UI... if(istype(over_object,/obj/screen)) //We're being dragged into the user's UI...
var/obj/screen/O = over_object var/obj/screen/O = over_object