mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-17 01:53:35 +01:00
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:
committed by
GitHub
parent
5da3694877
commit
efc8adb6dd
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user