{ // If we're engaging an enemy while carrying a bomb, plant it if we have cover from friendlies type = "condition_owns_item" item = "weapon_c4" child = { type = "decorator_picker_reaction_time" input = "ShortTermAttackMemory" output = "Enemy" child = { type = "decorator_ranker_dist" input = "Enemy" child = { type = "decorator_picker_max_score" input = "Enemy" child = { type = "condition_is_empty" input = "Enemy" negated = 1 child = { type = "decorator_tag_entity" input = "Enemy" output = "EngagedEntities" operation_type = "BT_DECORATOR_TAG_ENTITY_CLEAR" child = { type = "decorator_tag_threshold" entity_input = "Enemy" tagged_entities_input = "EngagedEntities" amount = 2 check_type = "BT_DECORATOR_TAG_THRESHOLD_AT_LEAST" child = { type = "sequencer" children = [ { type = "selector" children = [ { type = "sequencer" children = [ { type = "condition_is_equal" source = "@mp_plant_c4_anywhere" destination = 1 }, { type = "action_choose_guardian_bomb_plant_location" output = "TargetArea" } ] }, { type = "sequencer" children = [ { type = "action_choose_bomb_site_area" input = "@mp_guardian_target_site" output = "BombSiteArea" }, { type = "action_choose_random_waypoint" input = "BombSiteArea" output = "TargetArea" } ] } ] }, { type = "action_move_to" destination = "TargetArea" movement_type = "BT_ACTION_MOVETO_RUN" route_type = "BT_ACTION_MOVETO_FASTEST_ROUTE" hiding_spot = "HidingSpot" }, { type = "selector" children = [ { type = "condition_is_equal" source = "@mp_plant_c4_anywhere" destination = 1 }, { type = "condition_is_at_bomb_site" } ] }, { type = "action_equip_item" item = "weapon_c4" }, { type = "action_wait" wait_time_min = 0.5 wait_time_max = 0.5 }, { type = "decorator_repeat" child = { type = "action_pull_trigger" } } ] } } } } } } } }