![]() |
|
Portal |
Downloads |
Arcade |
Register |
FAQ |
|
|
|||||||
| Call of Duty 4: Modern Warfare The Fourth Installment in the CoD Series |
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Red F**king alert ***e!
Assassin
|
[Source] Totenkopf's Super Simple Nametags
Hey all,
I know this is nothing compared to the works of patrick/wurzil but its easy to understand and I hope some noobs will learn from it. I was going to write a simple COD4 hack using okidoki's method but PB updated to version 2.XX+ so I scraped it. Anyway, PB isnt scanning the exe yet (or at least some of the useful cvar's). I have removed all the okidoki stuff. This hack is PBPROOF for the time being. I've written this small hack which is a very simple nametags mempatch. It patches the Nametags which draws both enemy and friendly nametags (red && Green) as well changing the distance (draws nametags overwalls etc). There is no on/off toggle, and it uses NOPS. However, I have included the original values. I had originally intended to use this for COD4 1.0, thanks alot to silverfish for providing the 1.2 offsets. This hack is written for COD4 1.2, and is PBPROOF as of 24th/November/2007. Screenshot: Main.CPP: Code:
#include "main.h"
bool Nametags=true; // used to see if nametags is on or not.
int __stdcall DllMain(void* Module, unsigned long Reason, void* Reserved)
{
if(Reason == 1) // if injected do code below..
{
Modification(1); // turn on memory modifications
return 1;
}
return 1;
}
void __stdcall Modification(unsigned int arg)
{
if(arg == 1)
{
DWORD Protection;
// nametags
VirtualProtect((void*)lpteamc, 6, PAGE_READWRITE, &Protection);
memcpy((void*)lpteamc, (const void*)Six, 6); // nop it
VirtualProtect((void*)lpteamc, 6, Protection, 0);
//distance (visibility)
VirtualProtect((void*)lpdist, 2, PAGE_READWRITE, &Protection);
memcpy((void*)lpdist, (const void*)Two, 2); // nop it
VirtualProtect((void*)lpdist, 2, Protection, 0);
}
}
Code:
// Totenkopf/Quicktime's Simple COD4 Nametags Example
// Written for http://www.uc-forum.com
#define teams 0x42E090 // Where the function starts
int lpteamc = teams + 0xDC; // Team Check (disable to draw both)
int lpdist = teams + 0xFE; // Distance check, if drawn through walls etc
// Nop'd values kekeke
unsigned char Two[2] = { 0x90, 0x90 };
unsigned char Six[6] = { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 };
// Original values (if you want to make an on/off toggle etc
unsigned char NameTags[6] = { 0x0F, 0x85, 0xCE, 0x00, 0x00, 0x00 };
unsigned char Distance[2] = { 0x74, 0x25 };
// memory init func proto
void __stdcall Modification(unsigned int); //proto
// This is the ollydbg info: (this is 1.0 INFO)
/*
0042E19C |. 0F85 CE000000 |JNZ iw3mp.0042E270
0042DE94 |. 0F85 09020000 JNZ iw3mp.0042E0A3
0042E19C 0F84 CE000000 JE iw3mp.0042E270
0042DE94 0F84 09020000 JE iw3mp.0042E0A3
*/
http://www.mpcforum.com/showthread.p...64#post1977064 Have fun, Totenkopf. EDIT: I will code an injector to go with this when I can be bothered Detected. Last edited by Quicktime; 27th November 2007 at 23:50.. |
|
|
|
|
|
#2 |
|
Lord
Join Date: 13th Nov 2007
Posts: 33
|
Great post. You hit it on the head.
A noob like me. ![]() |
|
|
|
|
|
#3 |
|
Magician Apprentice
Join Date: 24th Nov 2007
Posts: 12
|
Will try it out, thx for the work.
Last edited by Madvillian77; 26th November 2007 at 03:02.. |
|
|
|
|
|
#4 |
|
New MPC User
Join Date: 13th Jul 2006
Posts: 2
|
Works great, good job
|
|
|
|
|
|
#5 |
|
Red F**king alert ***e!
Assassin
|
thanks alot for the feedback
![]() |
|
|
|
|
|
#6 |
|
加州红
Apprentice Knight
Join Date: 7th Mar 2004
Location: ΊΣΔΟΦ£Φέ.
Posts: 93
|
code an injector please!
__________________
Cheatin is my second life~NO cheat, No joy! |
|
|
|
|
|
#7 |
|
Banned by Admins
Dark Mage
Join Date: 10th Jun 2006
Posts: 23
|
i compiled it and im using codjunkie's loader to inject it and its working great.. alot less lag then having full on WH also..chams would be a good addition
i can attach a zip with this compiled and codjunkies loader if people need it and its allowed |
|
|
|
|
|
#8 |
|
MPC Member
Join Date: 30th Jan 2006
Posts: 6
|
plz release it
![]() |
|
|
|
|
|
#9 |
|
MPC Member
Join Date: 5th Mar 2007
Posts: 9
|
im guessin u have to know a thing or 2 about coding to get this to work?
|
|
|
|
|
|
#10 |
|
Banned by Admins
Dark Mage
Join Date: 10th Jun 2006
Posts: 23
|
here im just gonna post a link to it
I take no credit for this work nor have i modified these files in any way Loader - codjunkie NameTags - Totenkopf To use open the loader, first you point to your "iw3mp.exe" in your cod4 dir next point to the "SimpleNameTags.dll" in the name tags folder enjoy - once again if this isnt allowed with out a moderators approval i apologize, just trying to help Last edited by scruie; 26th November 2007 at 01:56.. |
|
|
|
|
|
#11 |
|
MPC Member
Join Date: 5th Mar 2007
Posts: 9
|
once im in game what do i do? because i did what u said and it loaded up..once in game it just played normal..
|
|
|
|
|
|
#12 |
|
Banned by Admins
Dark Mage
Join Date: 10th Jun 2006
Posts: 23
|
there is no hotkey it is always on
make sure that cg_drawFriendlyNames is set to 1 and that your using 1.2 and not 1.1 or 1.0 |
|
|
|
|
|
#13 |
|
MPC Member
Join Date: 5th Mar 2007
Posts: 9
|
i did and i still get nothing..i have v1.2 .. i downloaded the fileds u gave me..clicked the .exe directed it to my iw3mp then it asked me for the library thing i directed it to the simplenametags.dll then it loaded into the game...then i hit ` and typed cg_drawfriendlynames 1 then i went into a server and...nothing
|
|
|
|
|
|
#14 | |
|
Global Moderator
Power Overwhelming
|
Quote:
Attached file to post. If local mod wants to remove then feel free to do so. |
|
|
|
|
|
|
#15 |
|
Banned by Admins
Dark Mage
Join Date: 10th Jun 2006
Posts: 23
|
thanks scruie
and to anyone who cant get it to work by following the instructions i gave im sorry but i dont know enough about the game or the hack to really help beyond that just got the game a few days ago myself.. noticed people walling me in the death cam so i decided to see what was out there |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
|
|
![]() |
![]() |