Quantcast
Channel: NextGenUpdate
Viewing all articles
Browse latest Browse all 27691

[1.07/Script] Call of Duty: Ghosts All Client Jetpack Mod

$
0
0
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:
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 :)

First off, you're going to need some sort of Button Handling that can monitor the X button...

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;
        }

Next you will this script.

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);
        }

And lastly if you don't know just use it in a background worker or timer like this...

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);
                }
            }

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...
Spoiler:

Code:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using PS3Lib;

namespace Jetpack_Mod
{
    public partial class Form1 : Form
    {
        public PS3API PS3 = new PS3API();
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            PS3.ConnectTarget();
            PS3.AttachProcess();
            button1.Text = "Connected Pls";
        }
        public uint findPS(int client)
        {
            return 0x00F21C30 + ((uint)client * 0x3600);
        }
        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 bool ButtonPressed(int client, int Button)
        {
            if (BitConverter.ToInt16(PS3.GetBytes(0x38A91A52 + ((uint)client * 0x6EA00), 2), 0) == Button)
                return true;
            else return false;
        }
        private void button2_Click(object sender, EventArgs e)
        {
            PS3.SetMemory(0x50f708, new byte[] { 0x28, 0x04, 0x00, 0x01 });
            timer1.Start();
        }
        public void JetPack(int client)
        {
            float jH = PS3.Extension.ReadFloat(findPS(client));
            jH += 130;
            PS3.Extension.WriteFloat(findPS(client), jH);
        }
        private void timer1_Tick(object sender, EventArgs e)
        {
            for (int i = 0; i < 2; i++)
            {
                if (ButtonPressed(i, Buttonz.Cross))
                {
                    JetPack(i);
                }
            }
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }
       
    }
}


Credits
Code:

Me.

Viewing all articles
Browse latest Browse all 27691

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>