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


Show Posts

* Messages | Topics | Attachments

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Ming

Pages: 1 ... 8 9 [10]
136
Modding Questions/Help / Re: Hit Effect
« on: July 07, 2021, 09:12:21 AM »
Your code as-is doesn't work at all for me.
It just runs once and then stops working.

You want to put it in a loop and remove that "Wait(0)" from the for statement. I've never seen it used there.
Code: [Select]
while true do
for NPC,Ped in {PedFindInAreaXYZ(0, 0, 0, 99999)} do
if PedIsHit(Ped) and PedIsValid(Ped) then
local hX, hY, hZ = PedGetHeadPos(Ped)
local Effect1 = EffectCreate("GymLightSmash", hX, hY, hZ)
EffectSlowKill(Effect1, 0.7)
end
end
Wait(0)
end
This works fine.
Thank you so much

137
Modding Questions/Help / What is PedGetNodeTime()
« on: July 05, 2021, 09:27:52 PM »
What is PedGetNodeTime()

138
Modding Questions/Help / Hit Effect
« on: July 05, 2021, 04:20:54 PM »
Code: [Select]
HitEffect = function()
 for NPC,Ped in {PedFindInAreaXYZ(0, 0, 0, 99999)} do
  if PedIsHit(Ped) and PedIsValid(Ped) then
   local hX, hY, hZ = PedGetHeadPos(Ped)
   local Effect1 = EffectCreate("GymLightSmash", hX, hY, hZ)
   EffectSlowKill(Effect1, 0.7)
  end
  Wait(0)
 end
end
Why sometimes there is no trigger effect when Ped is attacked

139
Modding Questions/Help / Re: Ped has been hurt or not
« on: July 05, 2021, 03:37:09 PM »
Thanks a lot

140
Modding Questions/Help / Ped has been hurt or not
« on: June 17, 2021, 07:46:11 AM »
I need a function to judge Ped has been hurt or not,can someone help?

143
Modding Questions/Help / Re: PedGetHeading
« on: April 27, 2021, 04:40:17 AM »
I mean, how to use trigonometric function to convert the value of PedGetHeading to the ratio of x and y

144
Modding Questions/Help / PedGetHeading
« on: April 25, 2021, 04:12:14 AM »
How to use "PedGetHeading"function?

145
Mod Showroom / Boss Norton mod V1
« on: April 24, 2021, 11:32:24 AM »
https://www.youtube.com/watch?v=Jc_QgdP-quI
PedSetStationary(Ped, true/false) I found it in 3_05,and I keep players from being knocked down or grabbed with it

146
Modding Questions/Help / Kick mod Help
« on: March 18, 2021, 10:11:26 AM »
It isn't work :(
Quote
local size = table.getn
main = function()
  Wait(500)
  LoadAnimationGroup("P_Striker_A")
  LoadAnimationGroup("Nemesis")
  LoadAnimationGroup("BOSS_Darby")
  LoadAnimationGroup("Boxing")
  LoadAnimationGroup("Authority")
  LoadAnimationGroup("GaryAI")
  LoadAnimationGroup("Earnest")
  LoadAnimationGroup("B_Striker")
  LoadAnimationGroup("CV_Female")
  LoadAnimationGroup("CV_Male")
  LoadAnimationGroup("DO_Edgar")
  LoadAnimationGroup("DO_Grap")
  LoadAnimationGroup("DO_StrikeCombo")
  LoadAnimationGroup("DO_Striker")
  LoadAnimationGroup("F_Adult")
  LoadAnimationGroup("F_BULLY")
  LoadAnimationGroup("F_Crazy")
  LoadAnimationGroup("F_Douts")
  LoadAnimationGroup("F_Girls")
  LoadAnimationGroup("F_Greas")
  LoadAnimationGroup("F_Jocks")
  LoadAnimationGroup("F_Nerds")
  LoadAnimationGroup("F_OldPeds")
  LoadAnimationGroup("F_Pref")
  LoadAnimationGroup("F_Preps")
  LoadAnimationGroup("G_Grappler")
  LoadAnimationGroup("G_Johnny")
  LoadAnimationGroup("G_Striker")
  LoadAnimationGroup("J_Damon")
  LoadAnimationGroup("J_Grappler")
  LoadAnimationGroup("J_Melee")
  LoadAnimationGroup("J_Ranged")
  LoadAnimationGroup("J_Striker")
  LoadAnimationGroup("Nemesis")
  LoadAnimationGroup("N_Ranged")
  LoadAnimationGroup("N_Striker")
  LoadAnimationGroup("N_Striker_A")
  LoadAnimationGroup("N_Striker_B")
  LoadAnimationGroup("P_Grappler")
  LoadAnimationGroup("P_Striker")
  LoadAnimationGroup("Russell")
  LoadAnimationGroup("Russell_Pbomb")
  LoadAnimationGroup("Straf_Dout")
  LoadAnimationGroup("Straf_Fat")
  LoadAnimationGroup("Straf_Female")
  LoadAnimationGroup("Straf_Male")
  LoadAnimationGroup("Straf_Nerd")
  LoadAnimationGroup("Straf_Prep")
  LoadAnimationGroup("Straf_Savage")
  LoadAnimationGroup("Straf_Wrest")
  LoadAnimationGroup("TE_Female")
  LoadAnimationGroup("AI_Gary")
  Wait(500)
  while true do
    Moves()
    Wait(0)
  end
