keybode

esp box

Jan 23rd, 2014
656
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.63 KB | None | 0 0
  1. Vector nom, mon;
  2. Vector top, bot;
  3.  
  4. mon = vecOrigin + Vector( 0.0f, 0.0f, 10.0f ); // vecOrigin is head bone vector
  5.  
  6. if( pEntity->GetFlags( ) & FL_DUCKING )
  7.     nom = mon - Vector( 0.0f, 0.0f, 50.0f );
  8. else
  9.     nom = mon - Vector( 0.0f, 0.0f, 75.0f );
  10.  
  11. if( WorldToScreen( mon, top ) && WorldToScreen( nom, bot ) )
  12. {
  13.     float h = bot.y - top.y;
  14.     float w = h / 5.0f;
  15.  
  16.     if( cvars::esp_box == 1 )
  17.     {
  18.         g_pRenderer->DrawBorderBox( top.x - w, top.y, w * 2.0f, h, dwESPColor, 1 );
  19.     }
  20.     else if( cvars::esp_box == 2 )
  21.     {
  22.         g_pRenderer->DrawBorderBoxOutlined( top.x - w, top.y, w * 2.0f, h, dwESPColor, COLORCODE( 0, 0, 0, 255 ), 1 );
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment