Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Animation for human entity
#61
Ok B1010
but there are much more animation for phone.

and when you start an animation with "in" ("sc_phone_NPC_in")
you must finish with "out" ("sc_phone_NPC_out")

if not, Vito keeps the phone in his hand.
#62
? ??? ? ??? ???? ??? ????? ? ??? ???????, ??? ? ??? ???? ??? ? ??? ?????? ??? ???.

??? ????????? ??? ??? ?? Sanek-GMNC ??? ???? ??? ??? ???? ??? ?????:
??? ??? ??? ??
ply=game.game:GetActivePlayer()
ply:SetControlStyle(enums.ControlStyle.LOCKED)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_wheel_in", false)end,{l_1_0},500,1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_wheel_mount_in", false)end,{l_1_0},3000,1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_wheel_mount_loop", false)end,{l_1_0},5000,1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_wheel_mount_out", false)end,{l_1_0},7000,1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_wheel_out", false)end,{l_1_0},10000,1,false)
DelayBuffer:Insert(function(l_1_0)ply:SetControlStyle(enums.ControlStyle.FREE)end,{l_1_0},11000,1,false)

(???????? ??? ???? ??? ??? ??? ?????)
ply=game.game:GetActivePlayer()
ply:SetControlStyle(enums.ControlStyle.LOCKED)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_wheel_in", false)end,{l_1_0},500,1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_wheel_mount_in", false)end,{l_1_0},2500,1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_wheel_mount_loop", false)end,{l_1_0},5000,1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_wheel_mount_loop", false)end,{l_1_0},6800,1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_wheel_mount_loop", false)end,{l_1_0},9000,1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_wheel_mount_out", false)end,{l_1_0},11000,1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_wheel_out", false)end,{l_1_0},13000,1,false)
DelayBuffer:Insert(function(l_1_0)ply:SetControlStyle(enums.ControlStyle.FREE)end,{l_1_0},15000,1,false)

?????? ??? ??? ? ??? ??????? ??? ????
ply=game.game:GetActivePlayer()
ply:SetControlStyle(enums.ControlStyle.LOCKED)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_police_gun_bribe_S", false)end,{l_1_0},500,1,false)
DelayBuffer:Insert(function(l_1_0)ply:SetControlStyle(enums.ControlStyle.FREE)end,{l_1_0},15000,1,false)
??? ??? ??? ??? ? ??? ?????? ??? ????
ply=game.game:GetActivePlayer()
ply:SetControlStyle(enums.ControlStyle.LOCKED)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_police_shotgun_bribe_S", false)end,{l_1_0},500,1,false)
DelayBuffer:Insert(function(l_1_0)ply:SetControlStyle(enums.ControlStyle.FREE)end,{l_1_0},15000,1,false)

?????? ??? ???
ply=game.game:GetActivePlayer()
ply:SetControlStyle(enums.ControlStyle.LOCKED)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_newstand_sale_M", false)end,{l_1_0},500,1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_newspaper_in", false)end,{l_1_0},4900,1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_newspaper_stat_a", false)end,{l_1_0},12000,1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_newspaper_stat_b", false)end,{l_1_0},16000,1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_newspaper_out", false)end,{l_1_0},18000,1,false)
DelayBuffer:Insert(function(l_1_0)ply:SetControlStyle(enums.ControlStyle.FREE)end,{l_1_0},22000,1,false)

(???????? ??? ??? ??? ??? ??? ??? ??? ????? ? ??? ????????????)
ply=game.game:GetActivePlayer()
ply:SetControlStyle(enums.ControlStyle.LOCKED)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_newstand_sale_M", false)end,{l_1_0},500,1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_newspaper_in", false)end,{l_1_0},4500,1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_newspaper_stat_a", false)end,{l_1_0},10000,1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_newspaper_stat_a", false)end,{l_1_0},12000,1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_newspaper_stat_a", false)end,{l_1_0},14000,1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_newspaper_stat_b", false)end,{l_1_0},16000,1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_newspaper_stat_a", false)end,{l_1_0},18000,1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_newspaper_stat_b", false)end,{l_1_0},20000,1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_newspaper_stat_a", false)end,{l_1_0},22000,1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_newspaper_out", false)end,{l_1_0},24000,1,false)
DelayBuffer:Insert(function(l_1_0)ply:SetControlStyle(enums.ControlStyle.FREE)end,{l_1_0},28000,1,false)

???????? ??? ?
ply=game.game:GetActivePlayer()
ply:SetControlStyle(enums.ControlStyle.LOCKED)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_wheel_in", false)end,{l_1_0},500,1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_wheel_out", false)end,{l_1_0},13000,1,false)
DelayBuffer:Insert(function(l_1_0)ply:SetControlStyle(enums.ControlStyle.FREE)end,{l_1_0},15500,1,false)


????
ply=game.game:GetActivePlayer()
ply:SetControlStyle(enums.ControlStyle.LOCKED)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_homeless_6_in", false)end,{l_1_0},500,1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_homeless_6_a", false)end,{l_1_0},4500,1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("ssc_homeless_6_b", false)end,{l_1_0},6500,1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_homeless_6_a", false)end,{l_1_0},7000,1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_homeless_6_out", false)end,{l_1_0},7200,1,false)
DelayBuffer:Insert(function(l_1_0)ply:SetControlStyle(enums.ControlStyle.FREE)end,{l_1_0},19000,1,false)
#63
eXistenZ34
??? ??? ??? ?? ?? ??? ?, ?? ?? ?? ??? ??? ActivateStreamMapLine ??? ??? ?? ??? ??? ? ??? ??? ?? ??? ?????????? ??? ? ??? M2ex.
#64
??? ??? ?? ??? ?????

