mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-03 22:12:38 +00:00
TG: - Removed the table where mail gets to at mail sorting because mobs keep getting
stuck there. - You can no longer control disposal units from within them! - Disposal units now auto trigger every 30 game ticks, if they are fully pressurized and if they have something (or someone) in them. So no more hiding in disposal units! - Added this to the changelog. Revision: r3108 Author: baloh.matevz
This commit is contained in:
@@ -45,6 +45,9 @@
|
||||
if(stat & BROKEN || !I || !user)
|
||||
return
|
||||
|
||||
if(isrobot(user) && !istype(I, /obj/item/weapon/trashbag))
|
||||
return
|
||||
|
||||
if(istype(I, /obj/item/weapon/melee/energy/blade))
|
||||
user << "You can't place that item inside the disposal unit."
|
||||
return
|
||||
@@ -58,10 +61,6 @@
|
||||
update()
|
||||
return
|
||||
|
||||
//robots shouldn't be able to grab/carry stuff anyway
|
||||
if(isrobot(user))
|
||||
return
|
||||
|
||||
if(istype(I, /obj/item/ashtray) && (I.health > 0))
|
||||
user << "\blue You empty the ashtray into [src]."
|
||||
for(var/obj/item/O in I.contents)
|
||||
@@ -103,6 +102,11 @@
|
||||
GM.client.eye = src
|
||||
GM.loc = src
|
||||
for (var/mob/C in viewers(src))
|
||||
|
||||
log_attack("<font color='red'>[usr] ([usr.ckey]) placed [GM] ([GM.ckey]) in a disposals unit.</font>")
|
||||
log_admin("ATTACK: [usr] ([usr.ckey]) placed [GM] ([GM.ckey]) in a disposals unit.")
|
||||
message_admins("ATTACK: [usr] ([usr.ckey]) placed [GM] ([GM.ckey]) in a disposals unit.")
|
||||
|
||||
C.show_message("\red [GM.name] has been placed in the [src] by [user].", 3)
|
||||
del(G)
|
||||
else
|
||||
@@ -144,9 +148,19 @@
|
||||
if(!do_after(usr, 20))
|
||||
return
|
||||
if(target == user && !user.stat && !user.weakened && !user.stunned && !user.paralysis) // if drop self, then climbed in // must be awake, not stunned or whatever
|
||||
|
||||
log_attack("<font color='red'>[user] ([user.ckey]) climbed into a disposals unit.</font>")
|
||||
log_admin("ATTACK: [user] ([user.ckey]) climbed into in a disposals unit.")
|
||||
message_admins("ATTACK: [user] ([user.ckey]) climbed into in a disposals unit.")
|
||||
|
||||
msg = "[user.name] climbs into the [src]."
|
||||
user << "You climb into the [src]."
|
||||
else if(target != user && !user.restrained() && !user.stat && !user.weakened && !user.stunned && !user.paralysis)
|
||||
|
||||
log_attack("<font color='red'>[user] ([user.ckey]) placed [target] ([target.ckey]) in a disposals unit.</font>")
|
||||
log_admin("ATTACK: [user] ([user.ckey]) placed [target] ([target.ckey]) in a disposals unit.")
|
||||
message_admins("ATTACK: [user] ([user.ckey]) placed [target] ([target.ckey]) in a disposals unit.")
|
||||
|
||||
msg = "[user.name] stuffs [target.name] into the [src]!"
|
||||
user << "You stuff [target.name] into the [src]!"
|
||||
else
|
||||
@@ -239,10 +253,14 @@
|
||||
|
||||
// human interact with machine
|
||||
attack_hand(mob/user as mob)
|
||||
if(user && user.loc == src)
|
||||
usr << "\red You cannot reach the controls from inside."
|
||||
return
|
||||
interact(user, 0)
|
||||
|
||||
// user interaction
|
||||
proc/interact(mob/user, var/ai=0)
|
||||
|
||||
src.add_fingerprint(user)
|
||||
if(stat & BROKEN)
|
||||
user.machine = null
|
||||
@@ -277,6 +295,9 @@
|
||||
// handle machine interaction
|
||||
|
||||
Topic(href, href_list)
|
||||
if(usr.loc == src)
|
||||
usr << "\red You cannot reach the controls from inside."
|
||||
return
|
||||
..()
|
||||
src.add_fingerprint(usr)
|
||||
if(stat & BROKEN)
|
||||
|
||||
Reference in New Issue
Block a user