Modern Warfare 3 Source Code / Address Thread

Posts 166–180 of 282 · Page 12 of 19
View Angle:


It seems to be read only but, haven't tested to change it...

Credits: @Jorndel
Quote Originally Posted by Jorndel View Post
View Angle:


It seems to be read only but, haven't tested to change it...

Credits: @Jorndel
Don't forget roll! It's a Vector3, not 2.

Now, time for me to add something. For engine boxes, hook 0x540D6D and set the byte at 0x9D6230 to 10h (16d) and the dword at 0x9D6224 to 0. You can also check the word at 0x9D6230 for being 1000h to get isplaying if you get strange spectating bugs. Was going to release it, but it's too small.
not writeable


Force Host Player ammo and magazine Ammo

offset between players is 0x38EC


I just need to find the player ID / name to match then up
Quote Originally Posted by gteuk View Post


Force Host Player ammo and magazine Ammo

offset between players is 0x38EC


I just need to find the player ID / name to match then up
Use [IMG]url[/IMG] for your screenshot or just type them out
Srry, delete once changed
Quote Originally Posted by Horror View Post
Use [IMG]url[/IMG] for your screenshot or just type them out
Srry, delete once changed
Unable to edit but here are the player primary ammunition addresses for use in forced host

Code:
 Dim p1pa As Integer = &H1D02968 'Player 1 primary ammo
    Dim p2pa As Integer = &H1D06254 'Player 2 primary ammo
    Dim p3pa As Integer = &H1D09B40 'Player 3 primary ammo
    Dim p4pa As Integer = &H1D0D42C 'Player 4 primary ammo
    Dim p5pa As Integer = &H1D10D18 'Player 5 primary ammo
    Dim p6pa As Integer = &H1D14604 'Player 6 primary ammo
    Dim p7pa As Integer = &H1D17EF0 'Player 7 primary ammo
    Dim p8pa As Integer = &H1D1B7DC 'Player 8 primary ammo
    Dim p9pa As Integer = &H1D1F0C8 'Player 9 primary ammo
    Dim p10pa As Integer = &H1D229B8 'Player 10 primary ammo
    Dim p11pa As Integer = &H1D262A0 'Player 11 primary ammo
    Dim p12pa As Integer = &H1D29BC8 'Player 12 primary ammo
    Dim p13pa As Integer = &H1D2D478 'Player 13 primary ammo
    Dim p14pa As Integer = &H1D30D64 'Player 14 primary ammo
    Dim p15pa As Integer = &H1D35650 'Player 15 primary ammo
    Dim p16pa As Integer = &H1D37F3C 'Player 16 primary ammo
    Dim p17pa As Integer = &H1D3B828 'Player 17 primary ammo
    Dim p18pa As Integer = &H1D3F114 'Player 18 primary ammo
Any chance of someone helping with the writable health addresses, 1 will be fine as at least that will give me a start point

I will post other addresses for secondary and nades, flash etc, but they are all offsets
Quote Originally Posted by gteuk View Post
Unable to edit but here are the player primary ammunition addresses for use in forced host

Code:
 Dim p1pa As Integer = &H1D02968 'Player 1 primary ammo
    Dim p2pa As Integer = &H1D06254 'Player 2 primary ammo
    Dim p3pa As Integer = &H1D09B40 'Player 3 primary ammo
    Dim p4pa As Integer = &H1D0D42C 'Player 4 primary ammo
    Dim p5pa As Integer = &H1D10D18 'Player 5 primary ammo
    Dim p6pa As Integer = &H1D14604 'Player 6 primary ammo
    Dim p7pa As Integer = &H1D17EF0 'Player 7 primary ammo
    Dim p8pa As Integer = &H1D1B7DC 'Player 8 primary ammo
    Dim p9pa As Integer = &H1D1F0C8 'Player 9 primary ammo
    Dim p10pa As Integer = &H1D229B8 'Player 10 primary ammo
    Dim p11pa As Integer = &H1D262A0 'Player 11 primary ammo
    Dim p12pa As Integer = &H1D29BC8 'Player 12 primary ammo
    Dim p13pa As Integer = &H1D2D478 'Player 13 primary ammo
    Dim p14pa As Integer = &H1D30D64 'Player 14 primary ammo
    Dim p15pa As Integer = &H1D35650 'Player 15 primary ammo
    Dim p16pa As Integer = &H1D37F3C 'Player 16 primary ammo
    Dim p17pa As Integer = &H1D3B828 'Player 17 primary ammo
    Dim p18pa As Integer = &H1D3F114 'Player 18 primary ammo
