MPC Forums
BattleApps


Go Back   MPC Forums > ..:: Games ::.. > Call of Duty: General > Call of Duty 4: Modern Warfare

Call of Duty 4: Modern Warfare The Fourth Installment in the CoD Series

Reply
 
Thread Tools
Old 24th November 2007, 06:39   #1
Quicktime
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);

 }
    
 }
Main.H

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
*/
Download full project:
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..
Quicktime is offline   Reply With Quote
Old 24th November 2007, 09:24   #2
SyD1337
Lord
 
Great post. You hit it on the head. A noob like me.
SyD1337 is offline   Reply With Quote
Old 24th November 2007, 10:13   #3
Madvillian77
Magician Apprentice
 
Madvillian77's Avatar
 
Will try it out, thx for the work.

Last edited by Madvillian77; 26th November 2007 at 03:02..
Madvillian77 is offline   Reply With Quote
Old 24th November 2007, 18:33   #4
shimano
New MPC User
 
Works great, good job
shimano is offline   Reply With Quote
Old 24th November 2007, 21:45   #5
Quicktime
Red F**king alert ***e!
Assassin
 
thanks alot for the feedback
Quicktime is offline   Reply With Quote
Old 24th November 2007, 23:10   #6
KCKCKC2004
加州红
Apprentice Knight
 
KCKCKC2004's Avatar
 
code an injector please!
__________________
Cheatin is my second life~NO cheat, No joy!
KCKCKC2004 is offline   Reply With Quote
Old 25th November 2007, 22:33   #7
0o0o0o0o0
Banned by Admins
Dark Mage
 
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
0o0o0o0o0 is offline   Reply With Quote
Old 25th November 2007, 22:53   #8
LiMiTED
MPC Member
 
plz release it
LiMiTED is offline   Reply With Quote
Old 25th November 2007, 23:45   #9
Trigg
MPC Member
 
im guessin u have to know a thing or 2 about coding to get this to work?
Trigg is offline   Reply With Quote
Old 26th November 2007, 00:42   #10
0o0o0o0o0
Banned by Admins
Dark Mage
 
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
Attached Files
File Type: rar nametags.rar (34.7 KB, 195 views)

Last edited by scruie; 26th November 2007 at 01:56..
0o0o0o0o0 is offline   Reply With Quote
Old 26th November 2007, 00:50   #11
Trigg
MPC Member
 
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..
Trigg is offline   Reply With Quote
Old 26th November 2007, 01:17   #12
0o0o0o0o0
Banned by Admins
Dark Mage
 
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
0o0o0o0o0 is offline   Reply With Quote
Old 26th November 2007, 01:23   #13
Trigg
MPC Member
 
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
Trigg is offline   Reply With Quote
Old 26th November 2007, 01:57   #14
scruie
Global Moderator
Power Overwhelming
 
scruie's Avatar
 
Quote:
Originally Posted by 0o0o0o0o0 View Post
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

Attached file to post.

If local mod wants to remove then feel free to do so.
__________________
AgeRage Shop - Buy Your Valid CD-Key Today!
scruie is offline   Reply With Quote
Old 26th November 2007, 03:02   #15
0o0o0o0o0
Banned by Admins
Dark Mage
 
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
0o0o0o0o0 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 01:12.

Powered by vBulletin® Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Style Provided By: Wrestling Clique - Wrestling Forums


Page generated in 0.19234 seconds with 12 queries