mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 12:07:27 +01:00
H.O.N.K mech and bananium floor honk properly (#18057)
* oh lord i'm really commiting that * HonkponentsInitialize
This commit is contained in:
@@ -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"])
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user