TG: 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
Revision: r3434
Author: 	 petethegoat
This commit is contained in:
Ren Erthilo
2012-05-02 22:20:46 +01:00
parent 396caaa260
commit 2d7e329aeb
3 changed files with 9 additions and 1 deletions
+4
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
+1 -1
View File
@@ -227,7 +227,7 @@
afterattack(atom/A, mob/user as mob)
if(istype(A,/area/shuttle))//||istype(A,/turf/space/transit))//No RCDs on the shuttles -Sieve
if(istype(A,/area/shuttle)||istype(A,/turf/space/transit))//No RCDs on the shuttles -Sieve
disabled = 1
else
disabled = 0
+4
View File
@@ -71,6 +71,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