Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. float velocity[3];
  2. GetEntPropVector(client, Prop_Data, "m_vecAbsVelocity", velocity);
  3. int truevel = RoundToFloor(GetVectorLength(velocity, SquareRoot(Pow(velocity[0], 2.0) + Pow(velocity[1], 2.0))));
  4. float cheatangle = FloatAbs(ArcSine(30.0 / truevel) * 180 / PI);
  5. PrintToChat(client, "Cheatangle: %f", cheatangle);
  6. if(angles[1] == cheatangle){
  7. PrintToChatAll("Cheaterrr");
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement