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


Author Topic: Help  (Read 1482 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 17, 2016, 10:32:43 PM »
When I go to the game and want the character talk not talk to me eh pressed the skip button does not work and put the strafe attacks but to go to the game only works because the buttons and strafe not? I just want the Strafe worked with codes eh fights and since the character talk?

ImportScript("\\Library\\LibTable.lua")
ImportScript("\\Library\\LibPed.lua")
local l_0_0 = false
 
MissionSetup = function()
  local l_1_0 = 270
  local l_1_1 = -110
  local l_1_2 = 6.4000000953674
 
  PlayerSetHealth(5000)
  AreaTransitionXYZ(0, l_1_0, l_1_1, l_1_2)
  SoundPlayStream("MS_FightMid02.rsm", 0.69999998807907)

end


if IsButtonPressed(6,0) then
SoundPlayScriptedSpeechEvent(gplayer, "FIGHT", 0, "large")
end


 PlayerSwapModel("JK_LuisWrestle")

 PedSetAITree(gPlayer, "/Global/PlayerAI","Act/PlayerAI.act")
 
  TextPrintString("Luis Wrestling Mod", 4, 1)
  Wait("5000")
  TextPrintString("Even Mod In Progress By 75% J_Striker_A will certainly", 4, 1)
  Wait("5000")
  TextPrintString("This Mod If 100% complete What I'll upload the page Bully Board :D", 3, 1)
  Wait("5000")
  TextPrintString("Fin This Mod Bully Modder done for me 74 Enjoy!", 3, 1)


if IsButtonPressed(7,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(7,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)

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
end



« Last Edit: January 17, 2016, 10:35:10 PM by bullymodder74 »

Offline Unknownsoldier

  • Hero Member
  • ****
  • Posts: 2,773
    • View Profile
Re: Help
« Reply #1 on: January 17, 2016, 11:24:30 PM »
here i fixed ur grammar too a bit
Code: [Select]
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(4000)
TextPrintString("When mod is at 75% Progress, I will certainly release a J_Striker_A", 4, 1)
WaitSkippable(4000)
TextPrintString("When this mod is 100% complete, I'll upload it to Bully Board :D", 3, 1)
WaitSkippable(3000)
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(6,0) then
SoundPlayScriptedSpeechEvent(gPlayer, "FIGHT")
end
f_strafe()
Wait(0)
end
end

function f_strafe()
if IsButtonPressed(7,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(7,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