You can now copy your ass on photocopiers.

This commit is contained in:
Miauw
2013-10-26 16:25:31 +02:00
parent c169113e6b
commit 87d82a0265
4 changed files with 81 additions and 7 deletions
+81 -7
View File
@@ -23,6 +23,7 @@
var/toner = 40 //how much toner is left! woooooo~
var/maxcopies = 10 //how many copies can be copied at once- idea shamelessly stolen from bs12's copier!
var/greytoggle = "Greyscale"
var/mob/living/ass = null
/obj/machinery/photocopier/attack_ai(mob/user)
@@ -37,7 +38,7 @@
user.set_machine(src)
var/dat = "Photocopier<BR><BR>"
if(copy || photocopy)
if(copy || photocopy || ass)
dat += "<a href='byond://?src=\ref[src];remove=1'>Remove Paper</a><BR>"
if(toner)
dat += "<a href='byond://?src=\ref[src];copy=1'>Copy</a><BR>"
@@ -112,7 +113,34 @@
sleep(15)
else
break
updateUsrDialog()
else if(ass) //ASS COPY. By Miauw
for(var/i = 0, i < copies, i++)
if(toner >= 5 && check_ass()) //You have to be sitting on the copier and either be a xeno or a human without clothes on.
var/obj/item/weapon/photo/p = new /obj/item/weapon/photo (loc)
p.desc = "You see [ass]'s ass on the photo."
p.pixel_x = rand(-10, 10)
p.pixel_y = rand(-10, 10)
if(istype(ass,/mob/living/carbon/alien) || istype(ass,/mob/living/simple_animal/hostile/alien)) //Xenos have their own asses, thanks to Pybro.
p.img = icon("icons/ass/assalien.png")
else if(istype(ass,/mob/living/carbon/human)) //Suit checks are in check_ass
if(ass.gender == MALE)
p.img = icon("icons/ass/assmale.png")
else if(ass.gender == FEMALE)
p.img = icon("icons/ass/assfemale.png")
else //In case anyone ever makes the generic ass. For now I'll be using male asses.
p.img = icon("icons/ass/assmale.png")
else
break
var/icon/small_img = icon(p.img) //Icon() is needed or else p.img will be rescaled too >.>
var/icon/ic = icon('icons/obj/items.dmi',"photo")
small_img.Scale(8, 8)
ic.Blend(small_img,ICON_OVERLAY, 10, 13)
p.icon = ic
toner -= 5
sleep(15)
else
break
updateUsrDialog()
else if(href_list["remove"])
if(copy)
if(!istype(usr,/mob/living/silicon/ai)) //surprised this check didn't exist before, putting stuff in AI's hand is bad
@@ -132,6 +160,8 @@
usr << "<span class='notice'>You take [photocopy] out of [src].</span>"
photocopy = null
updateUsrDialog()
else if(check_ass())
ass << "<span class='notice'>You feel a slight pressure on your ass.</span>"
else if(href_list["min"])
if(copies > 1)
copies--
@@ -173,12 +203,12 @@
if(greytoggle == "Greyscale")
greytoggle = "Color"
else
greytoggle ="Greyscale"
greytoggle = "Greyscale"
updateUsrDialog()
/obj/machinery/photocopier/attackby(obj/item/O, mob/user)
if(istype(O, /obj/item/weapon/paper))
if(!copy && !photocopy)
if(!copy && !photocopy && !ass)
user.drop_item()
copy = O
O.loc = src
@@ -188,7 +218,7 @@
else
user << "<span class='notice'>There is already something in [src].</span>"
else if(istype(O, /obj/item/weapon/photo))
if(!copy && !photocopy)
if(!copy && !photocopy && !ass)
user.drop_item()
photocopy = O
O.loc = src
@@ -198,7 +228,7 @@
else
user << "<span class='notice'>There is already something in [src].</span>"
else if(istype(O, /obj/item/device/toner))
if(toner == 0)
if(toner <= 0)
user.drop_item()
del(O)
toner = 40
@@ -210,7 +240,19 @@
playsound(loc, 'sound/items/Ratchet.ogg', 50, 1)
anchored = !anchored
user << "<span class='notice'>You [anchored ? "wrench" : "unwrench"] [src].</span>"
else if(istype(O, /obj/item/weapon/grab)) //For ass-copying.
var/obj/item/weapon/grab/G = O
if(ismob(G.affecting))
var/mob/GM = G.affecting
visible_message("\red [usr] drags [GM.name] onto the photocopier!")
GM.loc = get_turf(src)
ass = GM
if(photocopy)
photocopy.loc = src.loc
photocopy = null
else if(copy)
copy.loc = src.loc
copy = null
/obj/machinery/photocopier/ex_act(severity)
switch(severity)
@@ -238,6 +280,38 @@
new /obj/effect/decal/cleanable/oil(get_turf(src))
toner = 0
/obj/machinery/photocopier/MouseDrop_T(mob/target, mob/user)
if (!istype(target) || target.buckled || get_dist(user, src) > 1 || get_dist(user, target) > 1 || user.stat || istype(user, /mob/living/silicon/ai))
return
src.add_fingerprint(user)
if(target == user && !user.stat && !user.weakened && !user.stunned && !user.paralysis)
visible_message("\red [usr] jumps onto the photocopier!")
else if(target != user && !user.restrained() && !user.stat && !user.weakened && !user.stunned && !user.paralysis)
if(target.anchored) return
if(!ishuman(user) && !ismonkey(user)) return
visible_message("\red [usr] drags [target.name] onto the photocopier!")
target.loc = get_turf(src)
ass = target
if(photocopy)
photocopy.loc = src.loc
photocopy = null
else if(copy)
copy.loc = src.loc
copy = null
return
/obj/machinery/photocopier/proc/check_ass() //I'm not sure wether I made this proc because it's good form or because of the name.
if(ass.loc != src.loc)
return
else if(istype(ass,/mob/living/carbon/human))
if(!ass.get_item_by_slot(slot_w_uniform) && !ass.get_item_by_slot(slot_wear_suit))
return 1
else
return
else
return 1
/*
* Toner cartridge
*/
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB