Sieve committed:

Adds disabled variables to borg and mech RCD
RCDs are disabled if they are used on the escape shuttle or hyperspace around it
This applies to what they are used on, not where the user is, so it is immune to teleporting issues

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3434 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
petethegoat@gmail.com
2012-04-10 23:57:23 +00:00
parent fb1a2facc3
commit cbad29832e
3 changed files with 14 additions and 1 deletions

View File

@@ -200,6 +200,10 @@
var/disabled = 0 //malf
action(atom/target)
if(istype(target,/area/shuttle)||istype(target, /turf/space/transit))//>implying these are ever made -Sieve
disabled = 1
else
disabled = 0
if(!istype(target, /turf) && !istype(target, /obj/machinery/door/airlock))
target = get_turf(target)
if(!action_checks(target) || disabled || get_dist(chassis, target)>3) return

View File

@@ -188,6 +188,7 @@
// datum/effect/effect/system/spark_spread/spark_system
working = 0
mode = 1
disabled = 0
/*
New()
@@ -224,7 +225,11 @@
afterattack(atom/A, mob/user as mob)
if(!isrobot(user)) return
if(istype(A,/area/shuttle)||istype(A,/turf/space/transit))//No RCDs on the shuttles -Sieve
disabled = 1
else
disabled = 0
if(!isrobot(user)|| disabled == 1) return
if(!(istype(A, /turf) || istype(A, /obj/machinery/door/airlock))) return
var/mob/living/silicon/robot/R = user

View File

@@ -69,6 +69,10 @@ RCD
afterattack(atom/A, mob/user as mob)
if(istype(A,/area/shuttle)||istype(A,/turf/space/transit))//Nanotrasen Matter Jammer TM -Sieve
disabled = 1
else
disabled = 0
if(!(istype(A, /turf) || istype(A, /obj/machinery/door/airlock)))
return