Post: Call of Duty 4: Addresses, Offsets, Structs And Scripts
07-24-2016, 07:53 PM #1
TheGreenPlanet
Do a barrel roll!
(adsbygoogle = window.adsbygoogle || []).push({}); Hi NGU! I had a plan of creating an SPRX menu for COD4 but I couldn't get the Eboot to load my SPRX file, therefore I'm realising everything I've done so far.

TOC: 0x6C6988:

Structures:

cg_s - 10B50100
centity - 10B50110
ClientActive - 122A4D84


Addresses:

    
0x015100 - AimTarget_GetTagPos
0x015270 - AimTarget_IsTargetVisible
0x08E198 - CL_DrawText
0x07A898 - CL_DrawStretchPicPhysical
0x164A00 - Com_GetClientDObj
0x0475D0 - CG_DObjGetWorldTagPos
0x15EC18 - CBuf_AddText
0x1D4E48 - Dvar_GetString
0x1D4F10 - Dvar_GetBool
0x1D6E10 - Dvar_GetInt
0x11DC18 - G_TraceCapsule
0x089928 - Key_IsDown
0x3076F8 - Material_RegisterHandle
0x30FA18 - R_AddCmdDrawStretchPicFlipST
0x30F158 - R_AddCmdDrawStretchPic
0x30DF20 - R_AddCmdDrawText
0x30F660 - R_AddCmdDrawStretchPicRotateXY
0x2F6C60 - R_RegisterFont
0x0B2958 - ScrPlace_ApplyRect
0x17F2B8 - SL_ConvertToString
0x1A0788 - SV_ExecuteClientCommand
0x157F30 - Trace_GetEntityHitId
0x1E0C80 - va



Scripts:

Buttons

enum Buttons
{
Cross = 1,
Circle = 2,
Square = 3,
Triangle = 4,
L1 = 5,
R1 = 6,
Start = 14,
Select = 15,
L3 = 16,
R3 = 17,
L2 = 18,
R2 = 19,
DPAD_UP = 22,
DPAD_DOWN = 23,
DPAD_LEFT = 24,
DPAD_RIGHT = 25,
};

bool Button(int Button)
{
opd_s Key_IsDown_t = { 0x89928, TOC };
bool(*Key_IsDown)(int client, int button) = (bool(*)(int, int))&Key_IsDown_t;
return Key_IsDown(0, Button);
}

End Game

