Advertisement
Guest User

Untitled

a guest
Jan 28th, 2015
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.66 KB | None | 0 0
  1.     if (scopeobj._isPlayer){
  2.                             float _fPlayerHeight = _screenHeight ;
  3.                             float _fPlayerWidth = _screenWidth * 0.20;
  4.  
  5.                             float _fX = _vecScreen.fX ;
  6.                             float _fY = _vecScreen.fY;
  7.                             float _fYOffset = _fY + (500 / (fDistance));
  8.  
  9.                             float _fHeight = _fPlayerHeight / (fDistance);
  10.                             float _fWidth = _fPlayerWidth / (fDistance);
  11.  
  12.                             FillRGB(_fX, _fYOffset, 1, _fHeight, 255, 0, 0, 255);
  13.                             FillRGB(_fX + _fWidth, _fYOffset, 1, _fHeight, 255, 0, 0, 255);
  14.  
  15.                             // Vertical
  16.                             FillRGB(_fX, _fYOffset, _fWidth, 1, 255, 0, 0, 255);
  17.                             FillRGB(_fX, _fYOffset + _fHeight, _fWidth, 1, 255, 0, 0, 255);
  18.                         }
  19.                         else{
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement