hlsdk

Untitled

Jul 11th, 2010
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.79 KB | None | 0 0
  1.         if (ms_esp_barrelhack.GetBool() && pEnt != Entity::Me())
  2.         {
  3.             Vector vDirection, or;
  4.             QAngle ang;
  5.             Ray_t pRay;
  6.             trace_t pTrace;
  7.             float duration = ms_esp_barrelhack_duration.GetFloat();
  8.             QAngle angEyeAngles = Entity::GetEyeAngles( pEnt );
  9.             AngleVectors( angEyeAngles, &vDirection );
  10.  
  11.             Entity::GetHitboxPosition(Entity::CSS_HITBOX_HEAD, or, pEnt, ang);
  12.             vDirection = vDirection * 5000 + or;
  13.             Vector vLocalPosition = Entity::GetEyePos(pEnt);
  14.             pRay.Init( vLocalPosition, vDirection );
  15.  
  16.             CTraceFilterSimple trf(pEnt->GetIClientUnknown(), COLLISION_GROUP_NONE);
  17.             Interfaces::Get()->m_pEngineTrace->TraceRay( pRay, MASK_SHOT, NULL, &pTrace);
  18.             Interfaces::Get()->m_pDebugOverlay->AddLineOverlay( pTrace.startpos, pTrace.endpos, 205,205,205,false, duration / 10 );
  19.         }
Add Comment
Please, Sign In to add comment