H.O.N.K mech and bananium floor honk properly (#18057)

* oh lord i'm really commiting that

* HonkponentsInitialize
This commit is contained in:
Vi3trice
2022-06-23 12:13:53 +01:00
committed by GitHub
parent 909af7498b
commit aea4f54cec
2 changed files with 5 additions and 14 deletions
+4 -13
View File
@@ -15,7 +15,10 @@
add_req_access = 0
max_equip = 3
starting_voice = /obj/item/mecha_modkit/voice/honk
var/squeak = 0
/obj/mecha/combat/honker/ComponentInitialize()
. = ..()
AddComponent(/datum/component/squeak, list('sound/effects/clownstep1.ogg' = 1, 'sound/effects/clownstep2.ogg' = 1), 50, falloff_exponent = 20, squeak_on_move = TRUE) //die off quick please
/obj/mecha/combat/honker/loaded/New()
..()
@@ -125,18 +128,6 @@
output += "</div>"
return output
/obj/mecha/combat/honker/mechstep(direction)
var/result = step(src,direction)
if(result)
if(!squeak)
playsound(src, "clownstep", 70, 1)
squeak = 1
else
squeak = 0
return result
/obj/mecha/combat/honker/Topic(href, href_list)
..()
if(href_list["play_sound"])
+1 -1
View File
@@ -180,7 +180,7 @@
/turf/simulated/floor/mineral/bananium/proc/squeek()
if(spam_flag < world.time)
playsound(src, "clownstep", 50, 1)
playsound(src, 'sound/effects/clownstep1.ogg', 50, 1)
spam_flag = world.time + 10
/turf/simulated/floor/mineral/bananium/airless