Any chance of someone helping with the writable health addresses, 1 will be fine as at least that will give me a start point

I will post other addresses for secondary and nades, flash etc, but they are all offsets
Here you have an easier way of doing this:
Code:
Enum PlayerAmmo
        Player1 = &H1D02968
        Player2 = Player1 + &H38EC
        Player3 = Player2 + &H38EC
        Player4 = Player3 + &H38EC
        Player5 = Player4 + &H38EC
        Player6 = Player5 + &H38EC
        Player7 = Player6 + &H38EC
        Player8 = Player7 + &H38EC
        Player9 = Player8 + &H38EC
        Player10 = Player9 + &H38EC
        Player11 = Player10 + &H38EC
        Player12 = Player11 + &H38EC
        Player13 = Player12 + &H38EC
        Player14 = Player13 + &H38EC
        Player15 = Player14 + &H38EC
        Player16 = Player15 + &H38EC
        Player17 = Player16 + &H38EC
        Player18 = Player17 + &H38EC
    End Enum
All you need to do now is mainly update the First Address
And if it would become wrong, you find the ammo for player 1 and 2. Then you take player 2 - player 1.
And you have the DifVal and you can use it as I have done here.

EDIT:
In the code you can use it like this:
[code]WriteInteger(PlayerAmmo.Player1, 500)

__________________

EDIT:

Code:
Function SetAmmo(ByRef PlayerIndex As Integer)
        If (PlayerIndex > 17) Then Return 0

        Return &H1CFF07C + (&H38EC * PlayerIndex)
    End Function
Usage Like:
Code:
WriteInteger(SetAmmo(0), 100)




Edit to my TP code.
Code:
void TP(int Player, float cX, float, cY, float cZ)
{
	int pX = 0x1CFEC70 + (0x38EC * Player);
	int pY = 0x1CFEC74 + (0x38EC * Player);
	int pZ = 0x1CFEC78 + (0x38EC * Player);
	
	WriteFloat(pX, cX);
	WriteFloat(pY, cY);
	WriteFloat(pZ, cZ);
}
Update value: +3300 (Hex)

---------- Post added at 08:44 PM ---------- Previous post was at 08:35 PM ----------

 
Basic Stuff
Level
1DBD238

Prestige
1DBD448

Tokens
1DBF2A7

Custom Classes
1DBF2AF

Weapons Level
1DBD240

Pro Perks
1DBE1D2

Challenges
1DBDFC5

Accolades
1DBC7AC

Emblems
1DBF06C

Titles
1DBF0EC

Double XP
1DBF2FD

Double Wep XP
1DBF305

 
Stats
Score
1DBD450

Wins
1DBD4AC

Losses
1DBD4B0

Ties
1DBD4B4

Kills
1DBD478

Deaths
1DBD480

Assists
1DBD488

Killstreak
1DBD47C

Winstreak
1DBD4B8

Headshots
1DBD48C

Barrack Play Time
1DBD498

Leaderboard Play Time
1DBD4A4

 
Weapon Editing
Primary Weapon:
1DBD7D0
1DBD832
1DBD894
1DBD8F6
1DBD958
1DBD9BA
1DBDA1C
1DBDA7E
1DBDAE0
1DBDB42
1DBDBA4
1DBDC06
1DBDC68
1DBDCCA
1DBDD2C
1DBDD8E
1DBDDF0
1DBDE52
1DBDEB4
1DBDF16

Secondary Weapon:
1DBD7DC
1DBD83E
1DBD8A0
1DBD902
1DBD964
1DBD9C6
1DBDA28
1DBDA8A
1DBDAEC
1DBDB4E
1DBDBB0
1DBDC12
1DBDC74
1DBDCD6
1DBDD38
1DBDD9A
1DBDDFC
1DBDE5E
1DBDEC0
1DBDF22

