mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 03:55:11 +01:00
0f2aad9e2f
* basic honkbots (#81920) ## About The Pull Request this refactors honkbots into basic mobs. its mostly a faithful 1:1 refactor but i couldnt keep my hands to myselves so i gave them some new behaviors. honkbots now love playing with clowns, they will go seek out for clowns and celebrate around them. also, if the honkbot finds a banana peel or a slippery item near it, it will actively drag people onto them honkbots will now go out of theirway to mess with secbots and annoy them ## Why It's Good For The Game refactors hinkbots into basic bots and also undoes some of the silliness i did in the previous basic bot prs. i also added lazylist support to remove_thing_from_list. ## Changelog 🆑 refactor: honkbots are now basic mobs, please report any bugs add: honkbots will try to slip people on banana peels /🆑 * basic honkbots --------- Co-authored-by: Ben10Omintrix <138636438+Ben10Omintrix@users.noreply.github.com>
20 lines
573 B
Plaintext
20 lines
573 B
Plaintext
/datum/action/cooldown/mob_cooldown/bot/honk
|
|
name = "Honk"
|
|
desc = "Spread cheer and joy all around!"
|
|
button_icon = 'icons/obj/art/horn.dmi'
|
|
button_icon_state = "bike_horn"
|
|
cooldown_time = 5 SECONDS
|
|
click_to_activate = FALSE
|
|
///callback after we have honked
|
|
var/datum/callback/post_honk_callback
|
|
|
|
/datum/action/cooldown/mob_cooldown/bot/honk/Activate()
|
|
playsound(owner, 'sound/items/bikehorn.ogg', 50, TRUE, -1)
|
|
post_honk_callback?.Invoke()
|
|
StartCooldown()
|
|
return TRUE
|
|
|
|
/datum/action/cooldown/mob_cooldown/bot/honk/Destroy()
|
|
. = ..()
|
|
post_honk_callback = null
|