Gold Source/HL1 and mods
Counter-Strike 1.6 related code
Question steamid from .dem?
3 Days Ago
TFC related code
HandHeld Bot (TFC)
02-20-2010
DOD related code
Dod Nospread/PlayerItems
02-26-2010
NS related code
NS Life Form ESP
02-19-2008
Other 3rd party mods in here
Generic Model Detection
05-21-2008
Sticky Threads
This code will allow you to aim at targets without changing your viewangles. Save the original up, forward, and sidemove from usercmd. Create anglevectors from your original cmd->viewangles before you change it. Calculate your aim into cmd->viewangles and anglevector that. Now DotProduct the...
Aimbots are great, but kinda obvious. Instead this code will fire the gun, if and only if the next shot is gonna shoot someone (in the head). bool Aimbot::ShootHitbox(int hitbox, float *maimangles, float *paimangles, float *saimangles) { float view, diff, radius, distance, boxradius;...
This is true auto knife not cvar dependent so it will automatically select the best knife attack. bool __stdcall CS_Knife_s::bAutoKnife ( usercmd_s *cmd ) { cl_entity_s *ent; float flDistance = 32; int iEntity; pmtrace_t gVis; vec3_t vForward, vecEnd;
since the client.dll isn't openly loaded in hl1, dod and tfc, like it is in cs/cz and 3rd party mods (but hw.dll is) we have to find the export/engfuncs/engstudio pointers via sigs again. edit: rewritten and optimized. works with: cs1.6, cz, dod, hl1, tfc, dmc, ts, dmc, ns. void HookThread(...
Run offset.exe,when it loaded cstrike.exe,open offset.txt file at same dir,offset will show: 09:27:06-> ]] 09:27:06-> dwGlobalTime 0x0280DFA0 09:27:06-> ]] 09:27:06-> pEngine at 0x01EB72D8 09:27:06-> ]] 09:27:06-> pStudio at 0x01ED3520 09:27:06-> UserMessages Hooked 09:27:07-> ]]...
w00t free code! Basically when i'm bored I add probably completely useless functions to my console, I use alot of gfreemans1 console code bit i'm sure these can easily be converted to you OGC console users and so forth. There is nothing special about these but I felt like posting them, ...
Ok, for those of you too lazy or not knowledgable enough to make your own console here's a way to use the HL console. String splitter function. Ooh sexy. void splitstring(char *buf, char *string, char *tok) { char *split = strtok(string, tok); if(split==0) { return; } for(int i=0;...
void HUD_StudioEvent( const struct mstudioevent_s *event, const struct cl_entity_s *entity ) { if( event->event == 5001 ) { sound_s sound; sound.dwTime = GetTickCount( ); sound.type = atoi( event->options ); sound.vPos = entity->origin; vSound.push_back( sound ); }
For whatever reason, if you have code that executes based on entities that have perhaps gone out of scope, you're program will most likely hang with an exception being thrown such as: First-chance exception at 0x65993c84 (AHKD4FC.tmp) in hl.exe: 0xC0000005: Access violation reading location...
This isn't much for a tutorial, its more of a code dump... This is what it looks like: --> http://zox.gamedeception.net/tatnium5/OverheadRadar/ DONT POST COMPILE ERRORS IF YOU GET ANY!!!! void CalcAngle(const float *src, const float *dst, float *angles)
Welcome to my first tutorial :) After one week of playing around with counter-strike i want to show up a little ESP and Aimbot that i did just for fun. It would be nice if you could credit me when using this code (It took me nearly half-an-hour to program this...) Let's go: At first we...
This is pretty simple; if you want to actually use this in an actual hack/cheat, you could probably hook pfnConsolePrint and parse the data that way. Right now, it parses a status command from a condump. I plan to use the calculated community ID for keeping track of players over a long period of...
I decided to make my cAimBot Class Public ! Its a GSAim, and maybe it needs some tweaking, but it works :P // ====== EDIT: Added Prediction If u use this in your hook credit me and the people at the bottom ! I almost coded that one fully by myself, but there are of course some things and...
Alright, so first we need our GetHeadPosition function to obtain the players' hitboxes. I've commented what I modified in it and put my autodetect code into it. It goes in client.cpp. Here it is: void GetHeadPosition(cl_entity_t *pEnt) { typedef float BoneMatrix_t; model_t *pModel; ...
a good friend of mine (aRaz) asked me some time ago for it so here we go ;) first of all we need to figure out ogc calcs it's aiming vec. a short in look in the source tells us: vector<aimvec>::iterator si, end; if (vPlayers.getEnt()->curstate.usehull == 0) { // loop AimVecsS si =...
Well this has had me pissed-the-fuck-off for a while now, but I've finally gotten it semi-working (its a straight-shot from here). I first tried the ogc method which didn't work worth a shit. I even hooked from my aggressive hook JUST LIKE OGC DID and it wouldn't call my hook. I got really mad and...
I was looking at efxapi because I wanted a laser sight on ents and I saw the CL_AllocDlight so I decide to mess with it. On CZ I was no longer able to get fullbright with opengl and texture 2d crap. This code creates a GIANT ass light around our origin, but you could probably make a smaller one...
I've been wanting to add a glowshell around my gun for the longest damn time, but I never figured out how because the function used to do it is named stupidly. I love glowshells a lot and weapon glowshells remind me of quake. In your first viewport in your hybrid ( glowshells flicker if not...
12:39:51-> seq num: 0 name: dummy 12:39:51-> seq num: 1 name: idle1 12:39:51-> seq num: 2 name: crouch_idle 12:39:51-> seq num: 3 name: walk 12:39:51-> seq num: 4 name: run 12:39:51-> seq num: 5 name: crouchrun 12:39:51-> seq num: 6 name: jump 12:39:51-> seq num: 7 name: longjump 12:39:51->...
This does not find the r_studio_interface offset because I simply hook HUD_GetStudioModelInterface and this doesn't find dom1n1ks pmtrace_s offset either. Also this isn't exactly copy and paste either, you can't just cram this shit somewhere and hope it works. DWORD FindPattern(char *pattern,...
Well uhh got bored again, came up with this after rambling around the SDK w00t. It would be nicer to precache these and read them from a .txt file in HUD_VidInit. Anyway, call this in HUD_Redraw, someone else work out how to do it in a hybrid :) . HSPRITE newSprite; // HSPRITE is just a...
This is only a tiny bit of code, it's just something I find useful. Just allows you to grab a name of a CS gun from its weapon index, if you don't already know how i'll show you after the code. #define MAXWEAPONS 31 Maximum number of CS weapons currently (I hope). Now for the enum, this...
Xen likes my x-hair so I thought I'd share it with you all. (*orig_glPushMatrix)(); (*orig_glLoadIdentity)(); (*orig_glEnable)(GL_LINE_SMOOTH); (*orig_glEnable)(GL_POINT_SMOOTH); (*orig_glLineWidth)(0.5f); (*orig_glDisable)(GL_TEXTURE_2D); (*orig_glEnable)(GL_BLEND);
This is just one thing you can do with this function. Enjoy. void HUD_CreateEntities(void) { try { // only need to do this when you are alive or else first person spec // will draw two models and there is no wh block when you're dead anyway if(IsMeAlive())
I wanted to save this for the advanced section but oh well. In your HL SDK open the client.dll source and find HUD_GetStudioModelInterface. This is where you can log engstudio address and r_studio_interface_s. static bool once = false; if(!once) {
WRRRAAAAAAAAAAAAAAA Okay... This is a very simple, yet brilliant nick spammer, it WILL annoy the shit out of your fellow players (atleast they get pissed at me ;( ) // Dont ask i like it this way struct nickspam_s { char szName; }; // Storage for ze custom nicks vector<nickspam_s>...
After a recent steam update and some changes with my usermessage hooking I was having some problems with text not logging properly. I figured the easiest way to fix this would be to hook and log BEGIN_READ() and READ_* funcs. hookHookUserMsg: Logo hookHookUserMsg: ResetHUD ...
Well this is easy enough to do and it can give you some cool screenshots as well. The reason you can't do it in DeathMsg is because you can't time it. I have this code in glbegin before I draw those nifty HUD stats. It does lag briefly for a second while it takes the screenshot, which is not my...
Have some method of setting aspeed to true, ie a bind or cvar or something. The umsg part is part of my usermessage hook. So it's checking if our current weapon is a knife and if we are using its secondary attack. This allows us to aspeed on attack1 for guns and for the knife we can use either...
So much for hungarian notation. :rolleyes: Anyway, you have to hold down the scoreboard key, in my case tab, for over a second or it will not register you as releasing the key. You can do this to hook other commands and do annoying stuff like in the example or perhaps hide part of your hack when...
This is fairly straightforward so here goes. Not much to explain here. The hint things such as YOU HAVE THE BOMB or ONLY CT'S CAN MOVE HOSTAGES are sent with Hint_. Funny that I read about a guy on steam forums yesterday who wanted a way to get rid of those help msgs. :rolleyes: TextMessages are...
Instead of patching cvars like cl_timeout for speedhacking you can simply do this every first viewport. Same goes for any cvar. No noticable performance hit either. pEngfuncs->Cvar_SetValue("cl_timeout", 99999999999.0f); Credits: Da_Buzz for whining about WCLC or whatever changing his...
It should be fairly obvious where this goes. There are 110 sequences in CS. Here's two funny ones hrhr. 00:00:50-> seq num: 54 name: I_am_a_stupid_placeholder 00:00:50-> seq num: 55 name: so_am_I for(int i=0; i<256; i++) { mstudioseqdesc_t *pSeqDesc = (mstudioseqdesc_t *)((byte...
Yeah i wrote this a while ago trying to fix problems with not being able to draw black with the fillrgba in the enginefuncs struct. I was using it back in my hybrid, uses standard OGC color format thingeh ;x . Thanks to Tetsuo for pointing out that it works fine in HUD_Redraw and so you don't...
Call it in HUD_Redraw. Using strlen to remove the .mdl extension only works in the if statement for some reason. For the hostage esp you have to calc the position with vecs because the origin is at their feet. void DrawEntityEsp(void) { pMe = oEngfuncs.GetLocalPlayer(); for(int i=1;...
Well Da BuzZ wants to know how I did it, but I'm gonna post this for everyone to see. Yes, its simple and maybe a bit silly, but it does work so I can't complain. It's up to you to actually draw your own HUD because all this does is prevents HL from drawings its own HUD. This is based off my...
(Before you ask I already re-aligned it, and the code below is re-aligned (for me anyway)) My new little toy. It's a little bar that goes in player esp that shows the progress of the current animation (reload, bomb plant, grenade throw) -- pretty much any time they're incapacitated. Very handy...
Ever had your hack crash spontaneously? Annoid with null pointers (lol) ? Well here is a good guide to get you back on track. First, you would want to build your hack in debug mode. To do this, make sure you can view the solution Ctrl+Alt+L ]. Click the entire solution, and go to Project ->...
In HUD_AddEntity do this and the ent will be solid black with no textures. ent->curstate.renderfx = 21; Use 21 because the kRenderfx are only defined from 0-20 and there is no ( that I know of ) defined kRenderfx for 21. http://ill.cc/~trioxide/Tetsuo/fy_iceworld2k.JPG
Basic 2D Math Introduction Definition of a Point A point can be represented in 2D space as a a pair of numbers, one for each of the x and y axis:
Normal Threads
I was using an asian hack I found it has some internal command that changes the view size, I tried to give the hl console a few commands to get the effect but it seems to be not because of a command.. so I assume that it is done using engine,, how can achieve this programatically if anyone knows?
I wonder if it is posible to cheat the server by changing/overwriting some struct members in my addentity hook or in playermove hook, im talkin about cs16. the question comes for the reason that a serverside antispeed hack could compare my position in the time, I dont know if that is the way it...
hi community, i search for all the uptodate counterstrike offsets ! a mate said they are static ! pls help me greetz unverschämt
could you tell me in what message client execute command is sent so i can block it in my cheat?
Hey I was wondering if anyone had heard of this new client side Anti Cheat coming out it seems to be like ESEA. It's called the WGE i guess its going to be used in a lot of pubs and its going to be for leagues as well... anyways just thought i would bring it to someones attention. I'll post as I...
Hey! So I'm still scratching my head over this. I'll try and explain as best I can. I'm currently using the HL Control Base, which hooks a lot of the engine and client but absolutely no openGL. I've been struggling for some time now. I've simply been trying to hook glbegin to start.. ...
Hi all, I was looking the way for listing all User Msg Hooks and finally I solved it, I put this here in case somebody want to do the same thing ... if a better way exists please tell me... typedef struct PACKED _UserMgsList{ DWORD unknown1,unknown2; CHAR msgname; struct...
hi all, 1st of all sorry for my poor english... i try to explain my problem as good as i can. years ago i used a wrapper to compile a opengl32.dll. i used a opengl loader/injector found somewhere. everything works fine all the time. now i installed windows 7 (before it was XP) and the dll...
hi, I've been looking at SV_ParseConsistencyResponse for a quite long time and want to know how it checks files ( crc32, md5 or else? ) and expecially which function sends\accepts it at server side maybe someone already looked into this or can give a quick knowledged look at it please? ^^ ...
Hey, I've tried to find the base of client.dll from within counter-strike but I haven't been able to do it. I've seen other people using GetModuleHandle("client.dll") but that returns NULL. I've hooked LoadLibraryA and checked each time to see if it was loading "client.dll" but it never did. I've...
subj - need to handle some engine cmd already read http://forum.gamedeception.net/showthread.php?3387-fun-with-AddCommand-hooking but lower there's written that it's not compatible with screenshot etc commands
hello, i've been looking some code from sources and this forum, and I wanted to know more about nospread, I would like to make one, but I'm not sure if I can do it the way I want i would do it like : 1) hook EV_HLDM_FireBullets function which has the spread vars 2) from the hooked func...
Credits: - Adetours by Azorbix (modified to work in ring0) http://forum.gamedeception.net/showthread.php?t=8375 - Opcode Length Disassembler coded by Ms-Rem http://cracklab.ru/f/index.php?action=vthread&forum=3&topic=9539 - Shadow SSDT hooking taken from Sheppard's Ring 0 Hack for...
hello GD, i'm newbie :) how to get ground origin? I know how to make it in amxx plugin via tracehull.. but i have no experience yet of coding in C++ plz help me.. ) my buggy code: float GetGroundOrigin(void) { vec3_t vOrigin = me.vOrigin;
Hi guys, I need some help with my application. I try to draw simple crosshair for cs 1.6 but when i draw the crosshair and click alt+tab the lines was destroyed :eek2:. Can someone help me :stunned: Kind regards, DShock
have a look at this clip: http://www.speedyshare.com/357976635.html as you can see, the crosshair doesn't move an inch. Does anyone know how to make an aimbot like this? How does it work?
last parameter is transperency from 0 to 255, 0 - fully transperent, but with 255 it is still pretty transperent expecially on bright places =\ can i make FillRgBA pfn draw not transperent things?
Hi all :) I need some help for my project.I am using Delphi 7 and i need to send message to CS 1.6.For example: i have 1 button and when i click, in cs to be displayed "megazor says: hi all!"I can make it only for notepad but for cs, can't :{.Tnx :tongue: Have a nice day. Megaz0r :) PS:...
Hello there, I'm currently working on a GUI system which I would like to use in a CS 1.6 cheat. I've almost finished coding the base of the GUI, but I still need to be able to draw my stuff in-game. So my question is: what should I hook/patch/dunno to be able to use the in-game drawing...
I need to block couple of commands. This wouldn't be hard, but these cmds contain random symbols (they are executed by the server using amxmodx client_cmd func). There are 914k combinations to block, so I have to hook some function. Replacing pfnClientCmd pointer doesn't work - game doesn't use...
i'm trying to get this code to work, and execute the command only once if (GetAsyncKeyState(VK_SPACE)) { g_pEngfuncs->pfnClientCmd("kill"); } But when i do this it keeps spamming this in console Can't suicide -- already dead!
hello, this might be too "opengl-ish" for this forum but as i'm trying to make this for counter strike, the goldsrc forum should be the right one. I am trying to determine the normal of each map surface (of each plane) to determine if it's either a wall or the floor. what i want is to color...
Hey guys, I'm looking to find a way to grab the current demo time from the "viewdemo" window and output it to the screen. Outputting to screen, of course, is not hard - but I'm looking for some guidance as to how I can go about reading the demo time from the viewdemo window. If anyone has any...
Does anybody knows how get player speed on client side of game :confused2: ? I got client source code, so i don't need any kind of hack.
I find this Tutorial writed by wav on other web. Lets take CL_CreateMove as an example Code: 01955750 83EC 10 SUB ESP,10 01955753 8D4424 1C LEA EAX,DWORD PTR SS: 01955757 8D4C24 18 LEA ECX,DWORD PTR SS: 0195575B 8D5424 14 LEA EDX,DWORD PTR...
Comments please :)
char g_szInjectorPath = ""; char szTempPath = ""; BOOL dwFindHL_Module (DWORD dwProcessID) { HANDLE hSnapShot = INVALID_HANDLE_VALUE; MODULEENTRY32 module32; module32.dwSize = sizeof(MODULEENTRY32); hSnapShot = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, dwProcessID);
hi, just looked thru all threads here and i wan't to hook connect command and know ip address player connecting to and then tweak some settings, but i can't find a way, may be there is a simply way i can't imagine? sorry again for my stupid questions :rolleyes2:
I have proper bounding boxes in CS. But I can't get them to rotate with the player. if ( pe->pEnt->angles ) { vec3_t forward, right, up, vPlayerAngles, vAngles; AngleVectorsTranspose( pe->pEnt->angles, forward, right, up );
Greetings GD users. I want to improve my check if a player is behind a wall or so. I was using the search engine of the forums and found some good examples. For example: bool isviss(cl_entity_s from, cl_entity_s to, int mEindex) { pmtrace_t vis; pEngfuncs->pEventAPI->EV_SetTraceHull( 2 );...
There are currently 1 users browsing this forum. (0 members & 1 guests)
Use this control to limit the display of threads to those newer than the specified time frame.
Allows you to choose the data by which the thread list will be sorted.
Order threads in...
Note: when sorting by date, 'descending order' will show the newest results first.
Forum Rules