[CS 1.6] Simple Redraw ESP

Discussion in 'Programming General' started by pvash2, May 6, 2009.

[CS 1.6] Simple Redraw ESP
  1. Unread #1 - May 6, 2009 at 10:12 PM
  2. pvash2
    Joined:
    May 5, 2009
    Posts:
    23
    Referrals:
    0
    Sythe Gold:
    0

    pvash2 Newcomer

    [CS 1.6] Simple Redraw ESP

    Add this in HUD_Redraw

    Hostage ESP doesn't work unless you calculate position with Vecs

    Code:
    void DrawEntityEsp(void)
    {
    	pMe = oEngfuncs.GetLocalPlayer();
    	for(int i=1; i<1024; i++)
    	{
    		pEnt = oEngfuncs.GetEntityByIndex(i);
    		if(pEnt && isInFov(pEnt->origin) && (pEnt->curstate.messagenum+10 > pMe->curstate.messagenum) && pEnt->model && pEnt->model->name)
    		{
    			float tmp[2];
    			char mdl[64];
    			char *wpn = NULL;
    
    			strncpy(mdl, pEnt->model->name, 64);
    			wpn = mdl;
    
    			if(wpn && CalcScreen(pEnt->origin, tmp) && strstr(wpn, "w_"))
    			{
    				wpn += 9;
    				wpn[strlen(wpn)-4] = 0;
    				DrawHudString(tmp[0], tmp[1], true, true, 255, 255, 128, "%s", wpn);
    			}
    			else if(wpn && strstr(wpn, "hostage"))
    			{
    				vec3_t forward, right, up, entOrg ;
    
    				wpn += 7;
    				wpn[strlen(wpn)-4] = 0;
    
    				VectorCopy(pEnt->origin, entOrg);
    				oEngfuncs.pfnAngleVectors(pEnt->angles, forward, right, up);
    				entOrg = entOrg + up * 40;
    
    				if(CalcScreen(entOrg, tmp))
    					DrawHudString(tmp[0], tmp[1], true, true, 255, 255, 128, "%s", wpn);
    			}
    		}
    		else if(!pEnt)
    			break;
    	}
    }
    
    Bool IsPvash2Sexy;
    
    
    For those of you who do not know, this is for the game Counter Strike 1.6

    credits:
    sp0rky

    If you want try it out, go find a GoldSRC base hook and work your way up from there, hook studio etc...
     
  3. Unread #2 - May 16, 2009 at 7:23 AM
  4. TeamEvox
    Joined:
    Mar 28, 2009
    Posts:
    535
    Referrals:
    0
    Sythe Gold:
    0

    TeamEvox Forum Addict
    Banned

    [CS 1.6] Simple Redraw ESP

    Hey pvash, is this part of a hack? :)
     
< C/C++ Tic-Tac-Toe Console Game Log | Streaming audio (shoutcast, etc.)? >

Users viewing this thread
1 guest


 
 
Adblock breaks this site