58 lines
No EOL
1.4 KiB
Text
58 lines
No EOL
1.4 KiB
Text
local temp = {}
|
|
if (move ~= nil) then
|
|
temp = move
|
|
end
|
|
move = temp
|
|
|
|
function get_smart_cover()
|
|
return {
|
|
need_weapon = false,
|
|
loopholes = {
|
|
smart_covers_loophole_animpoint_stay_table.get_loophole("animpoint_stay_table", vector():set(0,0,0), vector():set(0,0,-1), vector():set(0,0,-1))
|
|
},
|
|
|
|
|
|
transitions = {
|
|
--' Àíèìàöèè âõîäà â áîéíèöû
|
|
{
|
|
vertex0 = "",
|
|
vertex1 = "animpoint_stay_table",
|
|
weight = 1.0,
|
|
actions = {
|
|
{
|
|
precondition_functor = "smart_covers.script_functor_true",
|
|
precondition_params = "",
|
|
actions = {
|
|
{
|
|
animation = "animpoint_stay_table_in_1",
|
|
position = vector():set(0,0,0),
|
|
body_state = move.crouch, movement_type = move.run,
|
|
},
|
|
},
|
|
}
|
|
}
|
|
},
|
|
|
|
|
|
--' Àíèìàöèè âûõîäà èç áîéíèö.
|
|
{
|
|
vertex0 = "animpoint_stay_table",
|
|
vertex1 = "",
|
|
weight = 1.1,
|
|
actions = {
|
|
{
|
|
precondition_functor = "smart_covers.script_functor_true",
|
|
precondition_params = "",
|
|
actions = {
|
|
{
|
|
animation = "animpoint_stay_table_out_1",
|
|
position = vector():set(0,0,0),
|
|
body_state = move.standing, movement_type = move.run,
|
|
},
|
|
},
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
end |