Code:
ply=game.game:GetActivePlayer()
ply:SetControlStyle(enums.ControlStyle.LOCKED)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_phone_NPC_in", false)end,{l_1_0},500,1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_phone_diall", false)end,{l_1_0},3300,1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_phone_gest_j", false)end,{l_1_0},10000,1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_phone_gest_k", false)end,{l_1_0},12000,1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_phone_gest_f", false)end,{l_1_0},16000,1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_phone_gest_m", false)end,{l_1_0},18000,1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_phone_NPC_out", false)end,{l_1_0},21000,1,false)
DelayBuffer:Insert(function(l_1_0)ply:SetControlStyle(enums.ControlStyle.FREE)end,{l_1_0},25000,1,false)
#65
??? ???? ??? ????? ??? ????

Code:
ply=game.game:GetActivePlayer()
ply:SetControlStyle(enums.ControlStyle.LOCKED)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_woman_smoke_in", false)end,{l_1_0},500,1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_woman_smoke_stat_a", false)end,{l_1_0},10000,1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_woman_smoke_stat_b", false)end,{l_1_0},13000,1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_woman_smoke_stat_c", false)end,{l_1_0},22000,1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_woman_smoke_stat_d", false)end,{l_1_0},30000,1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_woman_smoke_stat_e", false)end,{l_1_0},39000,1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_woman_smoke_out", false)end,{l_1_0},45000,1,false)
DelayBuffer:Insert(function(l_1_0)ply:SetControlStyle(enums.ControlStyle.FREE)end,{l_1_0},50000,1,false)
#66
[size=5:dfo28rx6]New way to write the animations script.

most need to calculate the delay between each animation.

And command to pass through objects.
[/size]


See the front page
#67
eXistenZ34

??? ?? ??? ??????? ??? ???? SetPhysState(enums.PhysicsState.DISABLED)
?? ??? ?? ?? ??? ?? ? ??? ???? ?? ??? ??? ??? ??? ???? ???
??? ???? ??? ??? ??? ?

http://www.youtube.com/watch?v=EXaGwoCi ... e=youtu.be
#68
It's just for animation and not, for to walk around the city.

why, I do not work for 2K Games so i don't know.


Edit : upon reflection it's normal since you are going through everything, including the ground.
#69
??? ? ??? ??? ??? ??? ??? ??? ??? ?? ??? ???
??? ???? ??? ??? ????? ??? ? ??? ???


eXistenZ34
? ??? ? ??? ?????? ? ??? ???? Show Quest Dialog
?? ??? ? ??? ????? 100% ??? ??? ??? ? ??? FR MII ??? ??? 50/50
? ??? ??? ?? ??? ? ??? ????????? ??? ?? ??? ?????? ??? ??? ?????? ??? ???
ingame - ingame_gui_rtr
gui-main - gui-main_dlc_rtr
game_director - fr_game_director
#70
??? ??? ??? ?? ??,???? ??? ??? ??
:SetPhysState(enums.PhysicsState.DISABLED)-????????? ??? ??????????? ? ??? ???????
:SetPhysState(enums.PhysicsState.DYNAMIC)-??????????
:SetPhysState(enums.PhysicsState.KINEMATIC)-????? ??? ???? ?? ??? ?
#71
dandwell

??? ??? ??? ????????! ??? ???
game.game:GetActivePlayer():SetPhysState(enums.PhysicsState.KINEMATIC)

http://www.youtube.com/watch?v=gzpROIvf ... e=youtu.be
#72
i geting this error in the log of the injector

Error loading Lua code into buffer. Error 2
userscript/f12.lua:1: unexpected symbol near 'ï'

is the smoke mod, down of the sit in bench mod in the first pag
#73
Which version of the injector, you use.
#74
eXistenZ34" post=6487":25064vu1 Wrote:Which version of the injector, you use.

the one of this page mafiascene.net/downloads/viewdownload/4-.../88-mafia-2-injector
#75
is the 7 i guess
#76
V7 not good, use only V6. link on the front page brought up to date.
#77
eXistenZ34" post=6517":2p1ululr Wrote:V7 not good, use only V6. link on the front page brought up to date.

now i getting badstate i using de mafia console to create the smoke break script i have windows 7 ultimate 7 32 bits can be something with my pc?
#78
can you upload the smoke break script please i want to smoke in mafia 2 since i'm playing in 2010
#79
@scaletta F1.lua

ply=game.game:GetActivePlayer()
if i==nil then i=0 end i=i+1
if i==4 then i=1 end
if i==1 then ply:SetControlStyle(enums.ControlStyle.LOCKED)CommandBuffer:Insert(l_6_0,{
function(l_1_0)return ply:AnimPlay("sc_man_smoke_in", false)end,
function(l_2_0)return ply:AnimPlay("sc_man_smoke_stat_c", false)end,
function(l_3_0)return ply:SetControlStyle(enums.ControlStyle.FREE)end})end
if i==2 then ply:SetControlStyle(enums.ControlStyle.LOCKED)CommandBuffer:Insert(l_6_0,{
function(l_1_0)return ply:AnimPlay("sc_man_smoke_stat_d", false)end,
function(l_2_0)return ply:AnimPlay("sc_man_smoke_stat_b", false)end,
function(l_3_0)return ply:SetControlStyle(enums.ControlStyle.FREE)end})end
if i==3 then ply:SetControlStyle(enums.ControlStyle.LOCKED)CommandBuffer:Insert(l_6_0,{
function(l_1_0)return ply:AnimPlay("sc_man_smoke_stat_a", false)end,
function(l_2_0)return ply:AnimPlay("sc_man_smoke_out", false)end,
function(l_3_0)return ply:SetControlStyle(enums.ControlStyle.FREE)end})end
#80
It is already in the first page.


Forum Jump:


Users browsing this thread: 1 Guest(s)