hey NGU,
Today I was playing Daft Vaders Patch on COD4 and was having a little fun with his 'Jetpack' Mod. So I figured I 'remake' it for Ghosts! Now before I get into all the shitty coding... I have some disclaimers: First off, this doesn't include the fancy hud elements where the fuel meter displays how much 'Fuel' is left... also, when using this, you're going to want to put on some dvars or something to protect against fall damage because fall from big height = owchie. So let's get into the shit coding. Also, I Do Not allow this script on any other Website
How to use:
First off, you're going to need some sort of Button Handling that can monitor the X button...
My dpad handling will work ;)
Next you will this script.
And lastly if you don't know just use it in a background worker or timer like this...
Also, if you're not using PS3Lib v4.. then you should, but if you don't want to just replace all the PS3 coding with yours.
If you want to quickly test this here is a tool I made
Download
Virus Scan!
Source Code for the C# File...
Credits
Today I was playing Daft Vaders Patch on COD4 and was having a little fun with his 'Jetpack' Mod. So I figured I 'remake' it for Ghosts! Now before I get into all the shitty coding... I have some disclaimers: First off, this doesn't include the fancy hud elements where the fuel meter displays how much 'Fuel' is left... also, when using this, you're going to want to put on some dvars or something to protect against fall damage because fall from big height = owchie. So let's get into the shit coding. Also, I Do Not allow this script on any other Website
How to use:
Code:
Just press X to jump and blast off ;)
If you're coming down from 'Space' just press X to go back up before you hit the ground :)
My dpad handling will work ;)
Code:
public class Buttonz
{
public static int
DpadUp = 13617,
DpadDown = 14129,
DpadLeft = 14641,
DpadRight = 12594,
Cross = 13618,
Square = 12593,
Circle = 13106,
R2 = 53,
R1 = 49,
L2 = 55,
L1 = 13105,
L3 = 57,
R3 = 14130;
}
public static bool ButtonPressed(int client, int Button)
{
if (BitConverter.ToInt16(PS3.GetBytes(0x38A91A52 + ((uint)client * 0x6EA00), 2), 0) == Button)
return true;
else return false;
}
Code:
public uint findPS(int client)
{
return 0x00F21C30 + ((uint)client * 0x3600);
}
public void JetPack(int client)
{
float jH = PS3.Extension.ReadFloat(findPS(client));
jH += 130;
PS3.Extension.WriteFloat(findPS(client), jH);
}
Code:
for (int i = 0; i < 2; i++)
{
if (ButtonPressed(i, Buttonz.Cross))//You can take the for loop out if you want it for a specific client or whatever just replace I with the client number...
{
JetPack(i);
}
}
If you want to quickly test this here is a tool I made
Download
Virus Scan!
Source Code for the C# File...
Spoiler:
Credits
Code:
Me.