I think it's called "haymaker" or "axe kick".
u need to import 2_B.lua script for it work
I was messing around in LUA with some fighting styles, and discovered a few codes that give the player Johnny's haymaker when the left shift/melee button is pressed. here's 3 things you need to make sure you have:
1.
[size=20]
You need to load Johnny's animation group like I showed in the picture.[/size]
2. You must
ONLY set his action tree on Jimmy and set the player action tree exactly 1 second after the action tree code for johnny:
3. You need to make the "main" function
repeat the Johnny haymaker function like I did:
To get a better understanding of this, you can just take a look at this haymaker mod I made a while back:
ImportScript("\\Library\\LibTable.lua") -- imports the LibTable library
ImportScript("\\Library\\LibPed.lua") -- imports the LibPed library
ImportScript("2_B.lua")
MissionSetup = function()
l_0_0 = 1
PlayerSetHealth(100)
AreaTransitionXYZ(0, 270,-110 ,7)
end
F_LoadAnimGroup = function()
LoadAnimationGroup("G_Johnny")
end
F_Haymaker = function()
if IsButtonPressed(6,0) then
PedSetActionTree(gplayer, "/Global/G_Johnny", "Act/Anim/G_Grappler_A.act")
Wait(1000)
PedSetActionTree(gplayer, "/Global/Player", "Act/Player.act")
end
end
main = function()
repeat
F_Haymaker()
Wait(0)
until not Alive
end
Or you can look at this:
EDIT: If you want to bind a different button for this move you can look at the list below:
0 -- Objective Left
1 -- Objective Right
2 -- Zoom In
3 -- Zoom Out
4 -- Select
5 -- Start
6 -- Jimmys Punches
7 -- Running Button
8 -- Jump button
9 -- Jimmys Grab
10 -- Lock on/ Block
11 -- Weapon Selection (Left)
12 -- Fire
13 -- Weapon Selection (Right)
14 -- Camera (Look Back)
15 -- Crouch
List provided by: DaBOSS.