mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-10 17:52:36 +00:00
[MIRROR] Dogs now properly unbuckle when fetching [MDB IGNORE] (#10253)
* Dogs now properly unbuckle when fetching (#63583) * Dogs now properly unbuckle when fetching Co-authored-by: Bond <58570888+TheBonded@users.noreply.github.com>
This commit is contained in:
@@ -80,9 +80,14 @@
|
|||||||
if(!istype(thrown_thing) || !isturf(thrown_thing.loc) || !can_see(pawn, thrown_thing, length=AI_DOG_VISION_RANGE))
|
if(!istype(thrown_thing) || !isturf(thrown_thing.loc) || !can_see(pawn, thrown_thing, length=AI_DOG_VISION_RANGE))
|
||||||
return
|
return
|
||||||
|
|
||||||
|
var/mob/living/living_pawn = pawn
|
||||||
|
if(IS_DEAD_OR_INCAP(living_pawn))
|
||||||
|
return
|
||||||
current_movement_target = thrown_thing
|
current_movement_target = thrown_thing
|
||||||
blackboard[BB_FETCH_TARGET] = thrown_thing
|
blackboard[BB_FETCH_TARGET] = thrown_thing
|
||||||
blackboard[BB_FETCH_DELIVER_TO] = throwing_datum.thrower
|
blackboard[BB_FETCH_DELIVER_TO] = throwing_datum.thrower
|
||||||
|
if(living_pawn.buckled)
|
||||||
|
queue_behavior(/datum/ai_behavior/resist)
|
||||||
queue_behavior(/datum/ai_behavior/fetch)
|
queue_behavior(/datum/ai_behavior/fetch)
|
||||||
|
|
||||||
/// Someone's interacting with us by hand, see if they're being nice or mean
|
/// Someone's interacting with us by hand, see if they're being nice or mean
|
||||||
|
|||||||
Reference in New Issue
Block a user