News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..


Author Topic: Help  (Read 2111 times)

0 Members and 1 Guest are viewing this topic.

Offline bullymodder74

  • Jr. Member
  • **
  • Posts: 51
  • Gender: Male
  • Bully Mods
    • View Profile
Help
« 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]
« Last Edit: January 18, 2016, 08:48:15 PM by bullymodder74 »

Offline Unknownsoldier

  • Hero Member
  • ****
  • Posts: 2,773
    • View Profile
Re: Help
« Reply #1 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.

Offline bullymodder74

  • Jr. Member
  • **
  • Posts: 51
  • Gender: Male
  • Bully Mods
    • View Profile
Re: Help
« Reply #2 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

Offline DahCobra33

  • Decepticon
  • Hero Member
  • ****
  • Posts: 3,057
  • Gender: Male
  • I don't deal with psychos,I put em' away...
    • View Profile
Re: Help
« Reply #3 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?

Offline Unknownsoldier

  • Hero Member
  • ****
  • Posts: 2,773
    • View Profile
Re: Help
« Reply #4 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.

Offline Bully_Lover13

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Re: Help
« Reply #5 on: January 19, 2016, 05:09:00 AM »