Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #yaw_south = 180
- #yaw_west = 270
- #yaw_north = 360
- #yaw_east = 450
- #yaw_southwest = 225
- #yaw_northwest = 315
- #yaw_northeast = 405
- #yaw_southeast = 495
- #yaw = %YAW% + 180
- IF((%#yaw% >= 517) || (%#yaw% < 202));
- echo(/gc telaviv I'm at %XPOS% %YPOS% %ZPOS% facing South);
- ENDIF;
- IF((%#yaw% >= 202) && (%#yaw% < 247));
- echo(/gc telaviv I'm at %XPOS% %YPOS% %ZPOS% facing South-West);
- ENDIF;
- IF((%#yaw% >= 247) && (%#yaw% < 292));
- echo(/gc telaviv I'm at %XPOS% %YPOS% %ZPOS% facing West);
- ENDIF;
- IF((%#yaw% >= 292) && (%#yaw% < 337));
- echo(/gc telaviv I'm at %XPOS% %YPOS% %ZPOS% facing North-West);
- ENDIF;
- IF((%#yaw% >= 337) && (%#yaw% < 382));
- echo(/gc telaviv I'm at %XPOS% %YPOS% %ZPOS% facing North);
- ENDIF;
- IF((%#yaw% >= 382) && (%#yaw% < 427));
- echo(/gc telaviv I'm at %XPOS% %YPOS% %ZPOS% facing North-East);
- ENDIF;
- IF((%#yaw% >= 427) && (%#yaw% < 472));
- echo(/gc telaviv I'm at %XPOS% %YPOS% %ZPOS% facing East);
- ENDIF;
- IF((%#yaw% >= 472) && (%#yaw% < 517));
- echo(/gc telaviv I'm at %XPOS% %YPOS% %ZPOS% facing South-East);
- ENDIF;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement