mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 19:13:30 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user