local temp = {} if (move ~= nil) then temp = move end move = temp function get_smart_cover() return { need_weapon = true, loopholes = { -- Крауч smart_covers_loophole_crouch_front_left.get_loophole ("crouch_front_left", vector():set(-1, 0, -0.7)), smart_covers_loophole_crouch_front.get_loophole ("crouch_front", vector():set(-1, 0, 0)), smart_covers_loophole_crouch_front_right.get_loophole ("crouch_front_right", vector():set(-1, 0, 0.7)), -- Стоя smart_covers_loophole_stand_front_left.get_loophole ("stand_front_left", vector():set(-1, 0, -0.7)), smart_covers_loophole_stand_front_right.get_loophole ("stand_front_right", vector():set(-1, 0, 0.7)), -- Лежа }, transitions = { --' Анимации входа в бойницы { vertex0 = "", vertex1 = "crouch_front_left", weight = 1.0, actions = { { precondition_functor = "smart_covers.script_functor_true", precondition_params = "", actions = { { animation = "loophole_crouch_in_front_left_0", position = vector():set(0,0,0), body_state = move.crouch, movement_type = move.run, }, }, } } }, { vertex0 = "", vertex1 = "crouch_front", weight = 1.0, actions = { { precondition_functor = "smart_covers.script_functor_true", precondition_params = "", actions = { { animation = "loophole_crouch_in_front_0", position = vector():set(0,0,0), body_state = move.crouch, movement_type = move.run, }, }, } } }, { vertex0 = "", vertex1 = "crouch_front_right", weight = 1.0, actions = { { precondition_functor = "smart_covers.script_functor_true", precondition_params = "", actions = { { animation = "loophole_crouch_in_front_right_0", position = vector():set(0,0,0), body_state = move.crouch, movement_type = move.run, }, }, } } }, { vertex0 = "", vertex1 = "stand_front_left", weight = 1.0, actions = { { precondition_functor = "smart_covers.script_functor_true", precondition_params = "", actions = { { animation = "loophole_stand_in_front_left_0", position = vector():set(0,0,0), body_state = move.crouch, movement_type = move.run, }, }, } } }, { vertex0 = "", vertex1 = "stand_front_right", weight = 1.0, actions = { { precondition_functor = "smart_covers.script_functor_true", precondition_params = "", actions = { { animation = "loophole_stand_in_front_right_0", position = vector():set(0,0,0), body_state = move.crouch, movement_type = move.run, }, }, } } }, --' Анимации перехода. { vertex0 = "crouch_front", vertex1 = "crouch_front_left", weight = 1.1, actions = { { precondition_functor = "smart_covers.script_functor_true", precondition_params = "", actions = { { animation = "crouch_front_to_crouch_front_left", position = vector():set(0,0,0), body_state = move.crouch, movement_type = move.run, }, }, } } }, { vertex0 = "crouch_front", vertex1 = "crouch_front_right", weight = 1.1, actions = { { precondition_functor = "smart_covers.script_functor_true", precondition_params = "", actions = { { animation = "crouch_front_to_crouch_front_right", position = vector():set(0,0,0), body_state = move.crouch, movement_type = move.run, }, }, } } }, { vertex0 = "crouch_front", vertex1 = "stand_front_left", weight = 1.1, actions = { { precondition_functor = "smart_covers.script_functor_true", precondition_params = "", actions = { { animation = "crouch_front_to_stand_front_left", position = vector():set(0,0,0), body_state = move.crouch, movement_type = move.run, }, }, } } }, { vertex0 = "crouch_front", vertex1 = "stand_front_right", weight = 1.1, actions = { { precondition_functor = "smart_covers.script_functor_true", precondition_params = "", actions = { { animation = "crouch_front_to_stand_front_right", position = vector():set(0,0,0), body_state = move.crouch, movement_type = move.run, }, }, } } }, { vertex0 = "crouch_front_right", vertex1 = "crouch_front", weight = 1.1, actions = { { precondition_functor = "smart_covers.script_functor_true", precondition_params = "", actions = { { animation = "crouch_front_right_to_crouch_front", position = vector():set(0,0,0), body_state = move.crouch, movement_type = move.run, }, }, } } }, { vertex0 = "crouch_front_right", vertex1 = "crouch_front_left", weight = 1.1, actions = { { precondition_functor = "smart_covers.script_functor_true", precondition_params = "", actions = { { animation = "crouch_front_right_to_crouch_front_left", position = vector():set(0,0,0), body_state = move.crouch, movement_type = move.run, }, }, } } }, { vertex0 = "crouch_front_right", vertex1 = "stand_front_left", weight = 1.1, actions = { { precondition_functor = "smart_covers.script_functor_true", precondition_params = "", actions = { { animation = "crouch_front_right_to_stand_front_left", position = vector():set(0,0,0), body_state = move.crouch, movement_type = move.run, }, }, } } }, { vertex0 = "crouch_front_right", vertex1 = "stand_front_right", weight = 1.1, actions = { { precondition_functor = "smart_covers.script_functor_true", precondition_params = "", actions = { { animation = "crouch_front_right_to_stand_front_right", position = vector():set(0,0,0), body_state = move.crouch, movement_type = move.run, }, }, } } }, { vertex0 = "crouch_front_left", vertex1 = "crouch_front", weight = 1.1, actions = { { precondition_functor = "smart_covers.script_functor_true", precondition_params = "", actions = { { animation = "crouch_front_left_to_crouch_front", position = vector():set(0,0,0), body_state = move.crouch, movement_type = move.run, }, }, } } }, { vertex0 = "crouch_front_left", vertex1 = "crouch_front_right", weight = 1.1, actions = { { precondition_functor = "smart_covers.script_functor_true", precondition_params = "", actions = { { animation = "crouch_front_left_to_crouch_front_right", position = vector():set(0,0,0), body_state = move.crouch, movement_type = move.run, }, }, } } }, { vertex0 = "crouch_front_left", vertex1 = "stand_front_left", weight = 1.1, actions = { { precondition_functor = "smart_covers.script_functor_true", precondition_params = "", actions = { { animation = "crouch_front_left_to_stand_front_left", position = vector():set(0,0,0), body_state = move.crouch, movement_type = move.run, }, }, } } }, { vertex0 = "crouch_front_left", vertex1 = "stand_front_right", weight = 1.1, actions = { { precondition_functor = "smart_covers.script_functor_true", precondition_params = "", actions = { { animation = "crouch_front_left_to_stand_front_right", position = vector():set(0,0,0), body_state = move.crouch, movement_type = move.run, }, }, } } }, { vertex0 = "stand_front_left", vertex1 = "crouch_front", weight = 1.1, actions = { { precondition_functor = "smart_covers.script_functor_true", precondition_params = "", actions = { { animation = "stand_front_left_to_crouch_front", position = vector():set(0,0,0), body_state = move.crouch, movement_type = move.run, }, }, } } }, { vertex0 = "stand_front_left", vertex1 = "crouch_front_left", weight = 1.1, actions = { { precondition_functor = "smart_covers.script_functor_true", precondition_params = "", actions = { { animation = "stand_front_left_to_crouch_front_left", position = vector():set(0,0,0), body_state = move.crouch, movement_type = move.run, }, }, } } }, { vertex0 = "stand_front_left", vertex1 = "crouch_front_right", weight = 1.1, actions = { { precondition_functor = "smart_covers.script_functor_true", precondition_params = "", actions = { { animation = "stand_front_left_to_crouch_front_right", position = vector():set(0,0,0), body_state = move.crouch, movement_type = move.run, }, }, } } }, { vertex0 = "stand_front_left", vertex1 = "stand_front_right", weight = 1.1, actions = { { precondition_functor = "smart_covers.script_functor_true", precondition_params = "", actions = { { animation = "stand_front_left_to_stand_front_right", position = vector():set(0,0,0), body_state = move.crouch, movement_type = move.run, }, }, } } }, { vertex0 = "stand_front_right", vertex1 = "crouch_front", weight = 1.1, actions = { { precondition_functor = "smart_covers.script_functor_true", precondition_params = "", actions = { { animation = "stand_front_right_to_crouch_front", position = vector():set(0,0,0), body_state = move.crouch, movement_type = move.run, }, }, } } }, { vertex0 = "stand_front_right", vertex1 = "crouch_front_left", weight = 1.1, actions = { { precondition_functor = "smart_covers.script_functor_true", precondition_params = "", actions = { { animation = "stand_front_right_to_crouch_front_left", position = vector():set(0,0,0), body_state = move.crouch, movement_type = move.run, }, }, } } }, { vertex0 = "stand_front_right", vertex1 = "crouch_front_right", weight = 1.1, actions = { { precondition_functor = "smart_covers.script_functor_true", precondition_params = "", actions = { { animation = "stand_front_right_to_crouch_front_right", position = vector():set(0,0,0), body_state = move.crouch, movement_type = move.run, }, }, } } }, { vertex0 = "stand_front_right", vertex1 = "stand_front_left", weight = 1.1, actions = { { precondition_functor = "smart_covers.script_functor_true", precondition_params = "", actions = { { animation = "stand_front_right_to_stand_front_left", position = vector():set(0,0,0), body_state = move.crouch, movement_type = move.run, }, }, } } }, --' Анимации выхода из бойниц. { vertex0 = "crouch_front_left", vertex1 = "", weight = 1.1, actions = { --[[{ precondition_functor = "smart_covers.script_functor_jump", precondition_params = "", actions = { { animation = "loophole_1_jump_0", position = vector():set(-3,0,0), body_state = move.crouch, movement_type = move.run, }, }, },]]-- { precondition_functor = "smart_covers.script_functor_true", precondition_params = "", actions = { { animation = "", position = vector():set(0,0,0), body_state = move.crouch, movement_type = move.run, }, }, } } }, { vertex0 = "crouch_front", vertex1 = "", weight = 1.1, actions = { --[[{ precondition_functor = "smart_covers.script_functor_jump", precondition_params = "", actions = { { animation = "loophole_2_jump_0", position = vector():set(-3,0,0), body_state = move.crouch, movement_type = move.run, }, }, },]]-- { precondition_functor = "smart_covers.script_functor_true", precondition_params = "", actions = { { animation = "", position = vector():set(0,0,0), body_state = move.crouch, movement_type = move.run, }, }, } } }, { vertex0 = "crouch_front_right", vertex1 = "", weight = 1.1, actions = { --[[{ precondition_functor = "smart_covers.script_functor_jump", precondition_params = "", actions = { { animation = "loophole_3_jump_0", position = vector():set(-3,0,0), body_state = move.crouch, movement_type = move.run, }, }, },]]-- { precondition_functor = "smart_covers.script_functor_true", precondition_params = "", actions = { { animation = "", position = vector():set(0,0,0), body_state = move.crouch, movement_type = move.run, }, }, } } }, { vertex0 = "stand_front_left", vertex1 = "", weight = 1.1, actions = { { precondition_functor = "smart_covers.script_functor_true", precondition_params = "", actions = { { animation = "", position = vector():set(0,0,0), body_state = move.crouch, movement_type = move.run, }, }, } } }, { vertex0 = "stand_front_right", vertex1 = "", weight = 1.1, actions = { { precondition_functor = "smart_covers.script_functor_true", precondition_params = "", actions = { { animation = "", position = vector():set(0,0,0), body_state = move.crouch, movement_type = move.run, }, }, } } }, } } end