View Full Version : [Release] CoD2 Wrapper Source
wurzil
30th November 2005, 16:35
CoD2 wrapper I stuck together using public info to help those new to d3d
start to learn.This is for educational purposes, not to release 100 hax
on mpc.Trust me the mods will just delete the posts if you start posting copies of this, so be warned.Have fun, take time to learn.
You will need the d3d sdk to compile this. http://msdn.microsoft.com/directx/
Model Rec is not, complete, Model Rec finder has n00b errors in on purpose.
Contains light chams
Wallhack
whitewalls
nofog
Crosshair
Clock
Text printing
Thanks to -
Kryptech - model rec
FlameGod - Text printing
Casper - wrapper
Killzar - keepin me stoned
killzar
30th November 2005, 16:47
what took you so long matey?
Greener?? yes matey, mee too "toke!" :P
hehehehehe,
Bd or any other mod u can un-sticky this thread if you like
but i think this is gonna be a thread people are gonna wanna download view/chat spam
Please Take note
[This is a Source Release That You Need To Compile]
[This is not a hack]
Virtuosofriend
30th November 2005, 17:47
thanks for posting it on Rage as well :D
SNAFUBAR
30th November 2005, 17:59
Which SDK exactly? d3d extras or the 9.0c SDK?
dx90_sdk_extras_direct3d.exe...?
Cyclone
30th November 2005, 18:01
how do u use it theres no readme or a .exe file?
killzar
30th November 2005, 18:07
this is a source code,
there is no exe,
u need VC++ 6/7 or ......
and you will need [DirectX SDK. 9.0b] or Later will be Ok.
Please dont turn this thread into spam.
Or it will just Get locked/closed
MyZt
30th November 2005, 20:15
Nice, thanks Wurzil! :)
Mahlzeit
1st December 2005, 14:34
sry but i cant understand that can sonone translate that in german?
or what is this tool for use?
BlackDove
1st December 2005, 15:21
You will need Microsoft Visual C++ 6.0 and some programming experience. Do not mention downloading it illegally, or you will be warned.
pimper
1st December 2005, 19:12
sry but i cant understand that can sonone translate that in german?
or what is this tool for use?
damit kannst du dir selber hax schreiben, das ist so zu sagen dei plattform für cheats:knockedou
RedGhost
1st December 2005, 23:52
based on your counts it seems you dont have perfect model rec, just the uniform i take it
ModRec3 = primCount + NumVertices + m_Stride;
that doesnt make any sense since a combination of a different primCount and NumVertices than the ones you wish could render the same final sum
eg:
NumVertices = 36, primCount = 40, final = 76
NumVertices = 45, primCount = 31, final = 76
just log the primCount and NumVertices and check if( stride == ## ) then if( NumVertices == # && primCount == # )
and you can end up with perfect model rec like so:
http://img463.imageshack.us/img463/5298/detailskinhack6kg.jpg
also StartIndex == 0, will filter out any fog, and hud and etc
killzar
2nd December 2005, 03:15
i dont think this was ever ment to be finished as perfect as wurzil stated
in his original post.
this was intended to be an Open source release.
If you want u can add the edited filename.cpp and filename.h into
a zip or rar. attach it and ill put it into the first page.
since this was intended to help people.
i cant see why people cannot alter/add to the original post.
:)
Nseven
2nd December 2005, 13:31
nice work wurzil, I used stacks for model rec but my values don't work for other people :rolleyes:
BlackDove
2nd December 2005, 16:05
I used SetTexture and read the names of the textures for model recognition. For textures like $white, I used the locations and values of left over strides on the stack also inside the SetTexture hook. It works perfectly for all player models, just not the best for team recognition. Apparently, there are many ways to perform model recognition with D3D games.
RedGhost
3rd December 2005, 01:54
numvertices+primcount works on all d3d modes and texture settings and can make near perfect team rec and model rec its just ALOT of damn logging, i just dont see why you would use the math he did which leaves room for serious error
wurzil
4th December 2005, 13:07
numvertices+primcount works on all d3d modes and texture settings and can make near perfect team rec and model rec its just ALOT of damn logging, i just dont see why you would use the math he did which leaves room for serious error
Well it seems the modek rec I provided may not work for everyone else, even tho it works for some :S
I tried your suggestion redghost, it seems your math is open to the same errors you said mine was . For example, when all models are id'd some are the same as other things[not fog, not hud etc]
American model = flatbed truck,British model = tank wheels,German model = furniture and the list goes on :S
Theres a lot of NumVertices+primCount here for anyone who wants them, I got sick after a while at the mess .
///Americans
#define USAVert1 NumVertices==1069 ||NumVertices==615 ||NumVertices==3366 ||NumVertices==2521 ||NumVertices==968 ||NumVertices==455 || NumVertices==3987 ||NumVertices==2650 ||NumVertices==1189 ||NumVertices==474 ||NumVertices==3861 ||NumVertices==2635 || NumVertices==486 || NumVertices==937 || NumVertices==2118 || NumVertices==3315 || NumVertices==543 || NumVertices==1058 || NumVertices==2310 || NumVertices==3582 || NumVertices==485 || NumVertices==906 || NumVertices==2127 || NumVertices==3513 || NumVertices==3581 || NumVertices==2193 || NumVertices==1162 || NumVertices==3366 || NumVertices==2521 || NumVertices==968 || NumVertices==455 || NumVertices==546 || NumVertices==1085 || NumVertices==2446 || NumVertices==3949 || NumVertices==3861 || NumVertices==2635 || NumVertices==1069 || NumVertices==615 || NumVertices==3989 || NumVertices==2651 || NumVertices==1189 || NumVertices==504
#define USAPrim1 primCount==366 || primCount==934 || primCount==3068 || primCount==4456 || primCount==434 || primCount==982 || primCount==2868 || primCount==4972 || primCount==384 || primCount==1156 || primCount==3172 || primCount==5208 || primCount==374 || primCount==924 || primCount==2670 || primCount==4496 || primCount==398 || primCount==1064 || primCount==2788 || primCount==4898 || primCount==388 || primCount==894 || primCount==2652 || primCount==4652 || primCount==1136 || primCount==3324 || primCount==4946 || primCount==366 || primCount==934 || primCount==3068 || primCount==4456 || primCount==1000 || primCount==398 || primCount==2926 || primCount==5130 || primCount==4972 || primCount==2868 || primCount==982 || primCount==434 || primCount==5208 || primCount==3172 || primCount==1156 || primCount==394
//British
#define BritVert1 NumVertices==3941 || NumVertices==2941 || NumVertices==3386 || NumVertices==980 || NumVertices==347 || NumVertices==3809 || NumVertices==2779 || NumVertices==908 || NumVertices==418 || NumVertices==2744 || NumVertices==1488 || NumVertices==574 || NumVertices==243 || NumVertices==412 || NumVertices==903 || NumVertices==2820 || NumVertices==3955 || NumVertices==347 || NumVertices==980 || NumVertices==2398 || NumVertices==3386 || NumVertices==2911 || NumVertices==601 || NumVertices==2538 || NumVertices==265 || NumVertices==1657 || NumVertices==333 || NumVertices==1535 || NumVertices==517
#define BritPrim1 primCount==3010 || primCount==5100 || primCount==4690 || primCount==808 || primCount==240 || primCount==2768 || primCount==716 || primCount==288 || primCount==1426 || primCount==450 || primCount==176 || primCount==2952 || primCount==246 || primCount==722 || primCount==722 || primCount==2692 || primCount==5144 || primCount==144 || primCount==135 || primCount==808 || primCount==2694 || primCount==4690 || primCount==3348 || primCount==496 || primCount==222 || primCount==2692 || primCount==1608 || primCount==186 || primCount==1746 || primCount==430
//Russian
#define RusVert1 NumVertices==2831 || NumVertices==1195 || NumVertices==328 || NumVertices==2917 ||NumVertices==2308 ||NumVertices==759 ||NumVertices==2952 ||NumVertices==2050 ||NumVertices==785 ||NumVertices==371 ||NumVertices==3029 ||NumVertices==1880 ||NumVertices==844 ||NumVertices==383 || NumVertices==3214 ||NumVertices==2275 ||NumVertices==747 ||NumVertices==400 || NumVertices==2608 ||NumVertices==1928 ||NumVertices==699 ||NumVertices==237 ||NumVertices==2608 ||NumVertices==1928 ||NumVertices==699
#define RusPrim1 primCount==5022 || primCount==3424 || primCount==1248|| primCount==268 || primCount==4234 || primCount==2614 || primCount==758 || primCount==4476 || primCount==2716 || primCount==766 || primCount==284 || primCount==4292 || primCount==2426 || primCount==768 || primCount==258 || primCount==2668 || primCount==704 || primCount==304 || primCount==3746 || primCount==2354 || primCount==706 || primCount==190 || primCount==3746 || primCount==2354 || primCount==706
//German
#define GerVert1 NumVertices==2763 || NumVertices==1004 || NumVertices==309 || NumVertices==2639 || NumVertices==1673 || NumVertices==728 || NumVertices==226 || NumVertices==3006 || NumVertices==1696 || NumVertices==611 || NumVertices==250 || NumVertices==3176 || NumVertices==1683 || NumVertices==568 || NumVertices==351
#define GerPrim1 primCount==250 || primCount==3330 || primCount==1848 || primCount==630 || primCount==198 || primCount==832 || primCount==3148 || primCount==1844 || primCount==526 || primCount==220 || primCount==3702 || primCount==3864 || primCount==1800 || primCount==464 || primCount==286
xtool
5th December 2005, 04:46
Thanks wurzil!
Now I can fire up my VBStudio again. See if I can still be an Elite like you all. . . maybe not, perhaps someday. :laugh:
Anyway, thanks!
slick_predator
6th December 2005, 02:07
im sorry im new, and i cannot beg/ask for hack's from anyone.
(edited By KiLLzAr Moderator)
if some1 is that generous to help a noob...
killzar
6th December 2005, 02:21
Do not beg/Ask for people to give you hacks.
If you only bothered to look. wurzil has already compiled this
and released it [Wurzils multi-Hack]
so shame on you for not searching,and not checkin the rules on
beggin for cheats :P
RedGhost
6th December 2005, 04:52
Well it seems the modek rec I provided may not work for everyone else, even tho it works for some :S
I tried your suggestion redghost, it seems your math is open to the same errors you said mine was . For example, when all models are id'd some are the same as other things[not fog, not hud etc]
American model = flatbed truck,British model = tank wheels,German model = furniture and the list goes on :S
Theres a lot of NumVertices+primCount here for anyone who wants them, I got sick after a while at the mess .
///Americans
#define USAVert1 NumVertices==1069 ||NumVertices==615 ||NumVertices==3366 ||NumVertices==2521 ||NumVertices==968 ||NumVertices==455 || NumVertices==3987 ||NumVertices==2650 ||NumVertices==1189 ||NumVertices==474 ||NumVertices==3861 ||NumVertices==2635 || NumVertices==486 || NumVertices==937 || NumVertices==2118 || NumVertices==3315 || NumVertices==543 || NumVertices==1058 || NumVertices==2310 || NumVertices==3582 || NumVertices==485 || NumVertices==906 || NumVertices==2127 || NumVertices==3513 || NumVertices==3581 || NumVertices==2193 || NumVertices==1162 || NumVertices==3366 || NumVertices==2521 || NumVertices==968 || NumVertices==455 || NumVertices==546 || NumVertices==1085 || NumVertices==2446 || NumVertices==3949 || NumVertices==3861 || NumVertices==2635 || NumVertices==1069 || NumVertices==615 || NumVertices==3989 || NumVertices==2651 || NumVertices==1189 || NumVertices==504
#define USAPrim1 primCount==366 || primCount==934 || primCount==3068 || primCount==4456 || primCount==434 || primCount==982 || primCount==2868 || primCount==4972 || primCount==384 || primCount==1156 || primCount==3172 || primCount==5208 || primCount==374 || primCount==924 || primCount==2670 || primCount==4496 || primCount==398 || primCount==1064 || primCount==2788 || primCount==4898 || primCount==388 || primCount==894 || primCount==2652 || primCount==4652 || primCount==1136 || primCount==3324 || primCount==4946 || primCount==366 || primCount==934 || primCount==3068 || primCount==4456 || primCount==1000 || primCount==398 || primCount==2926 || primCount==5130 || primCount==4972 || primCount==2868 || primCount==982 || primCount==434 || primCount==5208 || primCount==3172 || primCount==1156 || primCount==394
//British
#define BritVert1 NumVertices==3941 || NumVertices==2941 || NumVertices==3386 || NumVertices==980 || NumVertices==347 || NumVertices==3809 || NumVertices==2779 || NumVertices==908 || NumVertices==418 || NumVertices==2744 || NumVertices==1488 || NumVertices==574 || NumVertices==243 || NumVertices==412 || NumVertices==903 || NumVertices==2820 || NumVertices==3955 || NumVertices==347 || NumVertices==980 || NumVertices==2398 || NumVertices==3386 || NumVertices==2911 || NumVertices==601 || NumVertices==2538 || NumVertices==265 || NumVertices==1657 || NumVertices==333 || NumVertices==1535 || NumVertices==517
#define BritPrim1 primCount==3010 || primCount==5100 || primCount==4690 || primCount==808 || primCount==240 || primCount==2768 || primCount==716 || primCount==288 || primCount==1426 || primCount==450 || primCount==176 || primCount==2952 || primCount==246 || primCount==722 || primCount==722 || primCount==2692 || primCount==5144 || primCount==144 || primCount==135 || primCount==808 || primCount==2694 || primCount==4690 || primCount==3348 || primCount==496 || primCount==222 || primCount==2692 || primCount==1608 || primCount==186 || primCount==1746 || primCount==430
//Russian
#define RusVert1 NumVertices==2831 || NumVertices==1195 || NumVertices==328 || NumVertices==2917 ||NumVertices==2308 ||NumVertices==759 ||NumVertices==2952 ||NumVertices==2050 ||NumVertices==785 ||NumVertices==371 ||NumVertices==3029 ||NumVertices==1880 ||NumVertices==844 ||NumVertices==383 || NumVertices==3214 ||NumVertices==2275 ||NumVertices==747 ||NumVertices==400 || NumVertices==2608 ||NumVertices==1928 ||NumVertices==699 ||NumVertices==237 ||NumVertices==2608 ||NumVertices==1928 ||NumVertices==699
#define RusPrim1 primCount==5022 || primCount==3424 || primCount==1248|| primCount==268 || primCount==4234 || primCount==2614 || primCount==758 || primCount==4476 || primCount==2716 || primCount==766 || primCount==284 || primCount==4292 || primCount==2426 || primCount==768 || primCount==258 || primCount==2668 || primCount==704 || primCount==304 || primCount==3746 || primCount==2354 || primCount==706 || primCount==190 || primCount==3746 || primCount==2354 || primCount==706
//German
#define GerVert1 NumVertices==2763 || NumVertices==1004 || NumVertices==309 || NumVertices==2639 || NumVertices==1673 || NumVertices==728 || NumVertices==226 || NumVertices==3006 || NumVertices==1696 || NumVertices==611 || NumVertices==250 || NumVertices==3176 || NumVertices==1683 || NumVertices==568 || NumVertices==351
#define GerPrim1 primCount==250 || primCount==3330 || primCount==1848 || primCount==630 || primCount==198 || primCount==832 || primCount==3148 || primCount==1844 || primCount==526 || primCount==220 || primCount==3702 || primCount==3864 || primCount==1800 || primCount==464 || primCount==286
check for numverts and primcount on stride 36 if startindex is 0 and you should 0 problems with team rec... also that wouldnt be my math that would be the counts of the game, direct comparison leaves no room for mathematical error, maybe you should read to what i said in my first post which explains what i meant by room for serious error...
lansaloth
7th December 2005, 12:54
hi can anybody help please where i can get this hack to download
or somebody whant to trade it with a orginal battlefield 2 cdkey and an orginal cod uo cdkey (never used) http://nseven.elitecoders.org/cod2hack.jpg
BlackDove says: You have been banned for not following the directions in the first post of this thread. Also, trading CD keys falls under the category of warez discussion. It is also your first post here, so read the rules if you decide to create another account. Also, the hack in that picture you posted is private.
fatalerr0r
20th December 2005, 10:23
thx wurzil for this source.Im having a proplem with compling.I get this error
--------------------Configuration: d3d wrapper - Win32 Release--------------------
Compiling...
d3d9.cpp
idirect3d9.cpp
idirect3ddevice9.cpp
C:\Documents and Settings\Owner\Desktop\CoD2Source\idirect3ddevice9 .cpp(234) : error C2660: 'DrawTextA' : function does not take 6 parameters
C:\Documents and Settings\Owner\Desktop\CoD2Source\idirect3ddevice9 .cpp(258) : error C2660: 'DrawTextA' : function does not take 6 parameters
C:\Documents and Settings\Owner\Desktop\CoD2Source\idirect3ddevice9 .cpp(259) : error C2660: 'DrawTextA' : function does not take 6 parameters
C:\Documents and Settings\Owner\Desktop\CoD2Source\idirect3ddevice9 .cpp(805) : error C2660: 'D3DXCreateFont' : function does not take 12 parameters
Error executing cl.exe.
d3d9.dll - 4 error(s), 0 warning(s)
i have dx90bsdk installed aswell
BlackDove
20th December 2005, 14:01
If you have compilation errors, maybe wurzil will help you on an instant messaging program or PMs. Please do not post any more errors again. If everyone post his or her errors, this thread would become unreadable. Knowing how to fix your errors just as important as knowing the code you are trying to get to work.
ptical
26th December 2005, 23:27
some picture plz
how use this?
killzar
27th December 2005, 02:11
pictures???
i think u would need a d3d tutorial,
and also some c++ skills.
this is a source release.
so you can code your own hack.
if you are un-happy with wurzils, warlords just make your own
hope this helped.
ptical
27th December 2005, 10:42
this dont works on my PC
killzar
27th December 2005, 12:08
then obviousley you havent a clue how to work it!!
dont blame us cuz u dont have c++ on your pc :P
nXk
9th January 2006, 21:10
Ty Wurzil xD I just started c++ hope I can learn something from it :-)
blah85
10th February 2006, 17:58
OMG.... I've been following this thread and after 3 min of reading, it has become blatantly obvious that Wurz just built the open source for others to learn from. What has also become obvious is peoples general lack of attention...
He and others have said many many times that this is NOT A WORKING HACK, yet people still get on here and say "derrrr... wheres the exe?" lmao. Apparently they have no concept of how a forum or set of instructions work...
This release was simply meant as a "spring board" for those wishing to LEARN HOW TO CODE IN D3D.
Heres a tip for all who just want a working hack... Stop reading this thread cuz it aint gunna happen, and go to the downloads page and get one.
Can I get an ayyymenaahhhh !
Before wurz'z open source for cod I didnt know anything about coding. Thanx to his efforts, I know now and can move on to D3D.
Thanx Wurz! Your awesome m8.
Fortunity
23rd February 2006, 20:10
You rock
BlackDove says: warned again for spam.
jugga
26th February 2006, 01:32
thanks, i was hoping to be able to make my own simple wallhack after checking out the source unfortunately, this just shows me how much i suck at programming :(.
wurzil
5th May 2006, 17:52
Can drop this thread now if you want guys, as we all know its pretty useless now.Its only real use now is already covered at MSDN anyway.
BlackDove says: Thread unstuck. Hopefully all the new members won't post in it thinking this is a new thread.
alien56
30th September 2006, 10:18
Was this attatchment purposely removed? even if it is out of date I would still like to view the source.....
sorry...just noticed the 3rd page
BlackDove
30th September 2006, 17:31
Check the other thread you created and always look in the Cheats & Hacks thread since attachments don't always work.
SMO
13th October 2006, 23:19
Here's a link to the file
http://www.rootkit.com/vault/hoglund/CoD2Source.rar
If Wurzil want's it off I'll take it off.
doop doop
14th October 2006, 01:17
awesome post sir...thanks!
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.