Advertisement
em00se

Untitled

Oct 23rd, 2022 (edited)
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.83 KB | None | 0 0
  1.     // Main board on the left side
  2.     if (m_board_0)
  3.     {
  4.         float InternalHeightScale = *(float*)0x10BDD3C; // ptr_InternalHeightScale
  5.         const float HeightScale720p = 2.142857075f; // InternalHeightScale value for 720p
  6.  
  7.         float grid_x_start = x_center + (m_board_0->m_mat_C[0][3] * (0.515f * x_scale));
  8.         float grid_y_start = y_center - ((187.0f / HeightScale720p) * InternalHeightScale);
  9.  
  10.         int inv_size_x = (int)m_board_0->m_size_x_4; // Total number of squares in the X axis
  11.         int inv_size_y = (int)m_board_0->m_size_y_5; // Total number of squares in the Y axis
  12.  
  13.         float curSquare = grid_x_start; // Set curSaqure as the first square
  14.         float curRow = grid_y_start;
  15.  
  16.         float squareSizeX = 50.0f * x_scale;
  17.         float squareSizeY = (43.0f / HeightScale720p) * InternalHeightScale;
  18.  
  19.         float squarePadding = 2.0f; // Space in between each square
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement