mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-30 08:29:57 +01:00
Yet Another Mech Quality Of Life PR (#22916)
This was originally just going to be a PR that improves quality of life for the mining mech, which *STILL* felt worse than mining by hand even after my last time buffing it. But then I got sidetracked with adding more sound effects to mechs, and now they have a "bitching betty" as well as a reactor hum sound loop. Including even more audible feedback for when the mech takes damage. https://github.com/user-attachments/assets/5f2020f4-55fd-4e36-8368-471522aad4fa
This commit is contained in:
@@ -160,6 +160,7 @@
|
||||
else
|
||||
if(owner.set_hardpoint(hardpoint_tag))
|
||||
icon_state = "hardpoint_selected"
|
||||
playsound(owner, 'sound/weapons/laser_safetyon.ogg', 50, 0, falloff_exponent = (SOUND_FALLOFF_EXPONENT+4))
|
||||
|
||||
/atom/movable/screen/mecha/eject
|
||||
name = "eject"
|
||||
@@ -216,6 +217,7 @@
|
||||
var/main_color = owner.use_air ? "#d1d1d1" : "#525252"
|
||||
maptext = "<span style=\"font-family: 'Small Fonts'; color: [main_color]; -dm-text-outline: 1 #242424; font-size: 6px;\">AIR</span>"
|
||||
notify_user(usr, SPAN_NOTICE("Auxiliary atmospheric system [owner.use_air ? "enabled" : "disabled"]."))
|
||||
playsound(owner, 'sound/weapons/laser_safetyon.ogg', 50, 0, falloff_exponent = (SOUND_FALLOFF_EXPONENT+4))
|
||||
|
||||
/atom/movable/screen/mecha/toggle/maint
|
||||
name = "toggle maintenance protocol"
|
||||
@@ -230,6 +232,7 @@
|
||||
var/main_color = owner.maintenance_protocols ? "#d1d1d1" : "#525252"
|
||||
maptext = "<span style=\"font-family: 'Small Fonts'; color: [main_color]; -dm-text-outline: 1 #242424; font-size: 6px;\">MAINT</span>"
|
||||
notify_user(usr, SPAN_NOTICE("Maintenance protocols [owner.maintenance_protocols ? "enabled" : "disabled"]."))
|
||||
playsound(owner, 'sound/weapons/laser_safetyon.ogg', 50, 0, falloff_exponent = (SOUND_FALLOFF_EXPONENT+4))
|
||||
|
||||
/atom/movable/screen/mecha/toggle/power_control
|
||||
name = "power control"
|
||||
@@ -263,6 +266,7 @@
|
||||
var/main_color = owner.hardpoints_locked ? "#d1d1d1" : "#525252"
|
||||
maptext = "<span style=\"font-family: 'Small Fonts'; color: [main_color]; -dm-text-outline: 1 #242424; font-size: 6px;\">GEAR</span>"
|
||||
notify_user(usr, SPAN_NOTICE("Hardpoint system access is now [owner.hardpoints_locked ? "disabled" : "enabled"]."))
|
||||
playsound(owner, 'sound/weapons/laser_safetyon.ogg', 50, 0, falloff_exponent = (SOUND_FALLOFF_EXPONENT+4))
|
||||
|
||||
/atom/movable/screen/mecha/toggle/hatch
|
||||
name = "toggle hatch lock"
|
||||
@@ -318,7 +322,7 @@
|
||||
|
||||
toggled = !toggled
|
||||
owner.hatch_closed = toggled
|
||||
playsound(owner.loc, owner.hatch_closed ? 'sound/effects/metal_close.ogg' : 'sound/effects/air_seal.ogg', 75, 1)
|
||||
playsound(owner.loc, owner.hatch_closed ? 'sound/mecha/hatch-door-close.ogg' : 'sound/effects/air_seal.ogg', 75, 1)
|
||||
if(notify_user)
|
||||
notify_user(usr, SPAN_NOTICE("The [owner.body.hatch_descriptor] is now [owner.hatch_closed ? "closed" : "open" ]."))
|
||||
update_icon()
|
||||
|
||||
Reference in New Issue
Block a user