mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-24 05:23:22 +01:00
Adds new sounds for RIGs. (#9617)
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
#define NOSLIP 0x8 // Prevents from slipping on wet floors, in space, etc.
|
||||
#define BLOCK_GAS_SMOKE_EFFECT 0x10 // Blocks the effect that chemical clouds would have on a mob -- glasses, mask and helmets ONLY! (NOTE: flag shared with ONESIZEFITSALL)
|
||||
#define FLEXIBLEMATERIAL 0x20 // At the moment, masks with this flag will not prevent eating even if they are covering your face.
|
||||
#define SILENT 0x40 // sneaky shoes
|
||||
|
||||
// Flags for pass_flags.
|
||||
#define PASSTABLE 0x1
|
||||
|
||||
@@ -83,14 +83,14 @@ obj/item/clothing/shoes/sandal/clogs
|
||||
species_restricted = null
|
||||
|
||||
/obj/item/clothing/shoes/clown_shoes/handle_movement(var/turf/walking, var/running)
|
||||
if(running)
|
||||
if(!running)
|
||||
if(footstep >= 2)
|
||||
footstep = 0
|
||||
playsound(src, "clownstep", 50, 1) // this will get annoying very fast.
|
||||
playsound(src, "clownstep", 20, 1) // this will get annoying very fast.
|
||||
else
|
||||
footstep++
|
||||
else
|
||||
playsound(src, "clownstep", 20, 1)
|
||||
playsound(src, "clownstep", 50, 1)
|
||||
|
||||
/obj/item/clothing/shoes/cult
|
||||
name = "ragged boots"
|
||||
|
||||
@@ -224,6 +224,7 @@
|
||||
|
||||
if(!seal_target && !suit_is_deployed())
|
||||
wearer.visible_message("<span class='danger'>[wearer]'s suit flashes an error light.</span>","<span class='danger'>Your suit flashes an error light. It can't function properly without being fully deployed.</span>")
|
||||
playsound(src, 'sound/machines/rig/rigerror.ogg', 20, FALSE)
|
||||
failed_to_seal = 1
|
||||
|
||||
var/is_in_cycler = istype(initiator.loc, /obj/machinery/suit_cycler)
|
||||
@@ -234,6 +235,7 @@
|
||||
wearer.visible_message("<font color='blue'>[wearer]'s suit emits a quiet hum as it begins to adjust its seals.</font>","<font color='blue'>With a quiet hum, the suit begins running checks and adjusting components.</font>")
|
||||
if(seal_delay && !do_after(wearer, seal_delay, act_target = src))
|
||||
if(wearer) to_chat(wearer, "<span class='warning'>You must remain still while the suit is adjusting the components.</span>")
|
||||
playsound(src, 'sound/machines/rig/rigerror.ogg', 20, FALSE)
|
||||
failed_to_seal = 1
|
||||
|
||||
if(!wearer)
|
||||
@@ -284,6 +286,7 @@
|
||||
else
|
||||
LAZYINITLIST(piece.armor)
|
||||
piece.armor["bio"] = LAZYACCESS(src.armor, "bio") || 0
|
||||
playsound(src, "[!seal_target ? 'sound/machines/BoltsDown.ogg' : 'sound/machines/BoltsUp.ogg']", 10, FALSE)
|
||||
|
||||
else
|
||||
failed_to_seal = 1
|
||||
@@ -306,8 +309,11 @@
|
||||
// Success!
|
||||
canremove = seal_target
|
||||
to_chat(wearer, "<font color='blue'><b>Your entire suit [canremove ? "loosens as the components relax" : "tightens around you as the components lock into place"].</b></font>")
|
||||
if (has_sealed_state)
|
||||
playsound(src, 'sound/machines/rig/rigstarted.ogg', 10, FALSE)
|
||||
if(has_sealed_state)
|
||||
icon_state = canremove ? initial(icon_state) : "[initial(icon_state)]_sealed"
|
||||
if(!canremove)
|
||||
playsound(src, 'sound/machines/rig/rigonline.ogg', 10, FALSE)
|
||||
|
||||
if(dnaLock && !offline)
|
||||
if(dnaLock != wearer.dna)
|
||||
@@ -357,6 +363,7 @@
|
||||
to_chat(wearer, "<span class='danger'>Your suit beeps stridently, and suddenly goes dead.</span>")
|
||||
else
|
||||
to_chat(wearer, "<span class='danger'>Your suit beeps stridently, and suddenly you're wearing a leaden mass of metal and plastic composites instead of a powered suit.</span>")
|
||||
playsound(src, 'sound/machines/rig/rigdown.ogg', 60, FALSE)
|
||||
if(offline_vision_restriction == 1)
|
||||
to_chat(wearer, "<span class='danger'>The suit optics flicker and die, leaving you with restricted vision.</span>")
|
||||
else if(offline_vision_restriction == 2)
|
||||
@@ -422,6 +429,7 @@
|
||||
|
||||
if(fail_msg)
|
||||
to_chat(user, "[fail_msg]")
|
||||
playsound(src, 'sound/machines/rig/rigerror.ogg', 20, FALSE)
|
||||
return 0
|
||||
|
||||
// This is largely for cancelling stealth and whatever.
|
||||
@@ -667,6 +675,7 @@
|
||||
if(istype(holder))
|
||||
if(use_obj && check_slot == use_obj)
|
||||
to_chat(wearer, "<font color='blue'><b>Your [use_obj.name] [use_obj.gender == PLURAL ? "retract" : "retracts"] swiftly.</b></font>")
|
||||
playsound(src, 'sound/machines/BoltsUp.ogg', 10, FALSE)
|
||||
use_obj.canremove = 1
|
||||
holder.drop_from_inventory(use_obj,get_turf(src)) //TODO: TEST THIS CODE!
|
||||
use_obj.dropped()
|
||||
@@ -684,6 +693,7 @@
|
||||
return
|
||||
else
|
||||
to_chat(wearer, "<span class='notice'>Your [use_obj.name] [use_obj.gender == PLURAL ? "deploy" : "deploys"] swiftly.</span>")
|
||||
playsound(src, 'sound/machines/BoltsDown.ogg', 10, FALSE)
|
||||
|
||||
if(piece == "helmet" && helmet)
|
||||
helmet.update_light(wearer)
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
|
||||
/obj/item/clothing/shoes/magboots/rig
|
||||
name = "boots"
|
||||
item_flags = SILENT
|
||||
body_parts_covered = FEET
|
||||
cold_protection = FEET
|
||||
heat_protection = FEET
|
||||
@@ -52,6 +53,17 @@
|
||||
"Machine" = 'icons/mob/species/machine/shoes.dmi',
|
||||
"Vox" = 'icons/mob/species/vox/shoes.dmi'
|
||||
)
|
||||
var/footstep = 1 //used for footsteps.
|
||||
|
||||
/obj/item/clothing/shoes/magboots/rig/handle_movement(var/turf/walking, var/running)
|
||||
if(!running)
|
||||
if(footstep >= 2)
|
||||
footstep = 0
|
||||
playsound(src, 'sound/machines/rig/rigstep.ogg', 20, TRUE)
|
||||
else
|
||||
footstep++
|
||||
else
|
||||
playsound(src, 'sound/machines/rig/rigstep.ogg', 50, TRUE)
|
||||
|
||||
/obj/item/clothing/suit/space/rig
|
||||
name = "chestpiece"
|
||||
|
||||
@@ -156,6 +156,8 @@
|
||||
if (is_noisy && !stat && !lying)
|
||||
if ((x == last_x && y == last_y) || !footsound)
|
||||
return
|
||||
if(shoes && (shoes.item_flags & SILENT))
|
||||
return // quiet shoes
|
||||
last_x = x
|
||||
last_y = y
|
||||
if (m_intent == "run")
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
################################
|
||||
# Example Changelog File
|
||||
#
|
||||
# Note: This file, and files beginning with ".", and files that don't end in ".yml" will not be read. If you change this file, you will look really dumb.
|
||||
#
|
||||
# Your changelog will be merged with a master changelog. (New stuff added only, and only on the date entry for the day it was merged.)
|
||||
# When it is, any changes listed below will disappear.
|
||||
#
|
||||
# Valid Prefixes:
|
||||
# bugfix
|
||||
# wip (For works in progress)
|
||||
# tweak
|
||||
# soundadd
|
||||
# sounddel
|
||||
# rscadd (general adding of nice things)
|
||||
# rscdel (general deleting of nice things)
|
||||
# imageadd
|
||||
# imagedel
|
||||
# maptweak
|
||||
# spellcheck (typo fixes)
|
||||
# experiment
|
||||
# balance
|
||||
# admin
|
||||
# backend
|
||||
# security
|
||||
# refactor
|
||||
#################################
|
||||
|
||||
# Your name.
|
||||
author: Wowzewow (Wezzy), CookieJarvis
|
||||
|
||||
# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again.
|
||||
delete-after: True
|
||||
|
||||
# Any changes you've made. See valid prefix list above.
|
||||
# INDENT WITH TWO SPACES. NOT TABS. SPACES.
|
||||
# SCREW THIS UP AND IT WON'T WORK.
|
||||
# Also, all entries are changed into a single [] after a master changelog generation. Just remove the brackets when you add new entries.
|
||||
# Please surround your changes in double quotes ("), as certain characters otherwise screws up compiling. The quotes will not show up in the changelog.
|
||||
changes:
|
||||
- soundadd: "Adds new sounds for RIGs."
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user