Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (ms_esp_barrelhack.GetBool() && pEnt != Entity::Me())
- {
- Vector vDirection, or;
- QAngle ang;
- Ray_t pRay;
- trace_t pTrace;
- float duration = ms_esp_barrelhack_duration.GetFloat();
- QAngle angEyeAngles = Entity::GetEyeAngles( pEnt );
- AngleVectors( angEyeAngles, &vDirection );
- Entity::GetHitboxPosition(Entity::CSS_HITBOX_HEAD, or, pEnt, ang);
- vDirection = vDirection * 5000 + or;
- Vector vLocalPosition = Entity::GetEyePos(pEnt);
- pRay.Init( vLocalPosition, vDirection );
- CTraceFilterSimple trf(pEnt->GetIClientUnknown(), COLLISION_GROUP_NONE);
- Interfaces::Get()->m_pEngineTrace->TraceRay( pRay, MASK_SHOT, NULL, &pTrace);
- Interfaces::Get()->m_pDebugOverlay->AddLineOverlay( pTrace.startpos, pTrace.endpos, 205,205,205,false, duration / 10 );
- }
Add Comment
Please, Sign In to add comment