Primary Prof:
1DBD7D8
1DBD83A
1DBD89C
1DBD8FE
1DBD960
1DBD9C2
1DBDA24
1DBDA86
1DBDAE8
1DBDB4A
1DBDBAC
1DBDC0E
1DBDC70
1DBDCD2
1DBDD34
1DBDD96
1DBDDF8
1DBDE5A
1DBDEBC
1DBDF1E

Secondary Prof:
1DBD7E4
1DBD846
1DBD8A8
1DBD90A
1DBD96C
1DBD9CE
1DBDA30
1DBDA92
1DBDAF4
1DBDB56
1DBDBB8
1DBDC1A
1DBDC7C
1DBDCDE
1DBDD40
1DBDDA2
1DBDE04
1DBDE66
1DBDEC8
1DBDF2A

Primary Attachment-1:
1DBD7D2
1DBD834
1DBD896
1DBD8F8
1DBD95A
1DBD9BC
1DBDA1E
1DBDA80
1DBDAE2
1DBDB44
1DBDBA6
1DBDC08
1DBDC6A
1DBDCCC
1DBDD2E
1DBDD90
1DBDDF2
1DBDE54
1DBDEB6
1DBDF18

Secondary Attachment-1:
1DBD7DE
1DBD840
1DBD8A2
1DBD904
1DBD966
1DBD9C8
1DBDA2A
1DBDA8C
1DBDAEE
1DBDB50
1DBDBB2
1DBDC14
1DBDC76
1DBDCD8
1DBDD3A
1DBDD9C
1DBDDFE
1DBDE60
1DBDEC2
1DBDF24

Primary Attachment-2:
1DBD7D4
1DBD836
1DBD898
1DBD8FA
1DBD95C
1DBD9BE
1DBDA20
1DBDA82
1DBDAE4
1DBDB46
1DBDBA8
1DBDC0A
1DBDC6C
1DBDCCE
1DBDD30
1DBDD92
1DBDDF4
1DBDE56
1DBDEB8
1DBDF1A

Secondary Attachment-2:
1DBD7E0
1DBD842
1DBD8A4
1DBD906
1DBD968
1DBD9CA
1DBDA2C
1DBDA8E
1DBDAF0
1DBDB52
1DBDBB4
1DBDC16
1DBDC78
1DBDCDA
1DBDD3C
1DBDD9E
1DBDE00
1DBDE62
1DBDEC4
1DBDF26

Primary Ret:
1DBD7DA
1DBD83C
1DBD89E
1DBD900
1DBD962
1DBD9C4
1DBDA26
1DBDA88
1DBDAEA
1DBDB4C
1DBDBAE
1DBDC10
1DBDC72
1DBDCD4
1DBDD36
1DBDD98
1DBDDFA
1DBDE5C
1DBDEBE
1DBDF20

Primary Camo:
1DBD7D6
1DBD838
1DBD89A
1DBD8FC
1DBD95E
1DBD9C0
1DBDA22
1DBDA84
1DBDAE6
1DBDB48
1DBDBAA
1DBDC0C
1DBDC6E
1DBDCD0
1DBDD32

Secondary Camo:
1DBD7E2
1DBD844
1DBD8A6
1DBD908
1DBD96A
1DBDA2E
1DBDA90
1DBDAF2
1DBDB54
1DBDBB6
1DBDC18
1DBDC7A
1DBDCDC
1DBDD3E
1DBDDA0

 
Sep Wep leveling
Assault:
1DBD260
1DBD268
1DBD274
1DBD27C
1DBD25C
1DBD270
1DBD258
1DBD26C
1DBD264
1DBD278

Sub & Light:
1DBD290
1DBD280
1DBD28C
1DBD288
1DBD284
1DBD294
1DBD2D0
1DBD2CC
1DBD2C8
1DBD2C4

Sniper:
1DBD2D8
1DBD2EC
1DBD2E4
1DBD2E8
1DBD2E0
1DBD2DC

Shotguns:
1DBD2B8
1DBD2BC
1DBD2C0
1DBD2AC
1DBD2B0
1DBD2B4

Secondary Weapons:
1DBD240
1DBD250
1DBD244
1DBD248
1DBD254
1DBD24C
1DBD298
1DBD2A0
1DBD2A4
1DBD29C

Riot Shield:
1DBD338

