Bully-Board

Bully Modding Section => Modding Questions/Help => Modding Questions/Help Archives => Topic started by: bullymodder74 on September 03, 2015, 07:49:17 PM

Title: prep strafe code ?
Post 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 ? ?
Title: Re: prep strafe code ?
Post by: barca769 on September 05, 2015, 09:03:44 AM
Prep Strafe ?

here
Code: [Select]
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
Title: Re: prep strafe code ?
Post by: Shrimp on September 05, 2015, 09:08:01 AM
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.
Title: Re: prep strafe code ?
Post by: barca769 on September 05, 2015, 09:17:47 AM
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)
Title: Re: prep strafe code ?
Post by: Unknownsoldier on September 05, 2015, 09:38:25 AM
so follow his