{ "dm_type": "/datum/bt_node/subtree/simple_ranged_combat", "bindings": { "bsjjwub2": { "label": "idle_behavior", "default": "/datum/bt_node/subtree/random_walk" } }, "type": "parallel", "failure_policy": "BT_PARALLEL_FAILURE_CHILD_ONE", "success_policy": "BT_PARALLEL_SUCCESS_CHILD_ONE", "repeat_secondary": true, "repeat_secondary_delay": "BASIC_MOB_FIND_TARGET_RATE", "finish_on_primary": true, "children": [ { "type": "selector", "children": [ { "type": "decorator", "decorator": "/datum/bt_node/decorator/bb_key_set", "vars": { "observer_abort": "BT_ABORT_BOTH", "key": "BB_CURRENT_TARGET" }, "child": { "type": "parallel", "failure_policy": "BT_PARALLEL_FAILURE_ANY", "success_policy": "BT_PARALLEL_SUCCESS_CHILD_ONE", "repeat_secondary": true, "finish_on_primary": true, "children": [ { "type": "subplan", "success_policy": "BT_SUBPLAN_LOOP_ON_SUCCESS", "failure_policy": "BT_SUBPLAN_LOOP_ON_FAILURE", "children": [ { "type": "leaf", "behavior": "/datum/bt_node/ai_behavior/basic_ranged_attack", "vars": { "time_between_perform": "0.6 SECONDS", "target_key": "BB_CURRENT_TARGET", "targeting_strategy": "BB_TARGETING_STRATEGY", "hiding_location_key": "BB_CURRENT_TARGET_HIDING_LOCATION" } } ] }, { "type": "leaf", "behavior": "/datum/bt_node/ai_behavior/maintain_distance", "vars": { "target_key": "BB_CURRENT_TARGET", "approach_movement_type": "/datum/ai_movement/basic_avoidance" } } ] } }, { "type": "subtree", "subtype": "$bsjjwub2" } ] }, { "type": "leaf", "behavior": "/datum/bt_node/ai_behavior/acquire_target/update_combat_targets", "vars": { "target_key": "BB_CURRENT_TARGET", "targeting_strategy": "BB_TARGETING_STRATEGY", "hiding_location_key": "BB_CURRENT_TARGET_HIDING_LOCATION" } } ] }