mirror of
https://github.com/Yawn-Wider/YWPolarisVore.git
synced 2026-08-31 09:01:24 +01:00
allows pulling of whitelisted items through redgate
This commit is contained in:
@@ -53,9 +53,19 @@
|
||||
var/turf/ourturf = find_our_turf(M) //Find the turf on the opposite side of the target
|
||||
if(!ourturf.check_density(TRUE,TRUE)) //Make sure there isn't a wall there
|
||||
M.unbuckle_all_mobs(TRUE)
|
||||
M.stop_pulling()
|
||||
playsound(src,'sound/effects/ominous-hum-2.ogg', 100,1)
|
||||
M.forceMove(ourturf) //Let's just do forcemove, I don't really want people teleporting to weird places if they have bluespace stuff
|
||||
if(M.pulling)
|
||||
var/atom/movable/pulled = M.pulling
|
||||
M.stop_pulling()
|
||||
playsound(src,'sound/effects/ominous-hum-2.ogg', 100,1)
|
||||
M.forceMove(ourturf)
|
||||
if(pulled.type in exceptions)
|
||||
pulled.forceMove(ourturf)
|
||||
M.continue_pulling(pulled)
|
||||
else
|
||||
to_chat(M, "<span class='notice'>The redgate refused your pulled item.</span>")
|
||||
else
|
||||
playsound(src,'sound/effects/ominous-hum-2.ogg', 100,1)
|
||||
M.forceMove(ourturf) //Let's just do forcemove, I don't really want people teleporting to weird places if they have bluespace stuff
|
||||
else
|
||||
to_chat(M, "<span class='notice'>Something blocks your way.</span>")
|
||||
|
||||
@@ -1414,4 +1424,4 @@
|
||||
else
|
||||
//todo; throw the ball in a random direction
|
||||
src.visible_message("\The [ball] bounces off \the [src]'s rim!")
|
||||
global_announcer.autosay("[ball.last_holder] threw the HYPERball and +missed!+ |Oooh!|","Laserdome Announcer","Entertainment")
|
||||
global_announcer.autosay("[ball.last_holder] threw the HYPERball and +missed!+ |Oooh!|","Laserdome Announcer","Entertainment")
|
||||
|
||||
Reference in New Issue
Block a user