unknowncheats uc-forum.com ucdownloads ucdownloads.com

Go Back   UC-Tutorials - Multiplayer Game Hacking and Cheat Tutorials > First-Person Shooters > Other FPS Games > Half Life

- Sponsored Advertisement -
http://www.myfpscheats.com/


Reply
 
Thread Tools Display Modes
  #1  
Old 01-22-2007, 03:55 PM
Neo_Reloaded Neo_Reloaded is offline
Tutorial Admin
 
Join Date: Dec 2006
Posts: 259
Default Easy ESP (Glow and DLight)

By CrazyLord

Call in HUD_AddEntity if ent->player and if it's not your own entity

Code:
//==================================================================================
void DrawESP(cl_entity_s* tEntity) {
	int index = tEntity->index;

	color24 tempColorInfo;
	dlight_t* dlight = gEngfuncs.pEfxAPI->CL_AllocDlight(0);

	if (vPlayers[index].team == TEAM_TERRORISTS) {
		tempColorInfo.r = 255;
		tempColorInfo.g = 0;
		tempColorInfo.b = 0;
	}
	else if (vPlayers[index].team == TEAM_COUNTER_TERRORISTS) {
		tempColorInfo.r = 0;
		tempColorInfo.g = 0;
		tempColorInfo.b = 255;
	}
	else if (vPlayers[index].team == TEAM_UNDEFINED) {
		tempColorInfo.r = 0;
		tempColorInfo.g = 255;
		tempColorInfo.b = 0;
	}

	tEntity->curstate.renderamt = 1;
	tEntity->curstate.renderfx = kRenderFxGlowShell;
	tEntity->curstate.rendermode = kRenderNormal;
	tEntity->curstate.rendercolor = tempColorInfo;

	srand(64);
	dlight->origin = tEntity->origin;
	dlight->color = tempColorInfo;
	dlight->radius = rand()%128;
	dlight->die = gEngfuncs.GetClientTime() + 0.001;
}
Reply With Quote
Reply

  • Submit Thread to Digg
  • Submit Thread to del.icio.us
  • Submit Thread to StumbleUpon
  • Submit Thread to Google
  • Submit Thread to Facebook
  • Submit Thread to My Yahoo!
  • Submit Thread to MySpace
  • Submit Thread to Twitter
  • Submit Thread to Reddit

Tags
dlight, easy, esp, glow

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



All times are GMT. The time now is 08:41 AM.