e4s-sdk/gamedata/scripts/smart_covers_combat_prone.script
2026-06-17 23:06:51 +03:00

55 lines
1.3 KiB
Text

local temp = {}
if (move ~= nil) then
temp = move
end
move = temp
function get_smart_cover()
return {
loopholes = {
smart_covers_loophole_prone.get_loophole("prone", vector():set(-1,0,0))
},
transitions = {
--' Àíèìàöèè âõîäà â áîéíèöû
{
vertex0 = "",
vertex1 = "prone",
weight = 1.0,
actions = {
{
precondition_functor = "smart_covers.script_functor_true",
precondition_params = "",
actions = {
{
animation = "loophole_9_in_front_0",
position = vector():set(0,0,0),
body_state = move.crouch, movement_type = move.run,
},
},
}
}
},
--' Àíèìàöèè âûõîäà èç áîéíèö.
{
vertex0 = "prone",
vertex1 = "",
weight = 1.1,
actions = {
{
precondition_functor = "smart_covers.script_functor_true",
precondition_params = "",
actions = {
{
animation = "loophole_9_jump_1",
position = vector():set(0,0,0),
body_state = move.crouch, movement_type = move.run,
},
},
}
}
}
}
}
end