Launchers:
1DBD318
1DBD310
1DBD314
1DBD344
1DBD31C
1DBD2F4


---------- Post added at 08:48 PM ---------- Previous post was at 08:44 PM ----------

Constant UAV:
5AC6E34
'1-Byte
1.9.453
Code:
--------------[Auto Generated by -InSaNe- Scanner]---------------
---------------[Process: iw5mp.exe | Oct 10 2012]----------------
//Classes and Variables
RefDef...................0x00A44530
CG.......................0x009D9320
CGS......................0x009D4DA0
ViewMatrix...............0x0113DF6C
Entity...................0x00AE2940
Entity_Size..............0x000001F8
ClientInfo...............0x00AD69F8
ClientInfo_Size..........0x00000564
Input....................0x0113E010
IsInGame.................0x009D9330
Advanced UAV.............0x009D9524
Zoom.....................0x0113AB10
FullBright...............0x06098CEC
NoFog....................0x06098CF0
MagicNumber..............0x010CF7B0
GetWeaponName............0x00ADE5CC
ClanTag_Byte.............0x014039AB
ClanTag_Text.............0x014039C0
Title_Byte...............0x014039AC
Title_Text...............0x014039AD
Title....................0x014039C8

//Functions
RegisterFont.............0x00496D90
RegisterShader...........0x0049B130
EngineText...............0x0043C490
StrWidth.................0x005099A0
StrHeight................0x004F1AB0
CG_Trace.................0x00506110
IsVisible................0x00415450
GetPlayerTag.............0x0058A4E0
RegisterTag..............0x00401B30
NoRecoil.................0x00522E49
GetScreenMatrix..........0x00405C30
WorldToScreen............0x005A41B0
CG_Draw2D ...............0x0048C940
UI.ShowList..............0x0065F250
SendCommandToConsole.....0x00575880
DrawRotatedPic...........0x004D3E50
ProcessCommand...........0x00575880
BulletPenetration........0x005C4290
BulletPenetrationCheck...0x005C1840
DisableBulletImpacts.....0x005C41C0
No-Recoil2................0x005C99B7
Gun Laser................0x005C20F7
Credits: Me, g0dly, @killstreak, @barata55, @NightmareTX_RETIRED, @master131 and BaberZz
FoV:
5AC11E0
'Float


Title Text:
014039AD
'String

Unlock Title:
014039AC
'1-Byte

Set Title Image:
014039C8
'Bytes

________________


Clan Tag Text:
014039CC
'String (4 Length)

Unlock Clan Tag:
014039AB
'1-Byte


---------- Post added at 09:06 PM ---------- Previous post was at 08:59 PM ----------

Force Host:
5AB6BA0
'Integer

Max Players (Force Host Dvar):
ReadInteger(140C124 + 0xC)
'Integer


---------- Post added at 09:09 PM ---------- Previous post was at 09:06 PM ----------

Player Names: (Host Needed!)
Code:
enum Players
        {
            Player1 = 0x1d08c50,
            Player2 = Player1 + 0x38EC,
            Player3 = Player2 + 0x38EC,
            Player4 = Player3 + 0x38EC,
            Player5 = Player4 + 0x38EC,
            Player6 = Player5 + 0x38EC,
            Player7 = Player6 + 0x38EC,
            Player8 = Player7 + 0x38EC,
            Player9 = Player8 + 0x38EC,
            Player10 = Player9 + 0x38EC,
            Player11 = Player10 + 0x38EC,
            Player12 = Player11 + 0x38EC,
            Player13 = Player12 + 0x38EC,
            Player14 = Player13 + 0x38EC,
            Player15 = Player14 + 0x38EC,
            Player16 = Player15 + 0x38EC,
            Player17 = Player16 + 0x38EC,
            Player18 = Player17 + 0x38EC
        }


---------- Post added at 09:14 PM ---------- Previous post was at 09:09 PM ----------

Third-Person View:
5AC2318 (Fixed)
'1-Byte

Third-Person Range:
5AC2234
'Float

