1
Mod Releases / Re: Wheel Menu (PC)
« on: June 20, 2023, 05:08:09 AM »Has the issue been resolved?
Yes, it was fixed in DSL 4.
News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..
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.
Has the issue been resolved?
Sometimes I experienced the transparent super spud gun too even without any mod installed, I'll trace it further later. But, the white square icon is pure R* fault because there's no icon file for the super spud gun in "../Bully - Scholarship Edition/TXD/HUDElems.nft" and the game will show a temporary icon (white square).
- Super Spud Gun is transparent and has a white square as icon image.
It seems like I made a mistake by setting 'none' to the other hand slot which cause a conflict between functions in the script. Does DSL console tell you anything about an error? The error notification would be really helpful to track the issue.
- Trying to take one hand accessory off will take the other hand accessory off instead. Trying to put it back on or take it off again has no effect. If a hand accessory is already off and you try to take it off, it will take the other accessory off instead. Trying to put it back on will work only the first time.
- Sometimes, when selecting a Hand accessory option, the Wheel Menu closes and then it never opens again and it also disables the standard way of selecting weapons ingame (previous weapon and next weapon buttons).
Being able to change between an inner shirt (such as a T-shirt, long sleeved shirt) and outer clothing (such as a hoodie), instead of just the tank-top, would be great.You can change the Tank Top to any clothing you want by editing the item.lua. Find GROUP_02_REGISTER('TORSO', nil, 'P_SSleeves11') and replace 'P_SSleeves11' to 'P_SSleeves3' (White T-Shirt) or 'R_Jacket1' (Tuxedo Jacket
-- get player coordinates.
local X, Y, Z = PlayerGetPosXYZ()
-- for loop and PedFindInAreaXYZ in a table.
for INDEX, PED in ({PedFindInAreaXYZ(X, Y, Z, 999999)}) do
-- check the existence of pedestrian and exclude player from the list.
if PedIsValid(PED) and PED ~= gPlayer then
-- check if pedestrian is in combat and stands still.
if PedIsInCombat(PED) and PedMePlaying(PED, 'DEFAULT_KEY') then
-- check if pedestrian is Peanut and his target is pretty close to him.
if PedGetName(PED) == 'N_Peanut' and DistanceBetweenPeds2D(PED, PedGetTargetPed(PED)) <= 1.5 then
-- add Throat Grab for Peanut with 5% chance.
if math.random(1, 100) <= 5 then
PedSetActionNode(PED, '/Global/G_Johnny/Offense/Special/SpecialActions/Grapples/Dash', 'Act/Anim/G_Johnny.act')
end
-- add Jackie Kick for Peanut with 10% chance.
if math.random(1, 100) <= 10 then
PedSetActionNode(PED, '/Global/Nemesis/Offense/Medium/Strikes/HeavyAttacks/JackieKick', 'Act/Anim/Nemesis.act')
end
-- add Super Uppercut for Peanut with 3% chance.
if math.random(1, 100) <= 3 then
PedSetActionNode(PED, '/Global/Nemesis/Offense/Short/Strikes/LightAttacks/JAB/HeavyAttacks/SuperUppercut', 'Act/Anim/Nemesis.act')
end
end
-- if you want to add some more NPCs other than Peanut, it depends on your will to learn
-- otherwise, it won't help :(
end
end
end
https://bully-board.com/index.php?topic=22279.msg380365#msg380365
-- the double hyphen ('--') is a comment section used by developer to explain something without interfering the actual script.
main = function()
-- (1) wait for the game loading.
while not SystemIsReady() or AreaIsLoading() do
Wait(0)
end
-- (2) load a light setup of animation groups, this is required because we involved in animation modding.
local GROUP = {
'Authority','Boxing','Russell','Nemesis','B_Striker','CV_Female','CV_Male','DO_Edgar','DO_Grap','DO_StrikeCombo',
'DO_Striker','F_Adult','F_BULLY','F_Douts','F_Girls','F_Greas','F_Jocks','F_Nerds','F_OldPeds','F_Pref','F_Preps',
'G_Grappler','G_Johnny','G_Striker','Grap','J_Damon','J_Grappler','J_Melee','J_Ranged','J_Striker','LE_Orderly','N_Ranged',
'N_Striker','N_Striker_A','N_Striker_B','P_Grappler','P_Striker','PunchBag','Qped','Rat_Ped','Russell_Pbomb','Straf_Dout',
'Straf_Fat','Straf_Female','Straf_Male','Straf_Nerd','Straf_Prep','Straf_Savage','Straf_Wrest','TE_Female','MINI_React',
}
for _, ANIM in ipairs(GROUP) do
if not HasAnimGroupLoaded(ANIM) then
LoadAnimationGroup(ANIM)
end
end
-- (3) modders usually make their own setup in here, after the game has loaded and before the main loop running.
-- loop.
while true do
Wait(0)
-- (4) main loop, this will run forever till you quit the game or crash.
-- print a text, so you know that your script is actually working.
TextPrintString('It works!', 1, 1)
end
end
PedSetActionTree(gPlayer, '/Global/Nemesis', 'Act/Anim/Nemesis.act')
-- get target pedestrian number.
local TARGET = PedGetTargetPed(gPlayer)
-- check if pedestrian number is a valid ped.
if PedIsValid(TARGET) then
-- press Zoom Out to change NPC fighting style.
if IsButtonBeingPressed(3, 0) then
PedSetActionTree(TARGET, '/Global/Nemesis', 'Act/Anim/Nemesis.act')
end
end
-- get player coordinates
local X, Y, Z = PlayerGetPosXYZ()
-- for loop and PedFindInAreaXYZ in a table.
for INDEX, PED in ({PedFindInAreaXYZ(X, Y, Z, 999999)}) do
if PedIsValid(PED) then
-- press Zoom Out to change every pedestrian fighting style (including the player).
if IsButtonBeingPressed(3, 0) then
PedSetActionTree(PED, '/Global/Nemesis', 'Act/Anim/Nemesis.act')
end
end
end
Great mod, although it will crash if you start a dodgeball game with this mod installed, mine does when I start GYM 2
So, how can I do that? how to detect a small area in front of a ped?
if IsButtonBeingPressed(3, 0) then
local FRONT_X, FRONT_Y, FRONT_Z = PedGetOffsetInWorldCoords(gPlayer, 0, 1, 0)
if BLIP then BlipRemove(BLIP) end
BLIP = BlipAddXYZ(FRONT_X, FRONT_Y, FRONT_Z, 0, 0, 7)
end
POI stands for Point Of Interest.
I know pedstats determines what weapon a ped spawns with its just that I've seen nerds spawn with squd guns and fire crackers in fight events when pedstats only spawns Bucky and Donald with those weapons normally (the only other times a ped seems to spawn with a unique weapon not determined by pedstats is missions which is set by the lua file for the mission and in certain locations when they use it for a prank.
You must be referring to POIs.