Bully-Board

Bully Modding Section => Modding Questions/Help => Modding Questions/Help Archives => Topic started by: embas10 on May 05, 2015, 07:04:07 AM

Title: how to doing strafe??
Post by: embas10 on May 05, 2015, 07:04:07 AM
Many one can do this thing after i back to BB, is there a tutorial to do this thing?
Title: Re: how to doing strafe??
Post by: Owais Qadri on May 05, 2015, 03:20:00 PM
Have you tried online?
Title: Re: how to doing strafe??
Post by: DahCobra33 on May 05, 2015, 09:25:16 PM
Explain yourself...You mean,how to change strafes?
there must be some tutorial about it 'round here...
Title: Re: how to doing strafe??
Post by: embas10 on May 05, 2015, 09:44:03 PM
I had search everythig about strafe around here,but nothing i found how to do it.
Yeah i want to change a strafe.
Title: Re: how to doing strafe??
Post by: DahCobra33 on May 05, 2015, 09:48:25 PM
If there aren't any tutorials,I can't help too much,sorry
Title: Re: how to doing strafe??
Post by: deadpoolXYZ on May 06, 2015, 03:47:52 PM
Do you mean how everyone can use the fighting styles strafes rather than the cheering/spectating fight strafes?
Title: Re: how to doing strafe??
Post by: embas10 on May 06, 2015, 10:45:21 PM
Do you mean how everyone can use the fighting styles strafes rather than the cheering/spectating fight strafes?

No i mean, how to make jimmy or gPlayer can do other fighting style strafe,like
P_striker_a,g_striker_a, and etc.
Title: Re: how to doing strafe??
Post by: Enderman on May 07, 2015, 12:10:26 AM
Do you mean how everyone can use the fighting styles strafes rather than the cheering/spectating fight strafes?

No i mean, how to make jimmy or gPlayer can do other fighting style strafe,like
P_striker_a,g_striker_a, and etc.
Here's a example just copy and paste in ur luascript if u don't have it
Code: [Select]
  elseif 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
  UpdateTextQueue()
    Wait(0)
  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
If you want  to change other strafes just edit this
  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")
  Just change P_Striker_A to G_Striker_A or other styles
The first line is the strafe the second line if you use Nemesis style then you strafe it will has a anthoer styles (i'm bad at English forgive me)
Title: Re: how to doing strafe??
Post by: AfterLife on May 07, 2015, 04:55:40 AM
Do you mean how everyone can use the fighting styles strafes rather than the cheering/spectating fight strafes?

No i mean, how to make jimmy or gPlayer can do other fighting style strafe,like
P_striker_a,g_striker_a, and etc.
Here's a example just copy and paste in ur luascript if u don't have it
Code: [Select]
  elseif 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
  UpdateTextQueue()
    Wait(0)
  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
If you want  to change other strafes just edit this
  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")
  Just change P_Striker_A to G_Striker_A or other styles
The first line is the strafe the second line if you use Nemesis style then you strafe it will has a anthoer styles (i'm bad at English forgive me)
No look down!!! 0/10.