Magboots now correctly stop you from getting sucked into the singularity when activated.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@865 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
crazyclonetheninja
2011-01-16 05:57:35 +00:00
parent 2b27140534
commit cc2a8ce56b
3 changed files with 15 additions and 3 deletions
+1
View File
@@ -479,6 +479,7 @@
icon_state = "magboots0"
protective_temperature = 800
heat_transfer_coefficient = 0.01
var/magpulse = 0
// flags = NOSLIP //disabled by default
/obj/item/clothing/shoes/clown_shoes
+11 -2
View File
@@ -189,8 +189,17 @@ However people seem to like it for some reason.
if(0 to 2)
src.Bumped(X)
else if(!isturf(X))
if(!X:anchored)
step_towards(X,src)
if(!istype(X,/mob/living/carbon/human))
if(!X:anchored)
step_towards(X,src)
else
var/mob/living/carbon/human/H = X
if(istype(H.shoes,/obj/item/clothing/shoes/magboots))
var/obj/item/clothing/shoes/magboots/M = H.shoes
if(M.magpulse)
continue
else
step_towards(H,src)
/obj/machinery/the_singularity/proc/move()
var/direction_go = pick(cardinal)
+3 -1
View File
@@ -220,14 +220,16 @@ DEATH COMMANDO GAS MASK
/obj/item/clothing/under/color/orange/mode = 3
/obj/item/clothing/shoes/magboots/attack_self(mob/user as mob)
if(src.flags&NOSLIP)
if(src.magpulse)
src.flags &= ~NOSLIP
src.slowdown = SHOES_SLOWDOWN
src.magpulse = 0
icon_state = "magboots0"
user << "You disable the mag-pulse traction system."
else
src.flags |= NOSLIP
src.slowdown = 2
src.magpulse = 1
icon_state = "magboots1"
user << "You enable the mag-pulse traction system."