[MIRROR] Allows the auxbase camera console to place airlocks on fans (#5813)

* Allows the auxbase camera console to place airlocks on fans (#35975)

* - Allows the aux base rcd to commit the same atrocities as the regular rcd
- Rids us of another value that does nothing

* first and only webeditor commit

* Allows the auxbase camera console to place airlocks on fans
This commit is contained in:
CitadelStationBot
2018-03-05 13:02:08 -06:00
committed by Poojawa
parent c8107c52cc
commit 892b3b4307
2 changed files with 6 additions and 12 deletions
+6 -11
View File
@@ -173,18 +173,13 @@
if(!check_spot())
return
var/atom/movable/rcd_target
var/turf/target_turf = get_turf(remote_eye)
var/atom/rcd_target = target_turf
//Find airlocks
rcd_target = locate(/obj/machinery/door/airlock) in target_turf
if(!rcd_target)
rcd_target = locate (/obj/structure) in target_turf
if(!rcd_target || !rcd_target.anchored)
rcd_target = target_turf
//Find airlocks and other shite
for(var/obj/S in target_turf)
if(LAZYLEN(S.rcd_vals(owner,B.RCD)))
rcd_target = S //If we don't break out of this loop we'll get the last placed thing
owner.changeNext_move(CLICK_CD_RANGE)
B.RCD.afterattack(rcd_target, owner, TRUE) //Activate the RCD and force it to work remotely!
@@ -276,4 +271,4 @@ datum/action/innate/aux_base/install_turret/Activate()
B.turret_stock--
to_chat(owner, "<span class='notice'>Turret installation complete!</span>")
playsound(turret_turf, 'sound/items/drill_use.ogg', 65, 1)
playsound(turret_turf, 'sound/items/drill_use.ogg', 65, 1)
@@ -203,7 +203,6 @@
desc = "A large machine releasing a constant gust of air."
anchored = TRUE
density = TRUE
var/arbitraryatmosblockingvar = TRUE
var/buildstacktype = /obj/item/stack/sheet/metal
var/buildstackamount = 5
CanAtmosPass = ATMOS_PASS_NO