Bully-Board
Bully Modding Section => Modding Questions/Help => Modding Questions/Help Archives => Topic started 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:
-
There's a node for it
-
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.)
-
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.
-
^That's pretty impressive!
-
^thx
Or if you simply want to limit the meter, it's self explanitory:
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.