Bully-Board

Bully Modding Section => Modding Questions/Help => Modding Questions/Help Archives => Topic started by: bullymodder74 on February 20, 2016, 04:19:45 PM

Title: Activate P_STRIKER_A Evade
Post by: bullymodder74 on February 20, 2016, 04:19:45 PM
 It is as well as activates P_Striker_A EVADES OR I am wrong is another way ? I am trying to activate P_Striker_A but the functions are not activated  :confused:


Code: [Select]
function MissionSetup()
 PlayerSetHealth(9000)
 AreaTransitionXYZ(0, 270, -110, 6)
 SoundPlayStream("MS_FightingPreps.rsm", 0.6)
 PedSetAITree(gPlayer, "/Global/PlayerAI","Act/PlayerAI.act")
 PlayerSwapModel("PRH1a_Tad")
 TextPrintString("P_Striker_A Evade", 4, 1)
 Wait(4000)
 TextPrintString("By: Bully Modder74", 4, 1)
 Wait(4000)
end



F_Evade = function()
F_FightingStyle()
PedSetStatsType(gPlayer, "STAT_P_BOXING_Bif")
local gplayer = PedGetTargetPed(gPlayer)
PlayerSetControl(0)
   PedSetAITree(gPlayer,"/Global/AI", "Act/AI.act")
    PedAttack(gPlayer, gplayer, 1)
     PedSetFaction(gPlayer, 5)
      PedOverrideStat(gPlayer, 12, 0)
       PedOverrideStat(gPlayer, 8, 0)
        PedOverrideStat(gPlayer, 13, 100)
         Wait("0")
          PlayerSetControl(1)
           PedSetAITree(gPlayer, "/Global/PlayerAI", "Act/PlayerAI.act")
            PedMakeAmbient(gPlayer, false)
             PedLockTarget(gPlayer, -1)
              PedStop(gPlayer)
               PedSetFaction(gPlayer, 13)
end

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


function F_FightingStyle()
  if IsButtonPressed(0,0) then
  PedSetActionNode(gPlayer, "/Global/P_Striker_A/Defense/Evade/EvadeCounter","act/anim/P_Striker_A.act")
   elseif IsButtonPressed(1,0) then
  PedSetActionNode(gPlayer, "/Global/P_Striker_A/Defense/Evade/EvadeBack","act/anim/P_Striker_A.act")
 end
end


But I want to activate as activate without the Ai

Code: [Select]
F_Evade = function()
PedSetStatsType(gPlayer, "STAT_P_STRIKER_B")
local Ped = PedGetTargetPed(gPlayer)
PedSetAITree(gPlayer,"/Global/AI", "Act/AI/AI.act")
  PlayerSetControl(0)
    PedAttack(gPlayer, Ped, 1)
     PedSetFaction(gPlayer, 5)
      PedOverrideStat(gPlayer, 12, 0)
       PedOverrideStat(gPlayer, 8, 0)
        PedOverrideStat(gPlayer, 13, 100)
         Wait(500)
          PlayerSetControl(1)
           PedSetAITree(gPlayer, "/Global/PlayerAI", "Act/PlayerAI.act")
            PedMakeAmbient(gPlayer, false)
             PedLockTarget(gPlayer, -1)
               PedSetFaction(gPlayer, 13)
 end




Thanks To GreenOMNiTRIX
for post P_Striker_A Evade
Title: Re: Activate P_STRIKER_A Evade
Post by: Bully_Lover13 on February 23, 2016, 07:48:40 AM
As your personal text says.

"xD" - bullymodder74

If you can't LUA mod, then read tutorials.
Title: Re: Activate P_STRIKER_A Evade
Post by: bullymodder74 on February 23, 2016, 11:02:54 AM
As your personal text says.

"xD" - bullymodder74

If you can't LUA mod, then read tutorials.

No no I have already discovered how to activate P_striker_A evades
Title: Re: Activate P_STRIKER_A Evade
Post by: Bully_Lover13 on February 24, 2016, 03:53:04 AM
As your personal text says.

"xD" - bullymodder74

If you can't LUA mod, then read tutorials.

No no I have already discovered how to activate P_striker_A evades

