-Fixed Issue 590, the pick up verb will now use Click() instead of bypassing all the checks. This will stop people being able to pick up items that are on the other side of a window.

-Fixed Issue 391, I've added the mule bot to the get_mobs_in_view() proc. But like most other atoms that has a mob inside it's contents, the mob will be unable to see emotes such as "X has punched Y".

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4303 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
giacomand@gmail.com
2012-08-03 17:34:45 +00:00
parent c37cce0fb8
commit bff8bbc48d
2 changed files with 13 additions and 1 deletions
+5 -1
View File
@@ -350,14 +350,18 @@
set category = "Object"
set name = "Pick up"
if(!usr.canmove || usr.stat || usr.restrained())
if(!usr.canmove || usr.stat || usr.restrained() || !in_range(src, usr))
return
if(ishuman(usr))
if(usr.get_active_hand() == null)
src.Click() // Let me know if this has any problems -Giacom
/*
if(usr.get_active_hand() == null)
src.attack_hand(usr)
else
usr << "\red You already have something in your hand."
*/
else
usr << "\red This mob type can't use this verb."
+8
View File
@@ -133,6 +133,14 @@
if(M.client)
hear += M
// Search for Mulebots. A person might be riding in it's load.
for(var/obj/machinery/bot/mulebot/C in V)
if(C.load && ismob(C.load))
if(isInSight(source,C))
var/mob/M = C.load
if(M.client)
hear += M
// Cryos:
for(var/obj/machinery/atmospherics/unary/cryo_cell/C in V)
if(C.occupant)