for NPC,ped in {PedFindInAreaXYZ(0, 0, 0, 99999)} do
if PedIsPlaying(gplayer, "/Global/J_Striker_A/Offense/Short/Strikes/LightAttacks", true) and not PedIsPlaying(gplayer, "/Global/J_Striker_A/Offense/Short/Strikes/LightAttacks/JAB/Elbow/HeavyAttacks", true) and PedGetWhoHitMeLast(ped) == gPlayer then
if PedIsPlaying(ped, "/Global/HitTree/Standing/Melee/Generic/Straight/HEADJAB", true) then
PedSetActionNode(ped, "/Global/HitTree/Standing/Melee/Unique/SACKED/Front", "act/anim/HitTree.act")
PedSetHealth(ped, PedGetHealth(ped) + 10 * PedGetDamageGivenMultiplier(gPlayer, 2))
Wait(0)
SoundStopCurrentSpeechEvent(ped)
end
end
end
for NPC,ped in {PedFindInAreaXYZ(0, 0, 0, 99999)} do
if PedIsValid(PedGetTargetPed(ped)) and (PedIsPlaying(ped"/Global/P_Striker_B/Offense/Short/Strikes/HeavyAttacks/Hook2", true) or PedIsPlaying(gplayer,"/Global/P_Striker_B/Offense/Short/Grapples/HeavyAttacks/Catch_Throw",true)) and DistanceBetweenPeds2D(PedGetTargetPed(ped), ped) >= NUMBER and PedIsHit(PedGetTargetPed(ped),true) then
PedClearHitRecord(PedGetTargetPed(ped))
if PedGetTargetPed and BodyGuard and IsButtonPressed(7,0) then LoadAnimationGroup("P_Grappler") ExecuteActionNode(gPlayer, "/Global/P_Grappler_A/Defense/Evade/EvadeBack/Evade", "Act/Anim/P_Grappler_A.act") |
or (PedIsValid(PedGetTargetPed()) and (PedIsPlaying(PedGetTargetPed(), "/Global/P_Striker_B/Offense/Short/NonCombatActions/Taunts",true) or PedIsInCombat(PedGetTargetPed())))