mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-24 00:21:52 +00:00
* make the hive bot a basic bot (#77274) ## About The Pull Request i make the hivebot a basic bot also the old hivebot simple bot he was chaneged apperence when he finded a target so i maked a new element to allowed this behavier so now when the basic finded a target he apperence can also changed and this elememt can be gived to another basic monsters so they can changed apperence when they found a target. i give him new behaviers now the hivebot will look for ech other and when he finded ech other they will comunicated with binyary messages and now the mechanic hivebot he will go to look for broked machines so he can repair him ## Why It's Good For The Game the hivebot is a basic and he have a better behaver ## Changelog 🆑 refactor: the hivebot is now a basic please report any bugs /🆑 --------- Co-authored-by: Fikou <23585223+Fikou@ users.noreply.github.com> * make the hive bot a basic bot * Update salvagepost.dmm --------- Co-authored-by: Ben10Omintrix <138636438+Ben10Omintrix@users.noreply.github.com> Co-authored-by: Fikou <23585223+Fikou@ users.noreply.github.com> Co-authored-by: Giz <13398309+vinylspiders@users.noreply.github.com>
37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
/obj/structure/hivebot_beacon
|
|
name = "beacon"
|
|
desc = "Some odd beacon thing."
|
|
icon = 'icons/mob/simple/hivebot.dmi'
|
|
icon_state = "def_radar-off"
|
|
anchored = TRUE
|
|
density = TRUE
|
|
var/bot_type = "norm"
|
|
var/bot_amt = 10
|
|
|
|
/obj/structure/hivebot_beacon/Initialize(mapload)
|
|
. = ..()
|
|
var/datum/effect_system/fluid_spread/smoke/smoke = new
|
|
smoke.set_up(2, holder = src, location = loc)
|
|
smoke.start()
|
|
visible_message(span_boldannounce("[src] warps in!"))
|
|
playsound(src.loc, 'sound/effects/empulse.ogg', 25, TRUE)
|
|
addtimer(CALLBACK(src, PROC_REF(warpbots)), rand(10, 600))
|
|
|
|
/obj/structure/hivebot_beacon/proc/warpbots()
|
|
icon_state = "def_radar"
|
|
visible_message(span_danger("[src] turns on!"))
|
|
while(bot_amt > 0)
|
|
bot_amt--
|
|
switch(bot_type)
|
|
if("norm")
|
|
new /mob/living/basic/hivebot(get_turf(src))
|
|
if("range")
|
|
new /mob/living/basic/hivebot/range(get_turf(src))
|
|
if("rapid")
|
|
new /mob/living/basic/hivebot/rapid(get_turf(src))
|
|
sleep(10 SECONDS)
|
|
visible_message(span_boldannounce("[src] warps out!"))
|
|
playsound(src.loc, 'sound/effects/empulse.ogg', 25, TRUE)
|
|
qdel(src)
|
|
return
|