fr1kin

take advantage of everything

Feb 1st, 2012
353
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.83 KB | None | 0 0
  1. local target = nil;
  2. local function Penis()
  3.     if( !target || target && !ValidEntity( target ) || target && !target:Alive() ) then
  4.         target = nil
  5.     end
  6.    
  7.     for k, v in pairs( player.GetAll() ) do
  8.         if( v:IsValid() &&
  9.             v:Alive() &&
  10.             v:GetMoveType() != MOVETYPE_NONE &&
  11.             v != LocalPlayer() ) then
  12.            
  13.             local org = v:GetPos();
  14.             local min = v:OBBMins();
  15.             local max = v:OBBMaxs();
  16.             debugoverlay.Box( org, min, max, 0.02, Color( 255, 255, 255, 25 ), false )
  17.             debugoverlay.Text( v:GetPos() + Vector( 0, 0, 50 ), v:Nick(), 0.01 );
  18.            
  19.             if( target == nil ) then
  20.                 target = v
  21.             end
  22.            
  23.             if( target == v && input.IsKeyDown( KEY_F ) ) then
  24.                 local pos = ( v:GetPos() + Vector( 0, 0, 50 ) ):ToScreen();
  25.                 input.SetCursorPos( pos.x, pos.y )
  26.                 target = v;
  27.             end
  28.         end
  29.     end
  30.     timer.Simple( 0.01, Penis )
  31. end
  32. Penis()
Advertisement
Add Comment
Please, Sign In to add comment