Bully-Board

Bully Modding Section => Script Modding => Topic started by: GreenOmnitrix on May 04, 2015, 04:34:25 AM

Title: How To Trigger/Enable P_Striker_A Evades
Post by: GreenOmnitrix on May 04, 2015, 04:34:25 AM
I don't mod Bully anymore, I MIGHT in the future but not for now :( I've moved onto the realm of GTA V modding for the PC :D so here is how to use p_striker_a evades ;) i find no use in hiding them anymore idk y i did b4 but here ya go

The way I did it was through triggering AI; I haven't actually found the action nodes for it yet; I believe the action nodes are:

Code: [Select]
/Global/P_Striker_A/Defense/Evade/EvadeCounter
/Global/P_Striker_A/Defense/Evade/EvadeBack

The nodes don't work but I believe they are triggered somehow, but I am yet to find out how. For now I have made a little mini-function to trigger P_Striker_A evades:

Code: [Select]
F_Evade = function()
PedSetStatsType(gPlayer, "STAT_P_BOXING_Bif")
local Ped = PedGetTargetPed(gPlayer)
  if IsButtonPressed(15,0) and PedIsValid(Ped) then
  PlayerSetControl(0)
   PedSetAITree(gPlayer,"/Global/AI", "Act/AI.act")
    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)
              PedStop(gPlayer)
               PedSetFaction(gPlayer, 13)
 end
end

Let me give you a little breakdown of what's happening in my code:

First of all I set the player's pedstats to that of Bif's, you can also use the other P_Striker_A pedstat but this one has more health. Then I set it so the AI takes full control fo the player and evades any attack that comes at him hence the overrided stat of 100 for evade while locked on to a valid ped. This one has a FEW issues such as him strafing when not needed and executing some attacks.

Welp, there you go, hope you enjoy.
Title: Re: How To Trigger/Enable P_Striker_A Evades
Post by: Enderman on May 04, 2015, 05:48:22 AM
OMG!!!!  :cheernutz:
Title: Re: How To Trigger/Enable P_Striker_A Evades
Post by: AfterLife on May 04, 2015, 05:53:56 AM
I already had something like this, I won't have to hide anything anymore since you already released this.

Bully SE P Striker A All Evades (http://www.youtube.com/watch?v=aMupB6yW6rI#)

Bully SE: P_Striker_A Full Style (http://www.youtube.com/watch?v=EhTTap8fMHg#)

Also, can you show me how you did your version of the full strafe?
Title: Re: How To Trigger/Enable P_Striker_A Evades
Post by: deadpoolXYZ on May 04, 2015, 08:10:56 AM
Keep in mind that this method only work if you are using the preppies faction... otherwise the evade simply don't work. I wanted to add this to my mod but since you are forced to stay in the preppies faction I didn't find it worth it.
Title: Re: How To Trigger/Enable P_Striker_A Evades
Post by: Enderman on May 05, 2015, 02:23:06 AM
Could you make a video?
Title: Re: How To Trigger/Enable P_Striker_A Evades
Post by: GreenOmnitrix on May 05, 2015, 09:29:23 PM
Could you make a video?

I don't play/mod Bully anymore. :P
Title: Re: How To Trigger/Enable P_Striker_A Evades
Post by: DaBOSS54320 on May 06, 2015, 12:09:42 AM
He's made many in previous showroom topics of his.