end

Moves = function()
 local Attack = 0
 if IsBeingButtonPressed(6, 0) and Attack == 0 then
  PedSetAITree(gPlayer,"/Global/DarbyAI", "Act/AI_DARBY_2_B.act")
  Wait(0)
  PedSetActionNode(gPlayer,"/Global","Act/Globals.act")
  Wait(0)
  PedSetActionNode(gPlayer, "/Global/Player/Attacks/GroundAttacks/GroundAttacks/Strikes/HeavyAttacks/GroundKick", "act/anim/Player.act")
  Wait(500)
  PedSetAITree(gPlayer,"/Global/PlayerAI","Act/PlayerAI.act")
  Wait(0)
  local Attack = 1
  if IsBeingButtonPressed(6, 0) and Attack == 1 then
   PedSetAITree(gPlayer,"/Global/DarbyAI", "Act/AI_DARBY_2_B.act")
   Wait(0)
   PedSetActionNode(gPlayer,"/Global","Act/Globals.act")
   Wait(0)
   PedSetActionNode(gPlayer,"/Global/G_Johnny/Offense/Short/Strikes/HeavyKick/HeavyKick","act/anim/G_Johnny.act")
   Wait(800)
   PedSetAITree(gPlayer,"/Global/PlayerAI","Act/PlayerAI.act")
   Wait(0)
   local Attack = 2
   if IsBeingButtonPressed(6, 0) and Attack == 2 then
    PedSetAITree(gPlayer,"/Global/DarbyAI", "Act/AI_DARBY_2_B.act")
    Wait(0)
   PedSetActionNode(gPlayer,"/Global","Act/Globals.act")
    Wait(0)
    PedSetActionNode(gPlayer,"/Global/Actions/RisingAttacks/HeavyAttacks/RisingAttacks","Globals/G_Striker_A.act")
    Wait(800)
    PedSetAITree(gPlayer,"/Global/PlayerAI","Act/PlayerAI.act")
    Wait(0)
    local Attack = 3
    if IsBeingButtonPressed(6, 0) and Attack == 3 then
     PedSetAITree(gPlayer,"/Global/DarbyAI", "Act/AI_DARBY_2_B.act")
     Wait(0)
    PedSetActionNode(gPlayer,"/Global","Act/Globals.act")
     Wait(0)
     PedSetActionNode(gPlayer,"/Global/J_Damon/Offense/SpecialStart/StartRun", "act/anim/J_Damon.act")
     Wait(500)
     PedSetAITree(gPlayer,"/Global/PlayerAI","Act/PlayerAI.act")
     Wait(0)
     local Attack = 4
     if IsBeingButtonPressed(6, 0) and Attack == 4 then
     GameSetPedStat(gPlayer, 20, 200)
      PedSetAITree(gPlayer,"/Global/DarbyAI", "Act/AI_DARBY_2_B.act")
      Wait(0)
      PedSetActionNode(gPlayer, "/Global/G_Johnny/Offense", "Act/Anim/G_Johnny.act")
      Wait(1600)
      PedSetAITree(gPlayer,"/Global/PlayerAI","Act/PlayerAI.act")
     GameSetPedStat(gPlayer, 20, 100)
      Wait(0)
     local Attack = 0
    end
   end
   end
  end 
 end

 if not PedIsPlaying(gPlayer, "/Global/Player/Attacks") and not PedIsPlaying(gPlayer, "/Global/G_Johnny/Offense") and not PedIsPlaying(gPlayer, "/Global/Actions/RisingAttacks") and not PedIsPlaying(gPlayer, "/Global/G_Johnny/Default_KEY") then
  Wait(300)
  if not PedIsPlaying(gPlayer, "/Global/Player/Attacks") and not PedIsPlaying(gPlayer, "/Global/G_Johnny/Offense") and not PedIsPlaying(gPlayer, "/Global/Actions/RisingAttacks") and not PedIsPlaying(gPlayer, "/Global/G_Johnny/Default_KEY") then
   local Attack = 0
  end
 end
 
