Bully-Board

Bully Modding Section => Modding Questions/Help => Modding Questions/Help Archives => Topic started by: Enderman on November 22, 2014, 11:38:12 AM

Title: Cant be busted
Post by: Enderman on November 22, 2014, 11:38:12 AM
When i play Bully SE i all way busted by the cops
Does anyone know how to push back like Bif (you cant grab him)  :laugh:
Title: Re: Cant be busted
Post by: 明日香 on November 22, 2014, 11:54:30 AM
There's a node for it
Title: Re: Cant be busted
Post by: AlphaTech on November 22, 2014, 01:20:25 PM
Just set the trouble meter to disable the patrol paths around the school and other places. Also you can disable the punishment system.
DisablePunishmentSystem(true)(Disables the punishment system.)
 AreaDisableAllPatrolPaths(true)(Disables the patrol paths like cops and prefects.)
PlayerSetPunishmentPoints(Sets the punishment points, the trouble meter control basically.)
DisablePunishmentSystem(false)(Enables the punishment system.)
Title: Re: Cant be busted
Post by: Unknownsoldier on November 22, 2014, 09:15:49 PM
Just put this under a repeat/while loop:

  if PedGetFaction(PedGetGrappleTargetPed(gPlayer)) == 0 or PedGetFaction(PedGetGrappleTargetPed(gPlayer)) == 7 or PedGetFaction(PedGetGrappleTargetPed(gPlayer)) == 8 or PedGetFaction(PedGetGrappleTargetPed(gPlayer)) == 9 or PedGetFaction(PedGetGrappleTargetPed(gPlayer)) == 10 then
    PedSetActionTree(PedGetGrappleTargetPed(gPlayer), "/Global/GS_Male_A", "Act/Anim/GS_Male_A.act")
   PedSetActionNode(PedGetGrappleTargetPed(gPlayer), "/Global/1_02/ShortIdle", "Act/Conv/1_02.act")
   PedSetActionNode(gPlayer, "/Global/1_02/ShortIdle", "Act/Conv/1_02.act")
   PedSetFaction(PedGetGrappleTargetPed(gPlayer),6)
   Wait(1)
   PedSetActionNode(gPlayer,"/Global/Player","Act/Player.act")

This will push away the authority figure.
Title: Re: Cant be busted
Post by: SWEGTA on November 23, 2014, 06:39:20 AM
^That's pretty impressive!
Title: Re: Cant be busted
Post by: Unknownsoldier on November 24, 2014, 12:01:27 AM
^thx

Or if you simply want to limit the meter, it's self explanitory:

Code: [Select]
  if PlayerGetPunishmentPoints() > 200 then -- Change 200 to any limit you want.
    PlayerSetPunishmentPoints(200) -- You can also change 200 to any number you want.
  end

These are just a few things I keep in my personal notes hehe

The one used in this example just keeps it from getting red.