char buffer[0x100];
sprintf(buffer, "cmd mr %i %i %s", *(int*)(0x1A078Cool Man (aka Tustin), -1, "endround"); //You can also use Sv_ServerID (0x6C7F7Cool Man (aka Tustin)
cBuf_Addtext(0, buffer);

Spoof Team

char buffer[0x100];
sprintf(buffer, "cmd mr %i %i %s", *(int*)(0x1A078Cool Man (aka Tustin), 3, "axis"); //You can also use Sv_ServerID (0x6C7F7Cool Man (aka Tustin)
cBuf_Addtext(0, buffer);



Credits:
Me (TheGreenPlanet)


NOTE: Non of the following Addresses nor Scripts has been tested, but they should work 8-).
Last edited by TheGreenPlanet ; 08-13-2016 at 09:24 PM.

The following 4 users say thank you to TheGreenPlanet for this useful post:

K51, MemoryPointers, TheFallen, VenoxCoding
07-31-2016, 11:47 PM #2
S63
Space Ninja
Originally posted by PlanetJulgran View Post
Hi NGU! I had a plan of creating an SPRX menu for COD4 but I couldn't get the Eboot to load my SPRX file, therefore I'm realising everything I've done so far.

Structures:

cg_s - 10B50100
centity - 10B50110
ClientActive - 122A4D84


Addresses:

    
0x015100 - AimTarget_GetTagPos
0x015270 - AimTarget_IsTargetVisible
0x08E198 - CL_DrawText
0x07A898 - CL_DrawStretchPicPhysical
0x164A00 - Com_GetClientDObj
0x0475D0 - CG_DObjGetWorldTagPos
0x15EC18 - CBuf_AddText
0x1D4E48 - Dvar_GetString
0x1D4F10 - Dvar_GetBool
0x1D6E10 - Dvar_GetInt
0x11DC18 - G_TraceCapsule
0x089928 - Key_IsDown
0x3076F8 - Material_RegisterHandle
0x30FA18 - R_AddCmdDrawStretchPicFlipST
0x30F158 - R_AddCmdDrawStretchPic
0x30DF20 - R_AddCmdDrawText
0x30F660 - R_AddCmdDrawStretchPicRotateXY
0x2F6C60 - R_RegisterFont
0x0B2958 - ScrPlace_ApplyRect
0x17F2B8 - SL_ConvertToString
0x1A0788 - SV_ExecuteClientCommand
0x157F30 - Trace_GetEntityHitId
0x1E0C80 - va



Scripts:

Buttons

enum Buttons
{
Cross = 1,
Circle = 2,
Square = 3,
Triangle = 4,
L1 = 5,
R1 = 6,
Start = 14,
Select = 15,
L3 = 16,
R3 = 17,
L2 = 18,
R2 = 19,
DPAD_UP = 22,
DPAD_DOWN = 23,
DPAD_LEFT = 24,
DPAD_RIGHT = 25,
};

bool Button(int Button)
{
opd_s Key_IsDown_t = { 0x89928, TOC };
bool(*Key_IsDown)(int client, int button) = (bool(*)(int, int))&Key_IsDown_t;
return Key_IsDown(0, Button);
}

End Game

char buffer[0x100];
sprintf(buffer, "cmd mr %i %i %s", *(int*)(0x1A078Cool Man (aka Tustin), -1, "endround"); //You can also use Sv_ServerID (0x6C7F7Cool Man (aka Tustin)
cBuf_Addtext(0, buffer);

Spoof Team

char buffer[0x100];
sprintf(buffer, "cmd mr %i %i %s", *(int*)(0x1A078Cool Man (aka Tustin), 3, "axis"); //You can also use Sv_ServerID (0x6C7F7Cool Man (aka Tustin)
cBuf_Addtext(0, buffer);



Credits:
Me (TheGreenPlanet)


NOTE: Non of the following Addresses nor Scripts has been tested, but they should work 8-).


what are these just for non-host cause I can send you a few host addresses etc..
08-02-2016, 02:13 PM #3
TheGreenPlanet
Do a barrel roll!
Originally posted by S63 View Post
what are these just for non-host cause I can send you a few host addresses etc..

It's just for non host since there is no need for host addresses (GSC)
08-02-2016, 08:33 PM #4
S63
Space Ninja
Originally posted by PlanetJulgran View Post
It's just for non host since there is no need for host addresses (GSC)


Yes but some people perfer tools over patches, i know loads people he like tools better
08-28-2016, 06:17 PM #5
Chris
Former Staff
Great thread man. Good to see some quality posting going around.

The following 2 users say thank you to Chris for this useful post:

Father Luckeyy, TheGreenPlanet
08-28-2016, 07:35 PM #6
Father Luckeyy
Retired - Lead Content Manager
Keep up the good work on sharing these kinda information for the community

The following user thanked Father Luckeyy for this useful post:

TheGreenPlanet
10-01-2016, 01:38 PM #7
thx bro versss
10-13-2016, 09:18 PM #8
Father Luckeyy
Retired - Lead Content Manager
Originally posted by S63 View Post
Yes but some people perfer tools over patches, i know loads people he like tools better


You have any non host address?
10-13-2016, 09:59 PM #9
S63
Space Ninja
Originally posted by Luckeyy View Post
You have any non host address?


I aint got laptop with me bro will have to take a look tomorrow
10-13-2016, 11:10 PM #10
Father Luckeyy
Retired - Lead Content Manager
Originally posted by S63 View Post
I aint got laptop with me bro will have to take a look tomorrow


Ok thanks bro

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo