Gaming Community
Forum
 
Go Back   D3scene > Hot Games > Call of Duty > CoD 4 forum
Register Blogs Live view Downloads Marketplace FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read

Add a COD4 hotkey

This is a discussion on Add a COD4 hotkey within the CoD 4 forum forum part of the Call of Duty category; Here's what i got so far to add COD4 hotkeys and it works perfectly in game. #include"windows.h" //Nametags BYTE Nametags1On[] ...


Welcome on D3scene.com! Make sure to register - it's free and very quick! You have to register before you can post and participate in our discussions with 70000 other registered members. Downloads, user profiles and some forums can only be seen by registered members. After you create your free account you will be able to customize many options, you will have the full access to new hacks, latest cheats and last but not least will see no advertisements at all. We would love to see you around in our community!
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 04-13-2008, 05:21 PM
hendricius's Avatar
Administrator

 
Join Date: Feb 2007
Location: Hamburg, Germany
Posts: 5,686
Blog Entries: 22
Thanks: 69
Thanked 63 Times in 24 Posts
Reputation: 1453
Rep Power: 12
hendricius has much to be proud ofhendricius has much to be proud ofhendricius has much to be proud ofhendricius has much to be proud ofhendricius has much to be proud ofhendricius has much to be proud ofhendricius has much to be proud ofhendricius has much to be proud ofhendricius has much to be proud ofhendricius has much to be proud of
Add a COD4 hotkey

Here's what i got so far to add COD4 hotkeys and it works perfectly in game.

Quote:
#include"windows.h"
//Nametags
BYTE Nametags1On[] = {0x0F, 0x84, 0xCE, 0x00, 0x00, 0x00};//Nametags
BYTE Nametags1Off[] = {0x0F, 0x85, 0xCE, 0x00, 0x00, 0x00};//0042E26C

BYTE Nametags2On[] = {0x0F, 0x84, 0x09, 0x02, 0x00, 0x00};//DrawThroughWalls
BYTE Nametags2Off[] = {0x0F, 0x85, 0x09, 0x02, 0x00, 0x00};//0042DF64

unsignedlong Protection;
BOOL WINAPI DllMain (HINSTANCE hModule, DWORD dwAttached, LPVOID lpvReserved)
{
if (dwAttached == DLL_PROCESS_ATTACH)
{
VirtualProtect((void*)0x0042E26C, 6, PAGE_READWRITE, &Protection);
memcpy((void*)0x0042E26C, (constvoid*)Nametags1On, 6);
VirtualProtect((void*)0x0042E26C, 6, Protection, 0);

VirtualProtect((void*)0x0042DF64, 6, PAGE_READWRITE, &Protection);
memcpy((void*)0x0042DF64, (constvoid*)Nametags2On, 6);
VirtualProtect((void*)0x0042DF64, 6, Protection, 0);
}
}
but i would like to be able to toggle it on and off while in game....could someone kindly give me a hand to get like a hotkey happening here...i have had previous attempts but obviously with no luck so far...

here would be the off feature

Quote:
VirtualProtect((void*)0x0042E26C, 6, PAGE_READWRITE, &Protection);
memcpy((void*)0x0042E26C, (constvoid*)Nametags1Off, 6);
VirtualProtect((void*)0x0042E26C, 6, Protection, 0);

VirtualProtect((void*)0x0042DF64, 6, PAGE_READWRITE, &Protection);
memcpy((void*)0x0042DF64, (constvoid*)Nametags2Off, 6);
VirtualProtect((void*)0x0042DF64, 6, Protection, 0);
source:
[Coding] - Adding a hotkey - UnKnoWnCheaTs
Reply With Quote
D3scene
Welcome to D3scene - probably the best location for all Gamers.

To participate in our friendly environment you have to register. After completing registration you will have full access to all threads and features. We care about members and try to make your stay as pleasant as possible. We are unique with the following feature for members - you will not see a single Advertisement!


The best: registration is completely free. It will not cost you a single penny or harm you in any way. You will lose nothing except 1 minute of your time. So why not register? We would be happy to see you around!
  #2  
Old 04-13-2008, 05:24 PM
Ryan's Avatar
myspace.com/ryan_str0up

 
Join Date: Jul 2007
Location: Folsom, California
Posts: 2,202
Thanks: 0
Thanked 0 Times in 0 Posts
Reputation: 477
Rep Power: 6
Ryan is a glorious beacon of lightRyan is a glorious beacon of lightRyan is a glorious beacon of lightRyan is a glorious beacon of lightRyan is a glorious beacon of light
Send a message via MSN to Ryan Send a message via Yahoo to Ryan
Very Nice. Rep Added.
Reply With Quote
  #3  
Old 08-19-2008, 03:07 AM
firefly71's Avatar
Wannabe Member

 
Join Date: Aug 2008
Location: New Jersey
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Reputation: 1
Rep Power: 2
firefly71 is an unknown quantity at this point
Very nice indeed
Reply With Quote
  #4  
Old 08-26-2008, 06:03 AM
Newbie

 
Join Date: Aug 2008
Location: Texas
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Reputation: 1
Rep Power: 2
Pennypacker is an unknown quantity at this point
ty
Reply With Quote
D3scene
Welcome to D3scene - probably the best location for all Gamers.

To participate in our friendly environment you have to register. After completing registration you will have full access to all threads and features. We care about members and try to make your stay as pleasant as possible. We are unique with the following feature for members - you will not see a single Advertisement!


The best: registration is completely free. It will not cost you a single penny or harm you in any way. You will lose nothing except 1 minute of your time. So why not register? We would be happy to see you around!
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Quantum's lossbot tutorial , well explained quantum Warcraft 3 forum 11 10-04-2009 09:58 PM
How to setting Up Your Own AC-Web Server/How to make it public/How to add items etc.! allexutz WoW Private Server Info & Help 19 10-07-2008 02:21 AM
[Guide] Add your own .ini to your GS Milamber Mu Archives 0 03-22-2008 09:08 PM
How to add Vendor Waypoints hendricius Glider 0 03-20-2008 12:38 PM
Photoshop. Where please? Velocity General Chat 30 09-24-2007 09:14 PM


All times are GMT +1. The time now is 11:30 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 ©2009, Crawlability, Inc.
vBulletin style developed by Transverse Styles