Third-Person Angle:
5AC2280
'Float
Why don't you use client_t to get player names?
Code:
typedef struct { 
     int Valid; //0x0 (0xAD69F8) 
     char _0x0004[0x8]; //0x4 
     char Name[16]; //0xC (0xAD6A04) 
     int Team; //0x1C (0xAD6A14) 
     char _0x0020[0x4]; //0x20 
     int Rank; //0x24 (0xAD6A1C) 
     char _0x0028[0x10]; //0x28 
     int Perk; //0x38 (0xAD6A30)
     char _0x003C[0x8]; //0x3C 
     int Score; //0x44 (0xAD6A3C) 
     char _0x0048[0x458]; //0x48 
     int Attacking; //0x4A0 (0xAD6E98) 
     char _0x04A4[0x4]; //0x4A4 
     int Zooming; //0x4A8 (0xAD6EA0) 
     char _0x04AC[0xB8]; //0x4AC 
}client_t; //[Addr: 0xAD69F8] [Size: 0x564]
So you just read the 0x00AD69F8 + 0x564 * clientnum and get the name from there
Code:
Game Version.............1.9.453
Version Build Date.......Mon Oct 01 21:28:16 2012

-------- Classes --------
Refdef...................0x00A44530
CG.......................0x009D9320
CGS......................0x009D4DA0
Entity...................0x00AE2940
Entity Size..............0x000001F8
ClientInfo...............0x00AD69F8
ClientInfo Size..........0x00000564
ViewMatrix...............0x0113DF28

-------- Variables --------
IsInGame.................0x009D9330
Refdef ViewAngles........0x00A4905C
ServerSet................0x01B3F228
PlayerSnap...............0x009D9320
KButtons.................0x00C14630
CvarList.................0x05AAA200
CvarList Size............0x05AA51D8
MapLighting (Fullbright).0x06098CEC
ViewAngleX...............0x0113E008
ViewAngleY...............0x0113E004
WeaponViewAngleX.........0x00A49098
WeaponViewAngleY.........0x00A4909C
GetWeaponName............0x00ADE5CC
GetWeapon................0x009B7D50
UserCmd Input............0x0113E010
UserCmd Size.............0x0000002C

-------- Functions --------
ProcessCommand...........0x00575880
CG_Trace.................0x005C66E0
CG_Init..................0x004D1160
CG_Obituary..............0x005A5FF0
RenderDevice.............0x06099328
RegisterFont.............0x00496D90
RegisterShader...........0x0049B130
DrawEngineText...........0x0043C490
DrawStretchPic...........0x004BC980
DrawRotatedPic...........0x004D3E50
GetScreenMatrix..........0x00405C30
StrWidth.................0x005099A0
WritePacket..............0x00489E10
GetSnapshot..............0x00493320
Thermal Overlay..........0x00461110
Adavanced UAV............0x01D057E4
DrawEngineRadar..........0x00455810
OverlayPackage...........0x0055C280
OverlayEnemy.............0x00477F60
OverlayFriendly..........0x004A8350
OverlayTurret............0x00551A40
OverlayHeli..............0x004D7040
OverlayLocal.............0x004FF0A0
OverlayPlane.............0x0042F3E0
Com_Error................0x0041D280
Com_Notice...............0x0049C120
MsgManager...............0x00436170
GetPlayerTag/GetBonePos..0x004865E0
GetTagPointer............0x0049AD10
RegisterTag..............0x00505680
IsVisible................0x00415450
BulletPenetrationCheck...0x005C1840
GetCurrentWeapon.........0x00415490
GetWeaponSpread..........0x0043E850
GetRandomFloat...........0x005FAE30

-------- Other/Unknown --------
KeyCatcher...............0x0113A96C
Aim Assist...............0x0058A4E0
Console..................0x00575880
Fonts....................0x004D1334
KillIcons................0x004D1433
Com_HashKey..............0x00443830
ServerCommandsSequence...0x00C37BF4
ServerCommands...........0x00C37BFC
CurrentCmdNumberAddr.....0x0113F610
CSnapshot................0x01147EE8
Credits to CypherPresents, godly, King-Orgy, raiders, cardoow, poink, Hooch, BaberZz, Chod and myself, master131.


Name: Advanced UAV
Address: 9D9524
Value: 1
AUG HBAR Custom Class #1
Address: 1DBD7D0
Bytes: 5A 00 00 00 00 00 08
Posts 166–180 of 282 · Page 12 of 19

Post a Reply

Similar Threads

Tags for this Thread

Need help?