View Full Version : trying to make a hack
NightElf
17th June 2003, 06:15
need soem help form da buzz and/or jessen see im trying to make a hack for ns based off of ogc 7.42 or some liek that i cant get the aimbot to reconie teams its say in consoel liek pvx=unknownteam alien and stuff liek that how do i fix that and is aogc 7.42 good or shoudl i do ogc 9 or a ugc based soruce
Da BuzZ
17th June 2003, 13:47
i would suggest ogc 9.01 :p
and here's how to fix the support for NS for OGC 9.01
Open the client.cpp and go down to: USER_MSG_INTERCEPT(TeamInfo), then add this code under the code "teamNumber.add("terrorist", 1);"
teamNumber.add("alien1team", 1); // Aliens
teamNumber.add("marine1team", 2 ); // Marines
teamNumber.add("observers", 0); // People who wish to spectate the game
teamNumber.add("undefinedteam", 0); // People in the ready room
NightElf
17th June 2003, 18:15
thnx man ok i am swiching everthign over to ogc 9.01 now if i could just get micrsoft visual c++ to compile got 23 erors!!!! if i get those fixed then i might relase it so prepare for some compiction da buzz and jeseen and by the way im using that ompile ogc thing in the coding forum
Da BuzZ
17th June 2003, 18:21
Will look forward to it :p What kind of errors?
NightElf
17th June 2003, 18:29
here they are
--------------------Configuration: Night Elf hook - Win32 Release--------------------
Compiling...
aimbot.cpp
C:\Documents and Settings\Jon Anderson\Desktop\OGCtutorial\DLL\aimbot.cpp(38) : fatal error C1083: Cannot open include file: 'cl_dll.h': No such file or directory
apihook.cpp
C:\Documents and Settings\Jon Anderson\Desktop\OGCtutorial\DLL\apihook.cpp(96) : error C2106: '=' : left operand must be l-value
C:\Documents and Settings\Jon Anderson\Desktop\OGCtutorial\DLL\apihook.cpp(114) : error C2440: '=' : cannot convert from 'unsigned long' to 'unsigned long *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
C:\Documents and Settings\Jon Anderson\Desktop\OGCtutorial\DLL\apihook.cpp(228) : error C2440: '=' : cannot convert from 'unsigned long *' to 'unsigned long'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
C:\Documents and Settings\Jon Anderson\Desktop\OGCtutorial\DLL\apihook.cpp(233) : error C2440: '=' : cannot convert from 'unsigned long' to 'unsigned long *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
C:\Documents and Settings\Jon Anderson\Desktop\OGCtutorial\DLL\apihook.cpp(240) : error C2440: '=' : cannot convert from 'unsigned long' to 'unsigned long *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
AutoMove.cpp
C:\Documents and Settings\Jon Anderson\Desktop\OGCtutorial\DLL\client.h(5) : fatal error C1083: Cannot open include file: 'util_vector.h': No such file or directory
bind.cpp
C:\Documents and Settings\Jon Anderson\Desktop\OGCtutorial\DLL\bind.cpp(413) : error C2065: 'WM_XBUTTONDBLCLK' : undeclared identifier
C:\Documents and Settings\Jon Anderson\Desktop\OGCtutorial\DLL\bind.cpp(413) : error C2051: case expression not constant
C:\Documents and Settings\Jon Anderson\Desktop\OGCtutorial\DLL\bind.cpp(414) : error C2065: 'WM_XBUTTONDOWN' : undeclared identifier
C:\Documents and Settings\Jon Anderson\Desktop\OGCtutorial\DLL\bind.cpp(414) : error C2051: case expression not constant
C:\Documents and Settings\Jon Anderson\Desktop\OGCtutorial\DLL\bind.cpp(415) : error C2065: 'GET_XBUTTON_WPARAM' : undeclared identifier
C:\Documents and Settings\Jon Anderson\Desktop\OGCtutorial\DLL\bind.cpp(416) : error C2065: 'XBUTTON1' : undeclared identifier
C:\Documents and Settings\Jon Anderson\Desktop\OGCtutorial\DLL\bind.cpp(421) : error C2065: 'WM_XBUTTONUP' : undeclared identifier
C:\Documents and Settings\Jon Anderson\Desktop\OGCtutorial\DLL\bind.cpp(421) : error C2051: case expression not constant
C:\Documents and Settings\Jon Anderson\Desktop\OGCtutorial\DLL\bind.cpp(429) : error C2065: 'GET_WHEEL_DELTA_WPARAM' : undeclared identifier
C:\Documents and Settings\Jon Anderson\Desktop\OGCtutorial\DLL\bind.cpp(450) : error C2065: 'MK_XBUTTON1' : undeclared identifier
C:\Documents and Settings\Jon Anderson\Desktop\OGCtutorial\DLL\bind.cpp(451) : error C2065: 'MK_XBUTTON2' : undeclared identifier
client.cpp
C:\Documents and Settings\Jon Anderson\Desktop\OGCtutorial\DLL\client.cpp(53) : fatal error C1083: Cannot open include file: 'r_studioint.h': No such file or directory
console.cpp
C:\Documents and Settings\Jon Anderson\Desktop\OGCtutorial\DLL\client.h(5) : fatal error C1083: Cannot open include file: 'util_vector.h': No such file or directory
hookqueue.cpp
C:\Documents and Settings\Jon Anderson\Desktop\OGCtutorial\DLL\client.h(5) : fatal error C1083: Cannot open include file: 'util_vector.h': No such file or directory
main.cpp
C:\Documents and Settings\Jon Anderson\Desktop\OGCtutorial\DLL\client.h(5) : fatal error C1083: Cannot open include file: 'util_vector.h': No such file or directory
opengl.cpp
C:\Documents and Settings\Jon Anderson\Desktop\OGCtutorial\DLL\client.h(5) : fatal error C1083: Cannot open include file: 'util_vector.h': No such file or directory
secmodule.cpp
C:\Documents and Settings\Jon Anderson\Desktop\OGCtutorial\DLL\client.h(5) : fatal error C1083: Cannot open include file: 'util_vector.h': No such file or directory
snake.cpp
C:\Documents and Settings\Jon Anderson\Desktop\OGCtutorial\DLL\client.h(5) : fatal error C1083: Cannot open include file: 'util_vector.h': No such file or directory
Winamp.cpp
C:\Documents and Settings\Jon Anderson\Desktop\OGCtutorial\DLL\client.h(5) : fatal error C1083: Cannot open include file: 'util_vector.h': No such file or directory
Error executing cl.exe.
Night Elf hook.dll - 26 error(s), 0 warning(s)
Da BuzZ
17th June 2003, 18:30
try using this OGC src...
NightElf
17th June 2003, 18:33
ok thx give me ome hours to configure and compile thsi (i know it doesnt take that long but im a lazy ass)
Da BuzZ
17th June 2003, 18:40
you might wanna fix the melee bug too :p
Go to if(mouse1pressed) in the client.cpp and remove:
static StopTimer nextSwitchWait;
if( !me.iClip && playerItems.canSwitch() && nextSwitchWait.expired() && mouse1pressed )
{
nextSwitchWait.countdown(6);
sendScriptSignal("switch");
}
and
// auto-reload
if (!me.iClip)
{
usercmd->buttons &= (~IN_ATTACK);
}
NightElf
17th June 2003, 19:09
ok is this how team info supposed to look
USER_MSG_INTERCEPT(TeamInfo)
{
static bool done=false;
static StringFinder teamNumber;
if(!done)
{
// cs
teamNumber.add("terrorist" ,1);teamNumber.add("ct" ,2);
teamNumber.add("unassigned" ,0);teamNumber.add("spectator" ,0);
teamNumber.add("axis" ,1);teamNumber.add("allies" ,2);
teamNumber.add("red force", 1);teamNumber.add("blue force",2);
teamNumber.add("usa", 2);teamNumber.add("up-ko", 4);
teamNumber.add("rebels", 2);teamNumber.add("agents", 4);
teamNumber.add("united nations", 2);teamNumber.add("arab liberation force", 4);
teamNumber.add("#dustbowl_team1",2 );teamNumber.add("#dustbowl_team2",3 );
teamNumber.add("#dunted_team1" ,2 );teamNumber.add("#dunted_team2" ,2 );
teamNumber.add("#dunted_team3" ,3 );
teamNumber.add("red" ,1);teamNumber.add("blue" ,2);
teamNumber.add("yellow" ,3);teamNumber.add("green" ,4);
teamNumber.add("alien1team", 1); // Aliens
teamNumber.add("marine1team", 2 ); // Marines
teamNumber.add("observers", 0); // People who wish to spectate the game
teamNumber.add("undefinedteam", 0); // People in the ready room
done = true;
Da BuzZ
17th June 2003, 19:10
yup
NightElf
17th June 2003, 19:22
heres my if mouse one pressd thingy i think i made soem eroors in spacing and deleting and stuff here it is
if(mouse1pressed)
{
// pistol rapid-fire
if(cvar.pistol && currentWeaponID>=WEAPON_USP && currentWeaponID<=WEAPON_FIVE7 && mouse1pressed )
{
static bool flipFlop = true;
if(flipFlop){ usercmd->buttons |= IN_ATTACK; }
else { usercmd->buttons &= (~IN_ATTACK); }
flipFlop = !flipFlop;
}
// auto-speed
if(cvar.aspeed>1)
{
cvar.speed = cvar.aspeed;
}
}
} else {
if(cvar.aspeed>1)
{
cvar.speed = 1.0;
}
}
if(me.alive)
{
// anti-recoil
if( cvar.recoil )
{
usercmd->viewangles[0] -= (me.punchangle[0] * cvar.recoil);
usercmd->viewangles[1] -= (me.punchangle[1] * cvar.recoil);
}
// bunny hop
if ( cvar.jump && (usercmd->buttons & IN_JUMP) && !(me.pmFlags & FL_ONGROUND)) usercmd->buttons &= ~IN_JUMP;
// duck jump
if ( cvar.duck && !(me.pmFlags & FL_ONGROUND) && me.pmVelocity[2]>0) usercmd->buttons |= IN_DUCK;
}
LOG(createmove_end)
}
and by the way how do i make bunny hop work or will it work casue my old ogc 7.42 didnt bunnyhop right i ns
Da BuzZ
17th June 2003, 21:13
yup that's it :p
NightElf
17th June 2003, 21:15
i already compiled but i need those .cfgs things liek command menu.txt and aimbot.cfg and thsoe i dont have were can i get them
Da BuzZ
17th June 2003, 21:19
Right here ;) Took out the dll, cause you didnt need it :p
NightElf
17th June 2003, 21:26
im gona test this baby then i am gogin to release it if i dont find any bugs
bye the wy how do u customize ur hack liek the logo u have and in consoel it says like OGC loaded
Da BuzZ
17th June 2003, 21:27
edit the ogc loader src :)
NightElf
17th June 2003, 21:33
am runnign in opengl mode it says software mdoe is note sported use d3d or opengl but i am running in opengl wtf is wrong
my system specs are
Windows xp pro
intel celeron 700mhz (ouch!!)
intel 810 onboard graphics (ouch!!)
and i have dod 1.0 installed
its says software mdoe not suported but i run in opelgl and my os is windows xp whats wrong
Da BuzZ
17th June 2003, 21:40
Go to main.cpp and search for
Void Patch() or smth... down there replace it with
BYTE* loc = (BYTE*)0x01D4D220;
and remove the messagebox code...
NightElf
17th June 2003, 21:50
so i got to recompile the whole thign agai dam i wish i saved my workspace
ok i not getting u i change this ot what
void patch()
{
static bool done = false;
if(done) return;
done = true;
assert(stackret);
BYTE* loc = ((BYTE*)stackret)-0x74C68;
BYTE* sig = (BYTE*)"\x51\x55\x8B\x6C?";
char* mask = "xxxx?";
if(loaderPatch.find_location(loc,sig,mask))
{
// setup patch
_LoadEncryptedDll = (DWORD)loc + 6;
loaderPatch.patchdata[0] = 0xE9;
DWORD addr = (DWORD)&EngineLoadEncryptedDll - (DWORD)loc - 5;
*(DWORD*)(loaderPatch.patchdata+1) = addr;
// apply
loaderPatch.apply();
}
else
{
MessageBox(0,"Software mode is not supported\nUse OpenGL or Direct3D.", "not supported",MB_ICONEXCLAMATION);
ExitProcess(0);
}
detour_S_DynamicSound();
patch_CommandParser();
}
Da BuzZ
17th June 2003, 22:19
void patch()
{
static bool done = false;
if(done) return;
done = true;
assert(stackret);
BYTE* loc = (BYTE*)0x01D4D220;
BYTE* sig = (BYTE*)"\x51\x55\x8B\x6C?";
char* mask = "xxxx?";
if(loaderPatch.find_location(loc,sig,mask))
{
// setup patch
_LoadEncryptedDll = (DWORD)loc + 6;
loaderPatch.patchdata[0] = 0xE9;
DWORD addr = (DWORD)&EngineLoadEncryptedDll - (DWORD)loc - 5;
*(DWORD*)(loaderPatch.patchdata+1) = addr;
// apply
loaderPatch.apply();
}
detour_S_DynamicSound();
patch_CommandParser();
}
NightElf
17th June 2003, 23:31
ok i did that and everything works good execpt trhat the aimbot doesnt work i dont know why it has yellow esp for aliens and blue for mariens but it wont aim when i bind mouse 1 +doshoot in ogc ocnsoel and i ttried bone aiminb and vector
Da BuzZ
18th June 2003, 00:36
to fix that color shit, type color_t in the console... it's cause of the ogc theme... you can basicly use my cfg files ;)
NightElf
18th June 2003, 00:39
yeah but what about the aimbot
Da BuzZ
18th June 2003, 00:41
dunno it should work.. try picking an aimvec, and configure ingame with the menu..
NightElf
18th June 2003, 00:55
ok ill try that brb give me liek 10 minutes then i post if it worked or not
aimbot still deosnt work i have no clue whats wrong wiht it i slect a vec and it stil doenst aim then i slect a bone and still doenst aim i hae no cleu what wrong with it
thevilone
18th June 2003, 22:31
Nightelf delete your cvar.bin ( a.k.a satan in my book ) that usually kills everything in my hook
NightElf
19th June 2003, 06:37
omg thank u that worked that really work and im with u that cvar.bin is the satan (lmao) anyway i am gogin to make a readme that thx da buzz casue without his help this hook wuldbt be made i jsut need to get some info on how to customize my hook for eaple take ut all that ogc stuff and put in NightElf h00k. and i think someoen should make this post a sticky casue it shows ho do do some great things with compiling ogc
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.