Advertisement
ItsTotallyRSX

Untitled

Dec 7th, 2019
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.32 KB | None | 0 0
  1. COD4_LUMP_MATERIALS = 0,
  2. COD4_LUMP_PLANES = 4,
  3. COD4_LUMP_BRUSHSIDES = 5,
  4. COD4_LUMP_BRUSHES = 8,
  5. COD4_LUMP_TRIANGLES = 9,
  6. COD4_LUMP_DRAWVERTS = 0xA,
  7. COD4_LUMP_DRAWINDICES = 0x0B,
  8. COD4_LUMP_LIGHTREGIONS = 0x34,
  9. COD4_LUMP_LIGHTREGION_HULLS = 0x35,
  10. COD4_LUMP_LIGHTREGION_AXES = 0x36,
  11. COD4_LUMP_MODELS = 0x25,
  12. COD4_LUMP_PRIMARY_LIGHTS = 0x2b,
  13. COD4_LUMP_ENTITIES = 0x27
  14.  
  15. byte_14603F4D0 = 0 materials
  16. dword_145DF79A4
  17.  
  18. struct dmaterial_t
  19. {
  20. char material[64];
  21. int surfaceFlags;
  22. int contentFlags;
  23. };
  24.  
  25.  
  26. unk_145F0F4C0 = 4 = Planes
  27. dword_14933D1FC
  28.  
  29. struct Plane
  30. {
  31. float normal[3];
  32. float distance;
  33. }
  34.  
  35. dword_14803D1E0 = 5 = Brush Sides
  36. dword_14F25517C
  37.  
  38. struct Brushside
  39. {
  40. union
  41. {
  42. unsigned int plane;
  43. float distance;
  44. } column;
  45.  
  46. unsigned int texture;
  47. };
  48.  
  49. word_150315190 = 8 = LUMP_BRUSHES
  50. dword_14F255174
  51.  
  52. struct Brush
  53. {
  54. unsigned short sides;
  55. unsigned short material_id;
  56. };
  57.  
  58. unk_14A365190 = 9 = LUMP_TRIANGLES
  59. qword_14603F4C0
  60.  
  61. struct __declspec(align(2)) CoD4TriangleSoup24
  62. {
  63. WORD matlIdx;
  64. BYTE lightmapIndex;
  65. char padding;
  66. char reflectionProbeIndex;
  67. char zeroPad;
  68. char primaryLightIndex;
  69. BYTE paddingAgain[1];
  70. int vertexLayerData;
  71. DWORD firstVertex;
  72. WORD vertexCount;
  73. WORD indexCount;
  74. DWORD firstIndex;
  75. };
  76.  
  77.  
  78. unk_14A4E51A0 = 10 / 0xA = Layered Verts
  79. *(&qword_14603F4C0 + 1) = v140;
  80. - identical
  81.  
  82. word_14F6F5180 = 11, 0x0B = Layered Indexes
  83. qword_14A359180
  84. - identical
  85.  
  86. dword_14FCF5180 = 27, 0x1b, Nodes
  87. dword_145DF3980
  88.  
  89. struct dnode_t
  90. {
  91. int planeNum;
  92. int children[2];
  93. int mins[3];
  94. int maxs[3];
  95. };
  96.  
  97.  
  98. unk_14F5F5180 = 29, 0x1d, Leaf Brushes
  99. dword_14933D1F4
  100. struct LeafBrush
  101. {
  102. uint32_t same; //?
  103. };
  104.  
  105.  
  106. unk_151335190 = 31, 0X1F, LUMP_COLLISIONVERTS ???
  107. dword_14A4E5194
  108.  
  109. unk_14F2251A0 = 37, 0x25, Models
  110. 0x0146058D10
  111.  
  112. byte_150335190 = 39, 0x27, LUMP_ENTITIES
  113. dword_150315180
  114.  
  115. struct DiskEntities
  116. {
  117. char string[1]
  118. }
  119.  
  120. unk_1513F5190 = 43, 0x2b, Primary Lights
  121. dword_14603F4C8
  122.  
  123. struct DiskPrimaryLight_Version16
  124. {
  125. unsigned __int16 falloffStart;
  126. char falloffSizeLessOne;
  127. char type;
  128. float color[3];
  129. float dir[3];
  130. float origin[3];
  131. float radius;
  132. float cosHalfFovOuter;
  133. float cosHalfFovInner;
  134. int exponent;
  135. char defName[40];
  136. };
  137.  
  138.  
  139. struct DiskPrimaryLight_WAW
  140. {
  141. BYTE type;
  142. char canUseShadowMap;
  143. WORD cullDist;
  144. char priority;
  145. float color[3];
  146. float dir[3];
  147. float origin[3];
  148. float radius;
  149. float cosHalfFovOuter;//cos(fovouter/2) from radiant
  150. float cosHalfFovInner; //cos(fovinner/2) from radiant
  151. float exponent; //the exponent integer kv in radiant
  152. float rotationLimit; //cos(maxturn (deg)) in radiant
  153. float translationLimit; //maxmove in radiant
  154. char defName[64];
  155. };
  156.  
  157.  
  158. unk_14803D0E0 = 52, 0x34, Light Regions
  159. dword_14F255170
  160. struct LightRegion
  161. {
  162. char index;
  163. }
  164.  
  165. unk_1513FD110 = 53, 0x35, Light Region Hulls
  166. dword_14A13D174
  167. struct DiskHulls
  168. {
  169. char unknown[0x4Cu];
  170. }
  171.  
  172. unk_145DFF9C0 = 54, 0x36, Light Region Axes
  173. dword_146058D1C
  174. struct DiskAxis
  175. {
  176. char unknown[0x14u];
  177. }
  178.  
  179.  
  180.  
  181. created by radiance tool
  182.  
  183. word_145DF3990 = 44 = Light Grid Header
  184. ?????
  185. struct {
  186. union {
  187. struct {
  188. uint16_t min_x;
  189. uint16_t min_y;
  190. }
  191. DWORD a;
  192. }
  193.  
  194. union {
  195. struct {
  196. uint16_t min_z;
  197. uint16_t max_x;
  198. }
  199. DWORD b;
  200. }
  201.  
  202. union {
  203. struct {
  204. uint16_t max_y;
  205. uint16_t max_z;
  206. }
  207. DWORD c;
  208. }
  209. DWORD rowAxis;
  210. DWORD colAxis;
  211. int16_t data[ *(this + rowAxis + 3) ]
  212. }
  213.  
  214. unk_14F1E51A0 = 25 = Light Grid Rows
  215. dword_146058D18
  216.  
  217. word_148F3D1F0 = 2 = Light Grid Points
  218. dword_149E9D16C
  219.  
  220. unk_14933D200 = 3 = Light Grid Colors
  221. dword_14A4E519C ???
  222.  
  223.  
  224. unk_1400F3980 = = lightmaps
  225. dword_146058D14
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241. unused by radiance tool
  242.  
  243.  
  244. unk_146054D10 = 13, 0xd, LUMP_CULLGROUPINDICES ?
  245. dword_14A13D170
  246.  
  247.  
  248. unk_14600F4C0 = 19, 0x13, Portal Verts
  249. dword_14A13D178
  250.  
  251. unk_14F935180 = 49, 0x31, Simple Indexes
  252. *(&qword_14A359180 + 1) = v178;
  253.  
  254. unk_14CB251A0 = 48, 0x30 = Simple Verts
  255. *(&qword_145DF79A8 + 1)
  256.  
  257.  
  258. unk_149E8D160 = 50, unknown???/ 32 bytes
  259. == dword_145DF398C
  260.  
  261.  
  262. unk_149E7D160 = 12, 0xc, LUMP_CULLGROUPS ?
  263. dword_145DF398C
  264.  
  265. unk_14A159180 = 7 = LUMP_BRUSHEDGES
  266. dword_14803D0DC
  267.  
  268. unk_14A09D170 = 6 = LUMP_BRUSHSIDEEDGECOUNTS
  269. == dword_14F25517C
  270.  
  271. unk_14A425190 = 47 = Simple Tri Soups
  272. // TODO:
  273.  
  274. unk_14A359190 = 33, 0x21, Collision Edge Walk
  275. // unsued
  276.  
  277. unk_14F315180 = 34, 0x22, Collision Borders
  278. dword_14A4E5198 98
  279.  
  280. unk_14F1651A0 = 30, 0x1E, Leaf Surfaces ???
  281. dword_145DF3988
  282.  
  283. unk_145E4F4C0 = 28, 0x1c, Leafs
  284. dword_149DBD158
  285.  
  286. unk_145DF79B0 = 26, 0x1a, Portals
  287. dword_149DBD15C
  288.  
  289. unk_149DBD160 = 24, 0x18, Layered AABB Trees
  290. qword_14A359188
  291.  
  292. unk_149E1D160 = 51, 0x33, Simple AABB Trees
  293. *(&qword_14A359188 + 1)
  294.  
  295. unk_14FB75180 = 35, 0x23, Collision Parts
  296. dword_14933D1F0
  297.  
  298. unk_14873D1F0 = 36, 0x24, Collision AABB
  299. dword_14A4E5190
  300.  
  301. unk_149E9D170 = 38, 0x26, LUMP_VISIBILITY
  302. dword_14933D1F8 = v387;
  303.  
  304. unk_146058D20 = 41, 0x29, Reflection Probe
  305. dword_150315184
  306.  
  307. unk_14A13D180 = 25, 0x19, cells
  308. dword_14603F4CC
  309.  
  310. unk_14853D1E0 = 42, 0x2a, Layered Data
  311. dword_14A13D17C
  312.  
  313. unk_14F255180 = 32, 0X20, Collision Tris
  314. dword_145DF3984
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement