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


Author Topic: Activate P_STRIKER_A Evade  (Read 6622 times)

0 Members and 2 Guests are viewing this topic.

Offline bullymodder74

  • Jr. Member
  • **
  • Posts: 51
  • Gender: Male
  • Bully Mods
    • View Profile
Activate P_STRIKER_A Evade
« 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
« Last Edit: February 24, 2016, 02:27:42 PM by bullymodder74 »

Offline Bully_Lover13

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Re: Activate P_STRIKER_A Evade
« Reply #1 on: February 23, 2016, 07:48:40 AM »
As your personal text says.

"xD" - bullymodder74

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

Offline bullymodder74

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

Offline Bully_Lover13

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Re: Activate P_STRIKER_A Evade
« Reply #3 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.

Offline bullymodder74

  • Jr. Member
  • **
  • Posts: 51
  • Gender: Male
  • Bully Mods
    • View Profile
Re: Activate P_STRIKER_A Evade
« Reply #4 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?


Offline bullymodder74

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

Offline Unknownsoldier

  • Hero Member
  • ****
  • Posts: 2,773
    • View Profile
Re: Activate P_STRIKER_A Evade
« Reply #6 on: February 24, 2016, 02:14:06 PM »

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.

Offline bullymodder74

  • Jr. Member
  • **
  • Posts: 51
  • Gender: Male
  • Bully Mods
    • View Profile
Re: Activate P_STRIKER_A Evade
« Reply #7 on: February 24, 2016, 02:25:33 PM »

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

Offline Owais Qadri

  • Gerjaffers
  • Hero Member
  • ****
  • Posts: 1,995
  • Gender: Male
  • I Love Sunny Days.
    • View Profile
Re: Activate P_STRIKER_A Evade
« Reply #8 on: February 24, 2016, 02:52:18 PM »
you lots still play bully on pc?

Offline bullymodder74

  • Jr. Member
  • **
  • Posts: 51
  • Gender: Male
  • Bully Mods
    • View Profile
Re: Activate P_STRIKER_A Evade
« Reply #9 on: February 24, 2016, 03:04:26 PM »

Offline Unknownsoldier

  • Hero Member
  • ****
  • Posts: 2,773
    • View Profile
Re: Activate P_STRIKER_A Evade
« Reply #10 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
lol I don't understand your spanglish. so i don't know what to say.

Offline Bully_Lover13

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Re: Activate P_STRIKER_A Evade
« Reply #11 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.

Offline Unknownsoldier

  • Hero Member
  • ****
  • Posts: 2,773
    • View Profile
Re: Activate P_STRIKER_A Evade
« Reply #12 on: February 25, 2016, 03:10:00 PM »
yes

Offline GaryHarrington

  • A Guy Who Likes Open World and FPS Games
  • Sr. Member
  • ***
  • Posts: 515
  • Gender: Male
  • Just Love Bully and GTA ...Nothing Interested
    • View Profile
Re: Activate P_STRIKER_A Evade
« Reply #13 on: February 27, 2016, 02:29:29 AM »
you lots still play bully on pc?

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