[MIRROR] [Ready]New walking and turning sounds for the Ripley Mk. I and II, interaction sounds for the hydraulic clamp (#1538)

* [Ready]New walking and turning sounds for the Ripley Mk. I and II, interaction sounds for the hydraulic clamp (#54523)

* [Ready]New walking and turning sounds for the Ripley Mk. I and II, interaction sounds for the hydraulic clamp

Co-authored-by: InvalidArgument3 <51190031+InvalidArgument3@users.noreply.github.com>
This commit is contained in:
SkyratBot
2020-11-02 02:59:03 +00:00
committed by GitHub
co-authored by InvalidArgument3
parent 6c21037c34
commit cc645914e6
5 changed files with 8 additions and 0 deletions
@@ -19,6 +19,8 @@
var/clamp_damage = 20
///Var for the chassis we are attached to, needed to access ripley contents and such
var/obj/vehicle/sealed/mecha/working/ripley/cargo_holder
///Audio for using the hydraulic clamp
var/clampsound = 'sound/mecha/hydraulic.ogg'
/obj/item/mecha_parts/mecha_equipment/hydraulic_clamp/can_attach(obj/vehicle/sealed/mecha/M)
. = ..()
@@ -57,10 +59,12 @@
var/obj/clamptarget = target
if(istype(clamptarget, /obj/machinery/door/firedoor))
var/obj/machinery/door/firedoor/targetfiredoor = clamptarget
playsound(chassis, clampsound, 50, FALSE, -6)
targetfiredoor.try_to_crowbar(src, source)
return
if(istype(clamptarget, /obj/machinery/door/airlock/))
var/obj/machinery/door/airlock/targetairlock = clamptarget
playsound(chassis, clampsound, 50, FALSE, -6)
targetairlock.try_to_crowbar(src, source)
return
if(clamptarget.anchored)
@@ -69,6 +73,7 @@
if(LAZYLEN(cargo_holder.cargo) >= cargo_holder.cargo_capacity)
to_chat(source, "[icon2html(src, source)]<span class='warning'>Not enough room in cargo compartment!</span>")
return
playsound(chassis, clampsound, 50, FALSE, -6)
chassis.visible_message("<span class='notice'>[chassis] lifts [target] and starts to load it into cargo compartment.</span>")
clamptarget.set_anchored(TRUE)
if(!do_after_cooldown(target, source))
@@ -25,6 +25,9 @@
var/list/cargo
/// How much things Ripley can carry in their Cargo Compartment
var/cargo_capacity = 15
/// Custom Ripley step and turning sounds (from TGMC)
stepsound = 'sound/mecha/powerloader_step.ogg'
turnsound = 'sound/mecha/powerloader_turn2.ogg'
/obj/vehicle/sealed/mecha/working/ripley/Move()
. = ..()
Binary file not shown.
Binary file not shown.
Binary file not shown.