mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
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:
12
code/modules/ai/aI_holder_subtypes/simple_mob_ai_ch.dm
Normal file
12
code/modules/ai/aI_holder_subtypes/simple_mob_ai_ch.dm
Normal 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)
|
||||
|
||||
Reference in New Issue
Block a user