Advertisement
Guest User

edgejump cheat csgo

a guest
Jan 17th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. surfacedata_t* C_BasePlayer::GetGroundSurface()
  2. {
  3. //
  4. // Find the name of the material that lies beneath the player.
  5. //
  6. Vector start, end;
  7. VectorCopy( GetAbsOrigin(), start );
  8. VectorCopy( start, end );
  9.  
  10. // Straight down
  11. end.z -= 64;
  12.  
  13. // Fill in default values, just in case.
  14.  
  15. Ray_t ray;
  16. ray.Init( start, end, GetPlayerMins(), GetPlayerMaxs() );
  17.  
  18. trace_t trace;
  19. UTIL_TraceRay( ray, MASK_PLAYERSOLID_BRUSHONLY, this, COLLISION_GROUP_PLAYER_MOVEMENT, &trace );
  20.  
  21. if ( trace.fraction == 1.0f )
  22. return NULL; // no ground
  23.  
  24. return physprops->GetSurfaceData( trace.surface.surfaceProps );
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement