Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float() customize_frame =
- {
- local float tmpang, totang;
- tmpang = mathlib_anglemod(other.angles_y);
- totang = mathlib_anglemod(self.angles_y - tmpang);
- if (totang < 157.5 && totang >= 112.5)
- self.walkframe = 1;
- else if (totang < 112.5 && totang >= 67.5)
- self.walkframe = 2;
- else if (totang < 67.5 && totang >= 22.5)
- self.walkframe = 3;
- else if (totang < 22.5 || totang >= 337.5)
- self.walkframe = 4;
- else if (totang < 337.5 && totang >= 292.5)
- self.walkframe = 5;
- else if (totang < 292.5 && totang >= 247.5)
- self.walkframe = 6;
- else if (totang < 247.5 && totang >= 202.5)
- self.walkframe = 7;
- else// if (totang < 202.5 && totang > 157.5)
- self.walkframe = 0;
- return TRUE;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement