Guest User

Untitled

a guest
May 18th, 2020
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. class HighfieldCopySystem
  2. {
  3. const int m_HCSWorldSizeX = 15360;
  4. const int m_HCSWorldSizeY = 15360;
  5. const float m_HCSSquareSize = 7.5;
  6.  
  7. int HCS_SquaresCountX;
  8. int HCS_SquaresCountY;
  9.  
  10. void HighfieldCopySystem()
  11. {
  12. createSquareData();
  13. getHighfield();
  14. }
  15.  
  16. float HCS_getPosY(float posX, float posY)
  17. {
  18. return GetGame().SurfaceY(posX, posY);
  19. }
  20.  
  21. void createSquareData()
  22. {
  23. HCS_SquaresCountX = Math.Floor(m_HCSWorldSizeX / m_HCSSquareSize);
  24. HCS_SquaresCountY = Math.Floor(m_HCSWorldSizeY / m_HCSSquareSize);
  25. }
  26.  
  27. void getHighfield()
  28. {
  29. for (int x = 0; x <= HCS_SquaresCountX; x++)
  30. {
  31. for (int y = 0; y <= HCS_SquaresCountY; y++)
  32. {
  33. float HCS_PosX = m_HCSSquareSize * x;
  34. float HCS_PosY = m_HCSSquareSize * y;
  35. float HCS_PosZ = HCS_getPosY(HCS_PosX, HCS_PosY);
  36.  
  37. Print("" + HCS_PosX + " " + HCS_PosY + " " + HCS_PosZ); //Need make: Import To file. (OpenFile command)
  38. }
  39. }
  40. }
  41. }
Add Comment
Please, Sign In to add comment