Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. float() customize_frame =
  2. {
  3. local float tmpang, totang;
  4.  
  5. tmpang = mathlib_anglemod(other.angles_y);
  6. totang = mathlib_anglemod(self.angles_y - tmpang);
  7.  
  8. if (totang < 157.5 && totang >= 112.5)
  9. self.walkframe = 1;
  10. else if (totang < 112.5 && totang >= 67.5)
  11. self.walkframe = 2;
  12. else if (totang < 67.5 && totang >= 22.5)
  13. self.walkframe = 3;
  14. else if (totang < 22.5 || totang >= 337.5)
  15. self.walkframe = 4;
  16. else if (totang < 337.5 && totang >= 292.5)
  17. self.walkframe = 5;
  18. else if (totang < 292.5 && totang >= 247.5)
  19. self.walkframe = 6;
  20. else if (totang < 247.5 && totang >= 202.5)
  21. self.walkframe = 7;
  22. else// if (totang < 202.5 && totang > 157.5)
  23. self.walkframe = 0;
  24.  
  25. return TRUE;
  26. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement