world_model_table.lua 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. -- The models of the world map and where each type of entity of the world scripts uses which one.
  2. --
  3. -- The data is from the tables of ff7.exe (see src/installer/WorldModelTable.h): the models are the
  4. -- HRC files of WORLD_US.LGP with the name and the scale the game gives them, and "situations" has
  5. -- the model that each type of entity has in each of the 13 situations of the map (the argument of
  6. -- LoadModel in the scripts is the type). The scale is the raw value of the game: 0x200 is 1.
  7. WorldMapModels = {
  8. --- Name that the game gives each type of entity.
  9. type_names = {
  10. [0] = "cloud",
  11. [1] = "tifa",
  12. [2] = "cid",
  13. [3] = "highwind",
  14. [4] = "chocobo",
  15. [5] = "tiny bronco",
  16. [6] = "buggy",
  17. [7] = "canon",
  18. [8] = "warship",
  19. [9] = "tail",
  20. [10] = "diamond weapon",
  21. [11] = "ultimate weapon",
  22. [12] = "condor",
  23. [13] = "submarine",
  24. [14] = "gold saucer",
  25. [15] = "rocket",
  26. [16] = "rocket base",
  27. [17] = "gernika",
  28. [18] = "underwater mark",
  29. [19] = "chocobo (2)",
  30. [20] = "midgar cannon",
  31. [21] = "snowpole 1",
  32. [22] = "snowpole 2",
  33. [23] = "snowpole 3",
  34. [24] = "barrier",
  35. [25] = "rock",
  36. [26] = "coral key",
  37. [27] = "sea object",
  38. [28] = "submarine (2)",
  39. [29] = "ruby weapon",
  40. [30] = "emerald weapon",
  41. },
  42. --- HRC file (without extension), name and raw scale of each model.
  43. models = {
  44. aja = {name = "choko", scale = 0x200},
  45. dva = {name = "tybrco", scale = 0x280},
  46. aba = {name = "buggy", scale = 0x200},
  47. aaa = {name = "barrier", scale = 0xdac},
  48. bkd = {name = "condor", scale = 0xc80},
  49. coc = {name = "rocket", scale = 0x8fc},
  50. cpc = {name = "rocketbase", scale = 0x8fc},
  51. cfc = {name = "goldsaucer", scale = 0xaf0},
  52. -- "animation" is the position of the animation (from 0, in the order of the game) that the model
  53. -- plays when it is placed, 0 if it is not there. Ultima Weapon: 0 stands, 1 flies, 2 is rammed
  54. -- by the Highwind, 3 threatens a town, 4 hovers, 5 starts the battle, 6 a transition. Ruby
  55. -- Weapon: 0 idle (out of the ground), 1 only the head shown, 2 the transition from 1 to 0.
  56. -- Diamond Weapon: 0 stands, 1 walks, 2 and 3 turn left and right, 4 pose before the battle.
  57. -- Emerald Weapon: 0 idle, 1 moving. "altitude" is a fixed height of the world (not over the
  58. -- ground) where the entity is put, instead of the terrain.
  59. -- The rotation of the model, in degrees (x, y, z), is how it has to be turned to face the way
  60. -- that the direction of the script says. It was found by looking at the model.
  61. aia = {name = "canon", scale = 0x1000, rotation = {0, 180, 0}},
  62. cnb = {name = "rock", scale = 0x834},
  63. cgd = {name = "highwind", scale = 0x300},
  64. ddd = {name = "sbmrn", scale = 0x200},
  65. dkc = {name = "tail", scale = 0x300},
  66. bna = {name = "diaweapon", scale = 0x400},
  67. eke = {name = "warship", scale = 0x1b8},
  68. cmb = {name = "midgulcanon", scale = 0x1000},
  69. cid = {name = "highwind02", scale = 0x300},
  70. dyb = {name = "ultima", scale = 0x200, animation = 4},
  71. cqc = {name = "ruby", scale = 0x280, animation = 1},
  72. cec = {name = "gernika", scale = 0x1000},
  73. eje = {name = "underseemk", scale = 0x1000},
  74. ble = {name = "coralkey", scale = 0x300},
  75. dic = {name = "seeobject", scale = 0x800},
  76. dga = {name = "sbmrn2", scale = 0x200},
  77. bud = {name = "emerald", scale = 0x280, animation = 0, altitude = -0.9},
  78. djc = {name = "snowpole", scale = 0x300},
  79. bbe = {name = "cloud", scale = 0x200},
  80. dlb = {name = "tifa", scale = 0x200},
  81. ata = {name = "cid", scale = 0x200},
  82. },
  83. --- For each situation, the HRC file of the model of each type of entity.
  84. situations = {
  85. [0] = {[4] = "aja", [5] = "dva", [6] = "aba", [7] = "aia", [12] = "bkd", [14] = "cfc", [15] = "coc", [16] = "cpc", [24] = "aaa", [25] = "cnb"},
  86. [1] = {[3] = "cgd", [4] = "aja", [7] = "aia", [9] = "dkc", [10] = "bna", [12] = "bkd", [13] = "ddd", [14] = "cfc", [15] = "coc", [16] = "cpc", [19] = "aja", [24] = "aaa", [25] = "cnb"},
  87. [2] = {[3] = "cgd", [4] = "aja", [9] = "dkc", [10] = "bna", [12] = "bkd", [13] = "ddd", [14] = "cfc", [15] = "coc", [16] = "cpc", [19] = "aja", [20] = "cmb", [24] = "aaa", [25] = "cnb"},
  88. [3] = {[3] = "cid", [4] = "aja", [7] = "aia", [9] = "dkc", [10] = "bna", [12] = "bkd", [13] = "ddd", [14] = "cfc", [15] = "coc", [16] = "cpc", [19] = "aja", [24] = "aaa", [25] = "cnb"},
  89. [4] = {[3] = "cid", [4] = "aja", [9] = "dkc", [10] = "bna", [12] = "bkd", [13] = "ddd", [14] = "cfc", [15] = "coc", [16] = "cpc", [19] = "aja", [20] = "cmb", [24] = "aaa", [25] = "cnb"},
  90. [5] = {[3] = "cgd", [4] = "aja", [9] = "dkc", [11] = "dyb", [12] = "bkd", [13] = "ddd", [14] = "cfc", [15] = "coc", [16] = "cpc", [19] = "aja", [20] = "cmb", [24] = "aaa", [25] = "cnb"},
  91. [6] = {[3] = "cid", [4] = "aja", [9] = "dkc", [11] = "dyb", [12] = "bkd", [13] = "ddd", [14] = "cfc", [15] = "coc", [16] = "cpc", [19] = "aja", [20] = "cmb", [24] = "aaa", [25] = "cnb"},
  92. [7] = {[3] = "cgd", [4] = "aja", [9] = "dkc", [12] = "bkd", [13] = "ddd", [14] = "cfc", [15] = "coc", [16] = "cpc", [19] = "aja", [20] = "cmb", [25] = "cnb", [29] = "cqc"},
  93. [8] = {[3] = "cid", [4] = "aja", [9] = "dkc", [12] = "bkd", [13] = "ddd", [14] = "cfc", [15] = "coc", [16] = "cpc", [19] = "aja", [20] = "cmb", [25] = "cnb", [29] = "cqc"},
  94. [9] = {[7] = "aia", [8] = "eke"},
  95. [10] = {[7] = "aia", [8] = "eke"},
  96. [11] = {[13] = "ddd", [17] = "cec", [18] = "eje", [26] = "ble", [27] = "dic", [28] = "dga", [30] = "bud"},
  97. [12] = {[21] = "djc", [22] = "djc", [23] = "djc"},
  98. },
  99. }