Bully-Board

Bully Modding Section => Modding Questions/Help => Modding Questions/Help Archives => Topic started by: denizthebest on July 10, 2015, 05:48:55 PM

Title: How to use johnny 3 hit combo
Post by: denizthebest on July 10, 2015, 05:48:55 PM
Hey guys how can i use johnny 3 hit combo (not the one he spits on enemy) any help ?    ;) ;)
Title: Re: How to use johnny 3 hit combo
Post by: Enderman on July 10, 2015, 08:51:31 PM
Here is Johnny Boss Fully Style this require Super Mod 4 you can edit the control you want :
main = function()
  F_MissionSetup()
  F_LoadAllAnim()
  gMissionRunning = true
  while gMissionRunning do
  if IsButtonPressed(15,0) then
  PedSetActionTree(gPlayer,"/Global/G_Striker_A","Act/Anim/G_Striker_A.act")
  elseif IsButtonPressed(10,0) and IsButtonPressed(9,0) then
  PedSetActionNode(gPlayer,"/Global/G_Melee_A/Offense/Medium","Act/Anim/G_Melee_A.act")
  elseif IsButtonPressed(10,0) and IsButtonPressed(1,0) then
  PedSetActionNode(gPlayer, "/Global/G_Striker_A/Offense/Medium", "Act/Anim/G_Striker_A.act")
  elseif IsButtonPressed(10,0) and IsButtonBeingPressed(8,0) then
  PedSetActionNode(gPlayer, "/Global/P_Striker_A/Defense/EvadeBack/EvadeDuck", "Act/Anim/P_Strker_A.act")
  elseif IsButtonPressed(6,0) and IsButtonPressed(7,0) then
  PedSetActionNode(gPlayer, "/Global/G_Johnny/Offense/Short/Strikes/HeavyKick/HeavyKick", "Act/anim/G_Johnny.act")
  elseif IsButtonPressed(10,0) and IsButtonPressed(0,0) then
  PedSetActionTree(gPlayer, "/Global/G_Johnny", "Act/Anim/G_Johnny.act")
  elseif IsButtonBeingPressed(12,0) then
  PedSetActionNode(gPlayer, "/Global/G_Johnny/Offense/Short/Strikes/LightAttacks", "Act/Anim/G_Johnny.act")
  elseif IsButtonBeingPressed(3,0) then
  PedSetActionNode(gPlayer, "/Global/G_Johnny/Offense/Special/SpecialActions/Grapples/Dash", "Act/Anim/G_Johnny.act")
  elseif IsButtonPressed(10,0) and IsButtonBeingPressed(8,0) then
  PedSetActionNode(gPlayer, "/Global/G_Johnny/Offense/Short/Strikes/HeavyKick/HeavyKick", "Act/Anim/G_Johnny.act")
  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/G_Melee_A", "Act/Anim/G_Melee_A.act")
  isStrafing = false
  elseif isStrafing then
  local x,y,z = PedGetPosXYZ(PedGetTargetPed())
  PedFaceXYZ(gPlayer,x,y,z)
  end
  UpdateTextQueue()
    Wait(0)
  end
end
Title: Re: How to use johnny 3 hit combo
Post by: deadpoolXYZ on July 10, 2015, 09:39:08 PM
this require Super Mod 4

LoadAnimationGroup is your friend.
Title: Re: How to use johnny 3 hit combo
Post by: denizthebest on July 11, 2015, 07:42:50 AM
Here is Johnny Boss Fully Style this require Super Mod 4 you can edit the control you want :
main = function()
  F_MissionSetup()
  F_LoadAllAnim()
  gMissionRunning = true
  while gMissionRunning do
  if IsButtonPressed(15,0) then
  PedSetActionTree(gPlayer,"/Global/G_Striker_A","Act/Anim/G_Striker_A.act")
  elseif IsButtonPressed(10,0) and IsButtonPressed(9,0) then
  PedSetActionNode(gPlayer,"/Global/G_Melee_A/Offense/Medium","Act/Anim/G_Melee_A.act")
  elseif IsButtonPressed(10,0) and IsButtonPressed(1,0) then
  PedSetActionNode(gPlayer, "/Global/G_Striker_A/Offense/Medium", "Act/Anim/G_Striker_A.act")
  elseif IsButtonPressed(10,0) and IsButtonBeingPressed(8,0) then
  PedSetActionNode(gPlayer, "/Global/P_Striker_A/Defense/EvadeBack/EvadeDuck", "Act/Anim/P_Strker_A.act")
  elseif IsButtonPressed(6,0) and IsButtonPressed(7,0) then
  PedSetActionNode(gPlayer, "/Global/G_Johnny/Offense/Short/Strikes/HeavyKick/HeavyKick", "Act/anim/G_Johnny.act")
  elseif IsButtonPressed(10,0) and IsButtonPressed(0,0) then
  PedSetActionTree(gPlayer, "/Global/G_Johnny", "Act/Anim/G_Johnny.act")
  elseif IsButtonBeingPressed(12,0) then
  PedSetActionNode(gPlayer, "/Global/G_Johnny/Offense/Short/Strikes/LightAttacks", "Act/Anim/G_Johnny.act")
  elseif IsButtonBeingPressed(3,0) then
  PedSetActionNode(gPlayer, "/Global/G_Johnny/Offense/Special/SpecialActions/Grapples/Dash", "Act/Anim/G_Johnny.act")
  elseif IsButtonPressed(10,0) and IsButtonBeingPressed(8,0) then
  PedSetActionNode(gPlayer, "/Global/G_Johnny/Offense/Short/Strikes/HeavyKick/HeavyKick", "Act/Anim/G_Johnny.act")
  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/G_Melee_A", "Act/Anim/G_Melee_A.act")
  isStrafing = false
  elseif isStrafing then
  local x,y,z = PedGetPosXYZ(PedGetTargetPed())
  PedFaceXYZ(gPlayer,x,y,z)
  end
  UpdateTextQueue()
    Wait(0)
  end
end


:( i couldnt make it work can you make a open source script for me so i can see where i did things wrong