Allows you to adjust the sounds of bikehorns

This commit is contained in:
Jon
2019-04-14 23:10:27 +01:00
parent e4233a0dc4
commit 4fa8e7bb2d
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -65,6 +65,7 @@
throw_range = 15
attack_verb = list("HONKED")
var/spam_flag = 0
var/honkSound = 'sound/items/bikehorn.ogg' //Chompstation ADD: Adding an adjustable variable for bikehorns >:D - Jon
/obj/item/weapon/c_tube
@@ -70,7 +70,7 @@
/obj/item/weapon/bikehorn/attack_self(mob/user as mob)
if (spam_flag == 0)
spam_flag = 1
playsound(src.loc, 'sound/items/bikehorn.ogg', 50, 1)
playsound(src.loc, honkSound, 50, 1)
src.add_fingerprint(user)
spawn(20)
spam_flag = 0