Basic mobs targeting, attacks, and pig migration. (#28987)

* Basic mobs targeting, attacks, and pig migration.

* run updatepaths

* fix duplicate macro def

* Update code/datums/ai/basic_mobs/basic_ai_behaviors/basic_attacking.dm

Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
Signed-off-by: warriorstar-orion <orion@snowfrost.garden>

---------

Signed-off-by: warriorstar-orion <orion@snowfrost.garden>
Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
This commit is contained in:
warriorstar-orion
2025-04-15 10:45:56 -04:00
committed by GitHub
parent 5da3694877
commit efc8adb6dd
44 changed files with 1190 additions and 69 deletions
@@ -593,5 +593,22 @@
/obj/item/projectile/proc/cleanup_beam_segments()
QDEL_LIST_ASSOC(beam_segments)
/**
* Is this projectile considered "hostile"?
*
* By default all projectiles which deal damage or impart crowd control effects (including stamina) are hostile
*
* This is NOT used for pacifist checks, that's handled by [/obj/item/ammo_casing/var/harmful]
* This is used in places such as AI responses to determine if they're being threatened or not (among other places)
*/
/obj/item/projectile/proc/is_hostile_projectile()
if(damage > 0 || stamina > 0)
return TRUE
if(stun + weaken + paralyze + knockdown > 0 SECONDS)
return TRUE
return FALSE
#undef MOVES_HITSCAN
#undef MUZZLE_EFFECT_PIXEL_INCREMENT