Bully-Board

Bully Modding Section => Modding Questions/Help => Modding Questions/Help Archives => Topic started by: bullymodder74 on January 18, 2016, 08:46:22 PM

Title: Help
Post by: bullymodder74 on January 18, 2016, 08:46:22 PM
please when I put the strafe with the fight nodes does not work strafe only works nodes someone to help me fight for the strafe work together with the photo of talk about fighting and strafe and codes of fight? I want to work the SoundPlayScriptedSpeechEvent (GPlayer, "FIGHT") and strafe and node fights?


:o

Code: [Select]
[code][code][code][code][codeMissionSetup = function()
  local l_1_0 = 270
  local l_1_1 = -110
  local l_1_2 = 6.4000000953674
 end
 
function MissionSetup()
 PlayerSetHealth(5000)
 AreaTransitionXYZ(0, 270, -110, 6)
 SoundPlayStream("MS_FightMid02.rsm", 0.6)
 PlayerSwapModel("JK_LuisWrestle")
 PedSetAITree(gPlayer, "/Global/PlayerAI","Act/PlayerAI.act")
 TextPrintString("Luis Wrestling Mod", 4, 1)
 WaitSkippable(5000)
 TextPrintString("When mod is at 75% Progress, I will certainly release a J_Striker_A", 4, 1)
 WaitSkippable(5000)
 TextPrintString("When this mod is 100% complete, I'll upload it to Bully Board :D", 3, 1)
 WaitSkippable(5000)
 TextPrintString("Fin This Mod Bully Modder done for me 74 Enjoy!", 3, 1) -- wtf
end

function MissionCleanup()
 collectgarbage()
end

function main()
 while true do
  if IsButtonPressed(8,0) then
   SoundPlayScriptedSpeechEvent(gPlayer, "FIGHT")
  end
  f_strafe()
  Wait(0)
 end
end




function f_strafe()
 if IsButtonPressed(10,0) and IsMoving() and not isStrafing and not PedIsValid(PedGetGrappleTargetPed(gPlayer)) then
  PedSetActionNode(gPlayer,"/Global/J_Grappler_A/Default_KEY/ExecuteNodes/LocomotionOverride/Combat/CombatBasic","Act/Anim/J_Grappler_A.act")
  isStrafing = true
 elseif (not IsButtonPressed(10,0) or not IsMoving()) and isStrafing and not PedIsValid(PedGetGrappleTargetPed(gPlayer)) then
  PedSetActionTree(gPlayer,"/Global/J_Grappler_A", "Act/Anim/J_Grappler_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


 F_MissionSetup = function()

  LoadActionTree("J_Grappler_A")
 
  PlayerSetControl(1)
 
  DisablePunishmentSystem(false)
 
 
 
  ClockSet(8, 30)
 
  ClockSetTickRate(0.0060000000521541)
 
  LaunchScript("SObjTest.lua")

end

MissionCleanup = function()
end
 

 
main = function()
  F_MissionSetup()
  gMissionRunning = true
  while gMissionRunning do
  elseif IsButtonPressed(3,0) then
  PedSetActionNode(gPlayer, "/Global/Ambient/HarassMoves/HarassShort/Shoves", "Act/Conv/Ambient.act")
  elseif IsButtonPressed(0,0) then
  PedSetActionNode(gPlayer, "/Global/Actions/Grapples/Front/Grapples/GrappleMoves/BearHug","Globals/G_Grappler_A.act")
  elseif IsButtonPressed(3,0) then
  PedSetActionNode(gPlayer, "/Global/Actions/Grapples/Mount/GrappleMoves/Headbutt","Globals/DO_Striker_A.act")
  elseif IsButtonPressed(6,0) and IsButtonPressed(7,0) then
  PedSetActionNode(gplayer, "/Global/Player/Attacks/Strikes/RunningAttacks/HeavyAttacks/RunShoulder","Act/Player.act")
 elseif IsButtonPressed(6,0) then
 PedSetActionNode(gplayer,  "/Global/J_Grappler_A/Offense/Short/Strikes/HeavyAttacks/RightPunch/Axehandle","act/anim/J_Grappler_A.act")
  end
  UpdateTextQueue()
    Wait(0)
   end
  end]
Title: Re: Help
Post by: Unknownsoldier on January 18, 2016, 10:26:38 PM
i'm not helping u with this one cause u copied that second "main()" function from someone else because I've help kovn with this exact same script.
Title: Re: Help
Post by: bullymodder74 on January 18, 2016, 10:34:57 PM
i'm not helping u with this one cause u copied that second "main()" function from someone else because I've help kovn with this exact same script.


I do not understand that is to say
Title: Re: Help
Post by: DahCobra33 on January 18, 2016, 11:50:17 PM
You made 3 goddamn topics called the goddamn same....WHY DON'T YOU PUT EVERYTHING ON A SINGLE TOPIC?

And why do you keep asking if neither they understand you,nor you do understand them?
Title: Re: Help
Post by: Unknownsoldier on January 19, 2016, 12:45:57 AM
AND. Why doesn't anyone try typing their own mods? Stop copying and pasting codes from other scripts.
Title: Re: Help
Post by: Bully_Lover13 on January 19, 2016, 05:09:00 AM
:o