Lua scripts, animations, and everything associated with lua (Mafia 2)
Hello! Today I decided to create a theme for people who rummage a little bit in Lua. Here you and I will be posting the scripts (I like animation)The first animation will allow you to become homeless for free and without SMS.
As you understand, this is an animation of the homeless. It is in the game files (more precisely in the sds anims_city_leto)
The script itself:
ply=game.game:GetActivePlayer()
DelayBuffer:Insert(function(l_1_0)
CommandBuffer:Insert(l_6_0,{
function(l_1_0)return ply:SetControlStyle(enums.ControlStyle.LOCKED)end,
function(l_2_0)return ply:AnimPlay(sc_homeles_4_in, false)end,
function(l_2_0)return ply:AnimPlay(sc_homeles_4_a, false)end,
function(l_2_0)return ply:AnimPlay(sc_homeles_4_b, false)end,
function(l_2_0)return ply:AnimPlay(sc_homeles_4_c, false)end,
function(l_2_0)return ply:AnimPlay(sc_homeles_4_out, false)end,
function(l_20_0)return ply:SetControlStyle(enums.ControlStyle.FREE)end})
end,{l_1_0},500,1,false)
You for a few seconds will become homeless.
With the help of some changes in the script, you can lengthen the animation and it will be longer.
I dug in the game files. - this script is not in the original game) this is a script from a mod)
Evgeniya
And actually, I originally wrote about the animation that I found (dug), but not about the script, the script for the injector, and in it there are names of the animations of the homeless.
Evgeniya
function(l_2_0)return ply:AnimPlay(sc_homeles_4_in, false)end,
function(l_2_0)return ply:AnimPlay(sc_homeles_4_a, false)end,
function(l_2_0)return ply:AnimPlay(sc_homeles_4_b, false)end,
function(l_2_0)return ply:AnimPlay(sc_homeles_4_c, false)end,
function(l_2_0)return ply:AnimPlay(sc_homeles_4_out, false)end,
In these lines the animation of the bum. sc_homeles_4_...