Advertisement
Guest User

Untitled

a guest
Dec 15th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1.  
  2. #yaw_south = 180
  3. #yaw_west = 270
  4. #yaw_north = 360
  5. #yaw_east = 450
  6.  
  7. #yaw_southwest = 225
  8. #yaw_northwest = 315
  9. #yaw_northeast = 405
  10. #yaw_southeast = 495
  11.  
  12. #yaw = %YAW% + 180
  13.  
  14. IF((%#yaw% >= 517) || (%#yaw% < 202));
  15. echo(/gc telaviv I'm at %XPOS% %YPOS% %ZPOS% facing South);
  16. ENDIF;
  17. IF((%#yaw% >= 202) && (%#yaw% < 247));
  18. echo(/gc telaviv I'm at %XPOS% %YPOS% %ZPOS% facing South-West);
  19. ENDIF;
  20. IF((%#yaw% >= 247) && (%#yaw% < 292));
  21. echo(/gc telaviv I'm at %XPOS% %YPOS% %ZPOS% facing West);
  22. ENDIF;
  23. IF((%#yaw% >= 292) && (%#yaw% < 337));
  24. echo(/gc telaviv I'm at %XPOS% %YPOS% %ZPOS% facing North-West);
  25. ENDIF;
  26. IF((%#yaw% >= 337) && (%#yaw% < 382));
  27. echo(/gc telaviv I'm at %XPOS% %YPOS% %ZPOS% facing North);
  28. ENDIF;
  29. IF((%#yaw% >= 382) && (%#yaw% < 427));
  30. echo(/gc telaviv I'm at %XPOS% %YPOS% %ZPOS% facing North-East);
  31. ENDIF;
  32. IF((%#yaw% >= 427) && (%#yaw% < 472));
  33. echo(/gc telaviv I'm at %XPOS% %YPOS% %ZPOS% facing East);
  34. ENDIF;
  35. IF((%#yaw% >= 472) && (%#yaw% < 517));
  36. echo(/gc telaviv I'm at %XPOS% %YPOS% %ZPOS% facing South-East);
  37. ENDIF;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement