unknowncheats uc-forum.com ucdownloads ucdownloads.com

Go Back   UC-Tutorials - Multiplayer Game Hacking and Cheat Tutorials > First-Person Shooters > Americas Army Series > America's Army UE v2

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


Reply
 
Thread Tools Display Modes
  #1  
Old 10-25-2009, 07:45 AM
Winslow Winslow is offline
Administrator
 
Join Date: Oct 2009
Posts: 29
Default [C++] Crosshair Code Snippet

CROSSHAIR: (credits to google22)
Quote:
void DrawCrossHair (UCanvas* Canvas)
{
UTexture* CrossHair = (UTexture*)UTexture::StaticLoadObject(UTexture::StaticClass(),NULL,TEXT("Engine.WhiteSquareTexture"),NULL,LOAD_NoFail,NULL);
Canvas->DrawIcon((UMaterial*)CrossHair,Canvas->ClipX/2,Canvas->ClipY/2,2,2,1,FColor(154,205,0,255).Plane(),FPlane(1,1,1,1));
}
in your postrender/render
Quote:
DrawCrossHair(Canvas);
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
code, crosshair, snippet

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 02:38 PM.