Fix the hos' tranquilizer rifle and some issues with gifts (#3982)

-fixes #3747 by making so that the tranq bullets inject the target with some sleeping toxin
-fixes things like random plushie and animals getting stuck into the person's contents when you open a gift
This commit is contained in:
Alberyk
2017-12-17 07:20:30 -02:00
committed by Erki
parent f8daffdcfa
commit 1d7cd87ebd
3 changed files with 11 additions and 9 deletions

View File

@@ -221,14 +221,14 @@
if(blocked < 100 && !(blocked < 20))
L.emote("yawns")
if(blocked < 20)
addtimer(CALLBACK(src, .proc/apply_sedative, target, 10), 120)
if(L.reagents) L.reagents.add_reagent("stoxin", 10)
if(def_zone == "head" && blocked < 100)
addtimer(CALLBACK(src, .proc/apply_sedative, target, 20), 35)
if(L.reagents) L.reagents.add_reagent("stoxin", 15)
if(def_zone != "torso" && def_zone != "head")
if(blocked < 100 && !(blocked < 20))
L.emote("yawns")
if(blocked < 20)
addtimer(CALLBACK(src, .proc/apply_sedative, target, 15), 45)
if(L.reagents) L.reagents.add_reagent("stoxin", 5)
if(isanimal(target))
target.visible_message("<b>[target]</b> twitches, foaming at the mouth.")
@@ -239,9 +239,6 @@
M.Sleeping(1200)*/ //commented out until simple_mob paralysis actually works.
..()
/obj/item/projectile/bullet/rifle/tranq/proc/apply_sedative(var/mob/living/L, var/severity)
L.apply_effect(severity, PARALYZE, 0)
L.emote("moans")
/* Miscellaneous */
/obj/item/projectile/bullet/suffocationbullet//How does this even work?