mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
- Fixes issue 787. Hacked mulebots can still be loaded with lots of stuff, including unanchored structures, machinery, items and mobs. They however cannot be loaded with screen, hud or effect-type objects. They also cannot be loaded by anything that is not placed on a turf tile to prevent loading things from your inventory, which would cause issues.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4465 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -468,6 +468,13 @@
|
||||
playsound(src.loc, 'buzz-sigh.ogg', 50, 0)
|
||||
return // if not emagged, only allow crates to be loaded
|
||||
|
||||
//I'm sure someone will come along and ask why this is here... well people were dragging screen items onto the mule, and that was not cool.
|
||||
//So this is a simple fix that only allows a selection of item types to be considered. Further narrowing-down is below.
|
||||
if(!istype(C,/obj/item) && !istype(C,/obj/machinery) && !istype(C,/obj/structure) && !ismob(C))
|
||||
return
|
||||
if(!isturf(C.loc)) //To prevent the loading from stuff from someone's inventory, which wouldn't get handled properly.
|
||||
return
|
||||
|
||||
if(get_dist(C, src) > 1 || load || !on)
|
||||
return
|
||||
for(var/obj/structure/plasticflaps/P in src.loc)//Takes flaps into account
|
||||
@@ -482,6 +489,8 @@
|
||||
|
||||
C.loc = src.loc
|
||||
sleep(2)
|
||||
if(C.loc != src.loc) //To prevent you from going onto more thano ne bot.
|
||||
return
|
||||
C.loc = src
|
||||
load = C
|
||||
|
||||
|
||||
Reference in New Issue
Block a user