end

F_AttendedClass = function()
  if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
    return
  end
  SetSkippedClass(false)
  PlayerSetPunishmentPoints(0)
end
 
F_MissedClass = function()
  if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
    return
  end
  SetSkippedClass(true)
  StatAddToInt(166)
end
 
F_AttendedCurfew = function()
  if not PedInConversation(gPlayer) and not MissionActive() then
    TextPrintString("You got home in time for curfew", 4)
  end
end
 
F_MissedCurfew = function()
  if not PedInConversation(gPlayer) and not MissionActive() then
    TextPrint("TM_TIRED5", 4, 2)
  end
end
 
F_StartClass = function()
  if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
    return
  end
  F_RingSchoolBell()
  local l_6_0 = PlayerGetPunishmentPoints() + GetSkippingPunishment()
end
 
F_EndClass = function()
  if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
    return
  end
  F_RingSchoolBell()
end
 
F_StartMorning = function()
  F_UpdateTimeCycle()
end
 
F_EndMorning = function()
  F_UpdateTimeCycle()
end
 
F_StartLunch = function()
  if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
    F_UpdateTimeCycle()
    return
  end
  F_UpdateTimeCycle()
end
 
F_EndLunch = function()
  F_UpdateTimeCycle()
end
 
F_StartAfternoon = function()
  F_UpdateTimeCycle()
end
 
F_EndAfternoon = function()
  F_UpdateTimeCycle()
end
 
F_StartEvening = function()
  F_UpdateTimeCycle()
end
 
F_EndEvening = function()
  F_UpdateTimeCycle()
end
 
F_StartCurfew_SlightlyTired = function()
  F_UpdateTimeCycle()
end
 
F_StartCurfew_Tired = function()
  F_UpdateTimeCycle()
end
 
F_StartCurfew_MoreTired = function()
  F_UpdateTimeCycle()
end
 
F_StartCurfew_TooTired = function()
  F_UpdateTimeCycle()
end
 
F_EndCurfew_TooTired = function()
  F_UpdateTimeCycle()
end
 
F_EndTired = function()
  F_UpdateTimeCycle()
end
 
F_Nothing = function()
end
 
F_ClassWarning = function()
  if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
    return
  end
  local l_23_0 = math.random(1, 2)
end
 
F_UpdateTimeCycle = function()
  if not IsMissionCompleated("1_B") then
    local l_24_0 = GetCurrentDay(false)
    if l_24_0 < 0 or l_24_0 > 2 then
      SetCurrentDay(0)
    end
  end
  F_UpdateCurfew()
end
 
F_UpdateCurfew = function()
  local l_25_0 = shared.gCurfewRules
  if not l_25_0 then
    l_25_0 = F_CurfewDefaultRules
  end
  l_25_0()
end
 
F_CurfewDefaultRules = function()
  local l_26_0 = ClockGet()
  if l_26_0 >= 23 or l_26_0 < 7 then
    shared.gCurfew = true
  else
    shared.gCurfew = false
  end
end

147
Mod Releases / Re: .CAT Dumper
« on: March 08, 2021, 07:06:28 AM »
I can't download it,it says it's unavailable, does anyone else have it, if so please link me? Thanks
I can't download, either

148
Beta Releases / Re: CAT Extractor BETA
« on: March 08, 2021, 06:00:09 AM »
Link isn't working  :(

149
Mod Showroom / Re: Darby and Johnny BOSS BETA Mission Showroom
« on: March 02, 2021, 10:32:52 AM »
Cool :a-cheer:

150
Mod Showroom / Explosive Punch mod
« on: March 02, 2021, 08:57:28 AM »

Pages: 1 ... 8 9 [10]