Posts: 578
Threads: 40
Joined: Dec 2016
I really can't remember if this was GTA V or GTA SA, but what's the ped animation that happens when you withdraw a weapon in the single player?
Posts: 849
Threads: 4
Joined: Oct 2016
Reputation:
0
WEAPONS(idk if any of these will help you tho)
SHP_1H_Lift
SHP_1H_Lift_End
SHP_1H_Ret
SHP_1H_Ret_S
SHP_2H_Lift
SHP_2H_Lift_End
SHP_2H_Ret
SHP_2H_Ret_S
SHP_Ar_Lift
SHP_Ar_Lift_End
SHP_Ar_Ret
SHP_Ar_Ret_S
SHP_G_Lift_In
SHP_G_Lift_Out
SHP_Tray_In
SHP_Tray_Out
SHP_Tray_Pose
Posts: 578
Threads: 40
Joined: Dec 2016
Quote:
Originally Posted by Eoussama
I use the block animation, I find it the closest:
PHP код:
ApplyAnimation(playerid, "PED", "FIGHTA_BLOCK", 4.1, 0, 0, 0, 0, 480, 1);
One thing tho! If the animation was applied while the player is running, they won't be able to stop until the animation is finished, it can be really bad in situations where you might fall from high places.
|
Hm, gonna try getting the sprint status by their velocity and then apply the animation? I.e:
PHP код:
new Float:x, Float:y, Float:z, Float:units;
GetPlayerVelocity(playerid, x, y, z);
if(floatsqroot(floatabs(floatpower(x + y + z, 2.0))) < 0.1552086)
//apply anim
Note that I might have calculated horribly wrong.