mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 02:09:41 +00:00
Co-authored-by: Guti <32563288+TheCaramelion@users.noreply.github.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
38 lines
676 B
Plaintext
38 lines
676 B
Plaintext
/* Clown Items
|
|
* Contains:
|
|
* Banana Peels
|
|
* Soap
|
|
* Bike Horns
|
|
*/
|
|
|
|
/*
|
|
* Banana Peels
|
|
*/
|
|
/obj/item/bananapeel/Crossed(atom/movable/AM as mob|obj)
|
|
if(AM.is_incorporeal())
|
|
return
|
|
if(isliving(AM))
|
|
var/mob/living/M = AM
|
|
M.slip("the [src.name]",4)
|
|
|
|
/*
|
|
* Bike Horns
|
|
*/
|
|
/obj/item/bikehorn
|
|
var/honk_sound = 'sound/items/bikehorn.ogg'
|
|
|
|
/obj/item/bikehorn/attack_self(mob/user as mob)
|
|
if(spam_flag == 0)
|
|
spam_flag = 1
|
|
playsound(src, honk_sound, 50, 1)
|
|
src.add_fingerprint(user)
|
|
spawn(20)
|
|
spam_flag = 0
|
|
return
|
|
|
|
/obj/item/bikehorn/Crossed(atom/movable/AM as mob|obj)
|
|
if(AM.is_incorporeal())
|
|
return
|
|
if(isliving(AM))
|
|
playsound(src, honk_sound, 50, 1)
|