Converts hivebots to basic mob AI (#29849)

* Converts hivebots to basic mob AI

* Updatepaths

* Linters

* Hivebot beacon

* New linters

---------

Signed-off-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com>
Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
This commit is contained in:
PollardTheDragon
2025-07-31 02:14:05 -04:00
committed by GitHub
parent 8976c80adc
commit 3a03e29187
10 changed files with 309 additions and 161 deletions
@@ -154,6 +154,17 @@ RESTRICT_TYPE(/mob/living/basic)
/// Footsteps
var/step_type
/// Does this type do range attacks?
var/is_ranged = FALSE
/// How many shots in a burst?
var/ranged_burst_count = 1
/// How fast do we fire between bursts?
var/ranged_burst_interval = 0.2 SECONDS
/// What projectile do we shoot?
var/projectile_type
/// What sound does it make when firing?
var/projectile_sound
/mob/living/basic/Initialize(mapload)
. = ..()
@@ -164,6 +175,8 @@ RESTRICT_TYPE(/mob/living/basic)
apply_temperature_requirements()
if(step_type)
AddComponent(/datum/component/footstep, step_type)
if(is_ranged)
AddComponent(/datum/component/ranged_attacks, projectile_type = projectile_type, projectile_sound = projectile_sound, burst_shots = ranged_burst_count, burst_intervals = ranged_burst_interval)
/mob/living/basic/Destroy()
if(nest)