unknowncheats uc-forum.com ucdownloads ucdownloads.com

Go Back   UC-Tutorials - Multiplayer Game Hacking and Cheat Tutorials > First-Person Shooters > Counter Strike

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


Reply
 
Thread Tools Display Modes
  #1  
Old 09-25-2007, 11:27 PM
t10101 t10101 is offline
Junior Member
 
Join Date: Sep 2007
Posts: 21
Default [CSS][CODE] - [HLH RE] - Custom Crosshair

By Lix

Well now college has broken up for the term I have a lot more free time; so I decided to have a play around with Patricks HLH RE source code.

I didn't really like any of the crosshairs so I made my own; this crosshair is very stylish and it changes colour depending to what team you are on; which is handy.

At the bottom of the crosshair it says "LiX" please do NOT edit that, please keep credit to me if you use this crosshair in one of your custom HLH RE releases.

Also I was thinking of replacing the LiX so it said the name of the player you where currently looking at rather than "LiX". You can do this if you like. Just make sure you mention me for the crosshair some where in the release.

Otherwise please do not remove or modify the "LiX" string under the crosshair.

Code:
//X
gDraw.DrawRect( (m_iScreenWidth / 2), (m_iScreenHeight / 2) - 5, 1,11, COLORCODE( 1, 1, 1, 255 ));
gDraw.DrawRect( (m_iScreenWidth / 2) - 5, (m_iScreenHeight / 2), 11,1, COLORCODE( 1, 1, 1, 255 ));
//X

//Outer Horizontal
gDraw.DrawRect( (m_iScreenWidth / 2) - 1, (m_iScreenHeight / 2)  - 6, 3,1, COLORCODE( 1, 1, 1, 255 ));
gDraw.DrawRect( (m_iScreenWidth / 2) - 1, (m_iScreenHeight / 2)  + 6, 3,1, COLORCODE( 1, 1, 1, 255 ));
gDraw.DrawRect( (m_iScreenWidth / 2) - 1, (m_iScreenHeight / 2)  - 8, 3,1, COLORCODE( 1, 1, 1, 255 ));
gDraw.DrawRect( (m_iScreenWidth / 2) - 1, (m_iScreenHeight / 2)  + 8, 3,1, COLORCODE( 1, 1, 1, 255 ));
			
gDraw.DrawRect( (m_iScreenWidth / 2) - 2, (m_iScreenHeight / 2)  - 8, 1,3, COLORCODE( 1, 1, 1, 255 ));
gDraw.DrawRect( (m_iScreenWidth / 2) - 2, (m_iScreenHeight / 2)  + 6, 1,3, COLORCODE( 1, 1, 1, 255 ));

gDraw.DrawRect( (m_iScreenWidth / 2) + 2, (m_iScreenHeight / 2)  - 8, 1,3, COLORCODE( 1, 1, 1, 255 ));
gDraw.DrawRect( (m_iScreenWidth / 2) + 2, (m_iScreenHeight / 2)  + 6, 1,3, COLORCODE( 1, 1, 1, 255 ));
//Outer Horizontal

//Outer Vertically
gDraw.DrawRect( (m_iScreenWidth / 2) - 6, (m_iScreenHeight / 2)  - 1, 1,3, COLORCODE( 1, 1, 1, 255 ));
gDraw.DrawRect( (m_iScreenWidth / 2) + 6, (m_iScreenHeight / 2)  - 1, 1,3, COLORCODE( 1, 1, 1, 255 ));
gDraw.DrawRect( (m_iScreenWidth / 2) - 8, (m_iScreenHeight / 2)  - 1, 1,3, COLORCODE( 1, 1, 1, 255 ));
gDraw.DrawRect( (m_iScreenWidth / 2) + 8, (m_iScreenHeight / 2)  - 1, 1,3, COLORCODE( 1, 1, 1, 255 ));
			
gDraw.DrawRect( (m_iScreenWidth / 2) - 8, (m_iScreenHeight / 2)  - 2, 3,1, COLORCODE( 1, 1, 1, 255 ));
gDraw.DrawRect( (m_iScreenWidth / 2) + 6, (m_iScreenHeight / 2)  - 2, 3,1, COLORCODE( 1, 1, 1, 255 ));

gDraw.DrawRect( (m_iScreenWidth / 2) - 8, (m_iScreenHeight / 2)  + 2, 3,1, COLORCODE( 1, 1, 1, 255 ));
gDraw.DrawRect( (m_iScreenWidth / 2) + 6, (m_iScreenHeight / 2)  + 2, 3,1, COLORCODE( 1, 1, 1, 255 ));
//Outer Vertically

	// FILL
	CBaseEntity* pBaseEntity = gPlayerManager.pGetBaseEnt( g_pEngine->GetLocalPlayer() );

//Outer Horizontal FILL
gDraw.DrawRect( (m_iScreenWidth / 2) - 1, (m_iScreenHeight / 2)  - 7, 3,1, gColorManager.dwGetColor( gPlayerManager.iGetTeam( pBaseEntity ) ));
gDraw.DrawRect( (m_iScreenWidth / 2) - 1, (m_iScreenHeight / 2)  + 7, 3,1, gColorManager.dwGetColor( gPlayerManager.iGetTeam( pBaseEntity ) ));
//Outer Horizontal FILL

//Outer Vertically FILL
gDraw.DrawRect( (m_iScreenWidth / 2) - 7, (m_iScreenHeight / 2)  - 1, 1,3, gColorManager.dwGetColor( gPlayerManager.iGetTeam( pBaseEntity ) ));
gDraw.DrawRect( (m_iScreenWidth / 2) + 7, (m_iScreenHeight / 2)  - 1, 1,3, gColorManager.dwGetColor( gPlayerManager.iGetTeam( pBaseEntity ) ));
//Outer Vertically FILL

	//CREDIT

//DO NOT REMOVE OR EDIT
gFont.DrawString( true, (m_iScreenWidth / 2), (m_iScreenHeight / 2) + 25, COLORCODE( 128, 64, 64, 255 ), true, "- LiX -");
//DO NOT REMOVE OR EDIT
By the way; while this crosshair is enabled you might want to set the cvar "crosshair 0" so the default CSS crosshair is not visible.

Thanks,
LiX`

Screendump:
http://img218.imageshack.us/img218/3307/xhairss4nn.png
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
crosshair, csscode, custom, hlh

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 03:45 PM.