16
Mod Showroom / Re: Strafe test with block
« on: April 01, 2015, 12:25:02 PM »
I want you guys to have fun with modding but I want you to learn to so you can teach future generations of Bully modding.
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.
It's hard to explain but I will try my best.It's hard to understand, can you just send me the entire code?
First I created a table with the name of all the fighting styles.
Then I created a "for" inside the "repeat" in the main function. The "for" goes from count = 1 to the length of the table.
Inside the "for" I created a "while" so while the lockedped is performing a fighting move (something like stylestable[count].stylename), gPlayer will perform the blocking node. I also validated it so you can't block if your defense was broken, so you can't block 2 breaker moves in a row.
The 1 problem with this is that Shrek is dreck.
Nicely made video, though.
Kick chad sond efectt pl0x thanck
Nice work.
Now make one with all jimmy's quotes ( ͡° ͜ʖ ͡°)
Code: [Select]F_PedFlag = function()
local Ped = PedGetTargetPed(gPlayer)
if IsButtonPressed(3,0) and PedIsValid(Ped) then
TextPrintString(PedGetFlag(Ped), 2, 2)
end
end
You could try using this code to get a ped's flags in-game to make finding more easier. I tried it but it crashes my game, lol.
A ped can have multiple flags enabled/disabled so I suppose that you should ask which flag. It should be something like PedGetFlag(PED, FlagNumber)
This way I should also know if a flag exists or not.
EDIT:Get rekt m8 I was gonna answer himNice m8
EDIT2: Even though I'm changing flag 37 value to "true" it always stays "false".
Code: [Select]F_PedFlag = function()
local Ped = PedGetTargetPed(gPlayer)
if IsButtonPressed(3,0) and PedIsValid(Ped) then
TextPrintString(PedGetFlag(Ped), 2, 2)
end
end
You could try using this code to get a ped's flags in-game to make finding more easier. I tried it but it crashes my game, lol.
2 things wrong there. Firstly, you need the flag number in as the 2nd arg and it'll return the value of what that flag is. Secondly, trying to print a boolean value (true/false) will crash the game. Try this
local flag = 90
local ped = PedGetTargetPed()
if not PedIsValid(ped) then ped = gPlayer end
if IsButtonBeingPressed(3,0) then
local value = PedGetFlag(ped,flag)
if value == true then
TextPrintString("true",1,1)
elseif value == false then
TextPrintString("false",1,1)
else
TextPrintString(value,1,1)
end
end
end
F_PedFlag = function()
local Ped = PedGetTargetPed(gPlayer)
if IsButtonPressed(3,0) and PedIsValid(Ped) then
TextPrintString(PedGetFlag(Ped), 2, 2)
end
end
Yeah I have XP.
But it's still weird that it dumped fine WrestlingNPC_ACT.
Anyways I already have most of the words written down so it's not a big deal.
How exactly does this help?
Edit: You gotta be kidding me m8, when I open the application, nothing shows up.
Well... mine doesn't seem to list the words of the file.
EDIT: It only worked fine with WrestlingNPC_ACT.cat for some reason.How exactly does this help?It will give you a list of strings that you can use for whatever; but mainly to give you an idea of where/what you can edit/replace using HxD to make some fighting style mixes via Act.img.