Bully-Board
Bully Modding Section => Modding Questions/Help => Modding Questions/Help Archives => Topic started by: bullymodder74 on September 03, 2015, 07:49:17 PM
-
Hi I like to know if someone gives me a prep strafe you can look down someone can pass me ? ?
-
Prep Strafe ?
here
F_Strafe = function()
if IsButtonPressed(10,0) and IsMoving() and not isStrafing and not PedIsValid(PedGetGrappleTargetPed(gPlayer)) then
PedSetActionNode(gPlayer,"/Global/P_Striker_A/Default_KEY/ExecuteNodes/LocomotionOverride/Combat/CombatBasic","Act/Anim/P_Striker_A.act")
isStrafing = true
elseif (not IsButtonPressed(10,0) or not IsMoving()) and isStrafing and not PedIsValid(PedGetGrappleTargetPed(gPlayer)) then
PedSetActionTree(gPlayer,"/Global/P_Striker_A", "Act/Anim/P_Striker_A.act")
isStrafing = false
elseif isStrafing then
local x,y,z = PedGetPosXYZ(PedGetTargetPed())
PedFaceXYZ(gPlayer,x,y,z)
end
end
IsMoving = function()
local s = 0.08
return GetStickValue(16,0) > s or GetStickValue(16,0) < -s or GetStickValue(17,0) > s or GetStickValue(17,0) < -s
end
-
Hi I like to know if someone gives me a prep strafe you can look down someone can pass me ? ?
Again..nobody has a look down strafe, some may have but if am right Barca has a strafe which is not a look-down.
-
For P_Striker_A Evades You can learn on this topic : https://www.bully-board.com/index.php?topic=22636.0 (https://www.bully-board.com/index.php?topic=22636.0)
-
so follow his