Add hyenas, and a custom pack_mob ai type for them

The AI type will be further iterated on later.
Hyena icons patiently awaiting sprite art. <3
This commit is contained in:
Rykka
2020-01-15 05:02:09 -07:00
parent 3f75fed80e
commit cb97713a09
3 changed files with 170 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
/datum/ai_holder/simple_mob/melee/pack_mob
cooperative = TRUE
call_distance = 28 // pack mobs should be able to communicate quite a ways - we can assume by howls/etc
can_flee = TRUE
flee_when_dying = TRUE // animals know to run when wounded/overmatched
flee_when_outmatched = TRUE // animals know to run when wounded/overmatched
/datum/ai_holder/simple_mob/melee/pack_mob/post_melee_attack(atom/A)
if(holder.Adjacent(A))
holder.IMove(get_step(holder, pick(alldirs)))
holder.face_atom(A)