Oh really? Then which button did you bind it to? This fake AI evade needs to be binded to a specific button.
Title: Re: Activate P_STRIKER_A Evade
Post by: bullymodder74 on February 24, 2016, 11:58:29 AM
As your personal text says.

"xD" - bullymodder74

If you can't LUA mod, then read tutorials.

No no I have already discovered how to activate P_striker_A evades

Oh really? Then which button did you bind it to? This fake AI evade needs to be binded to a specific button.


what  That button could be?

Title: Re: Activate P_STRIKER_A Evade
Post by: bullymodder74 on February 24, 2016, 12:00:16 PM
As your personal text says.

"xD" - bullymodder74

If you can't LUA mod, then read tutorials.

No no I have already discovered how to activate P_striker_A evades

Oh really? Then which button did you bind it to? This fake AI evade needs to be binded to a specific button.


what  That button could be?


 I have it in the Crouch
Title: Re: Activate P_STRIKER_A Evade
Post by: Unknownsoldier on February 24, 2016, 02:14:06 PM
(http://i34.photobucket.com/albums/d149/Huls/Funny%20Stuff/MichaelJacksonEatingPopcorn.gif)
sits back and watches the show

Dude crouch is the worst button to bind shit to! I dunno why lemon always did it like that but it's horrible. It's better to make them feel natural.

Once you remember every button ID it'll be better.

And you guys are making a quote wall, which is unnecessary. there's 2 of you talking here, obviously you're talking to that person...

WAIT WTF WHY ARE YOU COPYING MY AND GREENOMNITRIX(josh)'S FUNCTIONS!?

THE F_STRAFE is made by daboss. and when me and josh were modding, i copied that bit of code from Boss, and named the function F_Strafe. and the IsMoving is totally from him. why can't modders make their own functions? at least give him credit if you gonna use other peoples shit.
Title: Re: Activate P_STRIKER_A Evade
Post by: bullymodder74 on February 24, 2016, 02:25:33 PM
(http://i34.photobucket.com/albums/d149/Huls/Funny%20Stuff/MichaelJacksonEatingPopcorn.gif)
sits back and watches the show

Dude crouch is the worst button to bind shit to! I dunno why lemon always did it like that but it's horrible. It's better to make them feel natural.

Once you remember every button ID it'll be better.

And you guys are making a quote wall, which is unnecessary. there's 2 of you talking here, obviously you're talking to that person...

WAIT WTF WHY ARE YOU COPYING MY AND GREENOMNITRIX(josh)'S FUNCTIONS!?

THE F_STRAFE is made by daboss. and when me and josh were modding, i copied that bit of code from Boss, and named the function F_Strafe. and the IsMoving is totally from him. why can't modders make their own functions? at least give him credit if you gonna use other peoples shit.



Eh not copied and when the video of the subi evades di appropriations to GREENOMNITRIX Http://www.bully-board.com/index.php?topic=23699.msg405648#new (http://Http://www.bully-board.com/index.php?topic=23699.msg405648#new)
Title: Re: Activate P_STRIKER_A Evade
Post by: Owais Qadri on February 24, 2016, 02:52:18 PM
you lots still play bully on pc?
Title: Re: Activate P_STRIKER_A Evade
Post by: bullymodder74 on February 24, 2016, 03:04:26 PM
you lots still play bully on pc?

Yes
Title: Re: Activate P_STRIKER_A Evade
Post by: Unknownsoldier on February 24, 2016, 04:36:56 PM
Eh not copied and when the video of the subi evades di appropriations to GREENOMNITRIX http://www.bully-board.com/index.php?topic=23699.msg405648#new (http://www.bully-board.com/index.php?topic=23699.msg405648#new)
lol I don't understand your spanglish. so i don't know what to say.
Title: Re: Activate P_STRIKER_A Evade
Post by: Bully_Lover13 on February 25, 2016, 08:14:08 AM
You don't need to use F_Strafe. You can name it any other function and everything will still be the same.

Oh my... Modders these days.
Title: Re: Activate P_STRIKER_A Evade
Post by: Unknownsoldier on February 25, 2016, 03:10:00 PM
yes
Title: Re: Activate P_STRIKER_A Evade
Post by: GaryHarrington on February 27, 2016, 02:29:29 AM
you lots still play bully on pc?

till now,i'm still playing that game...