Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. selfish ghost: bool misc::jumpbug(BasePlayer* pLocal)
  2. {
  3. Ray_t ray;
  4. CTraceFilter fil;
  5. trace_t tr;
  6. Vector origin = pLocal->Origin();
  7. origin += pLocal->Velocity() * g_globals->interval_per_tick;
  8.  
  9. ray.Init(origin, origin - Vector(0, 0, 68.f));
  10.  
  11. g_trace->TraceRay(ray, MASK_PLAYERSOLID, &fil, &tr);
  12.  
  13. if (tr.fraction == 1.0f)
  14. return false;
  15.  
  16. return true;
  17. }
  18. selfish ghost: if (GetAsyncKeyState(VK_XBUTTON2))
  19. g_misc->jumpbug(g_local);
  20. masle: oh fuck
  21. masle: thanks dude
  22. selfish ghost: fix it with u're function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement