Advertisement
Guest User

Untitled

a guest
Jan 30th, 2015
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. /obj/spacepod/proc/get_active_part(var/num = 1)
  2. var/first
  3. var/second
  4. var/third
  5. var/fourth
  6.  
  7. switch(dir)
  8. if(NORTH)
  9. first = get_step(src, NORTH)
  10. second = get_step(first,EAST)
  11. third = get_step(src, EAST)
  12. fourth = get_turf(src)
  13. if(SOUTH)
  14. first = get_turf(src)
  15. second = get_step(first,EAST)
  16. third = get_step(src, NORTH)
  17. fourth = get_step(second, NORTH)
  18. if(EAST)
  19. first = get_turf(src)
  20. first = get_step(first, EAST)
  21. second = get_step(first,NORTH)
  22. third = get_step(first, WEST)
  23. fourth = get_step(second, WEST)
  24. if(WEST)
  25. first = get_turf(src)
  26. second = get_step(first,NORTH)
  27. third = get_step(first, EAST)
  28. fourth = get_step(second, EAST)
  29.  
  30. switch(num)
  31. if(1)
  32. return first
  33. if(2)
  34. return second
  35. if(3)
  36. return third
  37. if(4)
  38. return fourth
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement