annotate Indoor.h @ 82:f9a33f75bae3

Qick Record
author Nomad
date Mon, 29 Oct 2012 00:41:51 +0200
parents 8b0c4d626477
children 8be5293b6b33
rev   line source
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1 #pragma once
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2 #include "VectorTypes.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3 #include "IndoorCameraD3D.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
6
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
7
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
8 /* 319 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
9 enum LEVEL_TYPE
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
10 {
3
540178ef9b18 Main menu functionality
Nomad
parents: 0
diff changeset
11 LEVEL_null = 0,
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
12 LEVEL_Indoor = 0x1,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
13 LEVEL_Outdoor = 0x2,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
14 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
15 extern LEVEL_TYPE uCurrentlyLoadedLevelType;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
16
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
17
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
18
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
19
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
20
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
21 /* 74 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
22 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
23 struct LevelDecoration
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
24 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
25 LevelDecoration();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
26 int GetGlobalEvent();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
27 int IsInteractive();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
28 bool _47A825();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
29
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
30
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
31 unsigned __int16 uDecorationDescID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
32 __int16 field_2;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
33 struct Vec3_int_ vPosition;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
34 int field_10_y_rot;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
35 __int16 uCog;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
36 __int16 field_16_event_id;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
37 __int16 field_18;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
38 __int16 field_1A;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
39 __int16 field_1C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
40 __int16 field_1E;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
41 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
42 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
43 extern LevelDecoration pLevelDecorations[3000];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
44 extern size_t uNumLevelDecorations;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
45 extern LevelDecoration *_5C3420_pDecoration;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
46
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
47
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
48
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
49
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
50
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
51
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
52
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
53
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
54 /* 86 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
55 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
56 struct SpawnPointMM6
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
57 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
58 Vec3_int_ vPosition;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
59 unsigned __int16 uRadius;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
60 unsigned __int16 uKind;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
61 unsigned __int16 uIndex;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
62 unsigned __int16 uAttributes;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
63 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
64 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
65
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
66
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
67
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
68 /* 102 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
69 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
70 struct SpawnPointMM7
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
71 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
72 //----- (00448DD6) --------------------------------------------------------
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
73 SpawnPointMM7()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
74 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
75 uRadius = 32;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
76 uAttributes = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
77 uIndex = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
78 uKind = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
79 uGroup = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
80 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
81
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
82
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
83 Vec3_int_ vPosition;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
84 unsigned __int16 uRadius;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
85 unsigned __int16 uKind;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
86 unsigned __int16 uIndex;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
87 unsigned __int16 uAttributes;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
88 unsigned int uGroup;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
89 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
90 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
91
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
92
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
93
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
94
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
95
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
96
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
97
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
98
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
99
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
100
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
101 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
102 struct DDM_DLV_Header
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
103 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
104 //----- (00462607) --------------------------------------------------------
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
105 inline DDM_DLV_Header()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
106 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
107 this->uLastRepawnDay = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
108 this->uNumRespawns = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
109 this->uReputation = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
110 this->field_C_alert = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
111 this->uNumFacesInBModels = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
112 this->uNumDecorations = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
113 this->uNumBModels = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
114 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
115
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
116
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
117 int uNumRespawns;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
118 int uLastRepawnDay;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
119 int uReputation;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
120 int field_C_alert;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
121 unsigned int uNumFacesInBModels;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
122 unsigned int uNumDecorations;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
123 unsigned int uNumBModels;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
124 int field_1C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
125 int field_20;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
126 int field_24;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
127 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
128 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
129
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
130
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
131
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
132 /* 291 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
133 enum PolygonType : __int8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
134 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
135 POLYGON_Invalid = 0x0,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
136 POLYGON_VerticalWall = 0x1,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
137 POLYGON_unk = 0x2,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
138 POLYGON_Floor = 0x3,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
139 POLYGON_InBetweenFloorAndWall = 0x4,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
140 POLYGON_Ceiling = 0x5,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
141 POLYGON_InBetweenCeilingAndWall = 0x6,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
142 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
143
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
144 /* 90 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
145 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
146 struct BLVHeader
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
147 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
148 char field_0[104];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
149 unsigned int uFaces_fdata_Size;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
150 unsigned int uSector_rdata_Size;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
151 unsigned int uSector_lrdata_Size;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
152 unsigned int uDoors_ddata_Size;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
153 char field_78[16];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
154 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
155 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
156
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
157
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
158
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
159 /* 96 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
160 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
161 struct BLVSectorMM8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
162 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
163 int dword_000074;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
164 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
165 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
166
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
167 /* 97 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
168 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
169 struct BLVLightMM6
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
170 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
171 Vec3_short_ vPosition;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
172 __int16 uRadius;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
173 __int16 uAttributes;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
174 unsigned __int16 uBrightness;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
175 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
176 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
177
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
178 /* 98 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
179 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
180 struct BLVLightMM7
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
181 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
182 struct Vec3_short_ vPosition;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
183 __int16 uRadius;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
184 char uRed;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
185 char uGreen;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
186 char uBlue;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
187 char uType;
59
5159d2e6f559 BLV render
Nomad
parents: 58
diff changeset
188 __int16 uAtributes; // & 0x08 doesn't light faces
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
189 __int16 uBrightness;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
190 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
191 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
192
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
193 /* 99 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
194 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
195 struct BLVLightMM8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
196 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
197 int uID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
198 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
199 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
200
29
e62134245ab0 On BLV loading.
Nomad
parents: 28
diff changeset
201
e62134245ab0 On BLV loading.
Nomad
parents: 28
diff changeset
202
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
203 /* 100 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
204 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
205 struct BLVDoor
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
206 {
29
e62134245ab0 On BLV loading.
Nomad
parents: 28
diff changeset
207 enum State: unsigned __int16
e62134245ab0 On BLV loading.
Nomad
parents: 28
diff changeset
208 {
e62134245ab0 On BLV loading.
Nomad
parents: 28
diff changeset
209 Closed = 0,
e62134245ab0 On BLV loading.
Nomad
parents: 28
diff changeset
210 Opening = 1,
e62134245ab0 On BLV loading.
Nomad
parents: 28
diff changeset
211 Open = 2,
e62134245ab0 On BLV loading.
Nomad
parents: 28
diff changeset
212 Closing = 3
e62134245ab0 On BLV loading.
Nomad
parents: 28
diff changeset
213 };
e62134245ab0 On BLV loading.
Nomad
parents: 28
diff changeset
214
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
215 unsigned int uAttributes;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
216 unsigned int uDoorID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
217 unsigned int uTimeSinceTriggered;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
218 Vec3_int_ vDirection;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
219 int uMoveLength;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
220 int uOpenSpeed;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
221 int uCloseSpeed;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
222 unsigned __int16 *pVertexIDs;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
223 unsigned __int16 *pFaceIDs;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
224 unsigned __int16 *pSectorIDs;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
225 __int16 *pDeltaUs;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
226 __int16 *pDeltaVs;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
227 unsigned __int16 *pXOffsets;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
228 unsigned __int16 *pYOffsets;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
229 unsigned __int16 *pZOffsets;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
230 unsigned __int16 uNumVertices;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
231 unsigned __int16 uNumFaces;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
232 __int16 field_48;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
233 unsigned __int16 uNumOffsets;
29
e62134245ab0 On BLV loading.
Nomad
parents: 28
diff changeset
234 State uState;
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
235 __int16 field_4E;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
236 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
237 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
238
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
239 /* 101 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
240 #pragma pack(push, 1)
53
fd2fd234a66c BLV minimap: 2/3
Nomad
parents: 50
diff changeset
241 struct BLVMapOutline
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
242 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
243 unsigned __int16 uVertex1ID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
244 unsigned __int16 uVertex2ID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
245 unsigned __int16 uFace1ID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
246 unsigned __int16 uFace2ID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
247 __int16 sZ;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
248 unsigned __int16 uFlags;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
249 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
250 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
251
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
252
59
5159d2e6f559 BLV render
Nomad
parents: 58
diff changeset
253 #define FACE_TWO_SIDED 0x00000001 // portal/two-sided
68
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
254 // 0x02 color is saturated against lights
59
5159d2e6f559 BLV render
Nomad
parents: 58
diff changeset
255 #define FACE_TEXTURE_ANIMATED 0x00000010 // like wavy water
5159d2e6f559 BLV render
Nomad
parents: 58
diff changeset
256 #define FACE_INVISIBLE 0x00002000
5159d2e6f559 BLV render
Nomad
parents: 58
diff changeset
257 #define FACE_TEXTURE_FRAME 0x00004000 // Texture ID is a frameset from TextureFrameTable, otherwise BitmapID
5159d2e6f559 BLV render
Nomad
parents: 58
diff changeset
258 #define FACE_TEXTURE_FLOW 0x00040000 // The texture moves slowly. For horizontal facets only.
5159d2e6f559 BLV render
Nomad
parents: 58
diff changeset
259 #define FACE_CLICKABLE 0x02000000 // Event can be triggered by clicking on the facet.
5159d2e6f559 BLV render
Nomad
parents: 58
diff changeset
260 #define FACE_PRESSURE_PLATE 0x04000000 // Event can be triggered by stepping on the facet.
5159d2e6f559 BLV render
Nomad
parents: 58
diff changeset
261 #define FACE_ETHEREAL 0x20000000 // Untouchable. You can pass through it.
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
262
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
263 /* 93 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
264 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
265 struct BLVFace
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
266 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
267 //----- (0046ED02) --------------------------------------------------------
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
268 inline BLVFace()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
269 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
270 this->uNumVertices = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
271 this->uAttributes = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
272 this->uFaceExtraID = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
273 this->pVertexIDs = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
274 this->pZInterceptDisplacements = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
275 this->pYInterceptDisplacements = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
276 this->pXInterceptDisplacements = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
277 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
278
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
279 char _get_normals(Vec3_int_ *a2, Vec3_int_ *a3);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
280 struct Texture *GetTexture();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
281 void FromODM(struct ODMFace *a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
282
59
5159d2e6f559 BLV render
Nomad
parents: 58
diff changeset
283 inline bool Invisible() const {return uAttributes & FACE_INVISIBLE;}
5159d2e6f559 BLV render
Nomad
parents: 58
diff changeset
284 inline bool Visible() const {return !Invisible();}
5159d2e6f559 BLV render
Nomad
parents: 58
diff changeset
285 inline bool TwoSided() const {return uAttributes & FACE_TWO_SIDED;}
5159d2e6f559 BLV render
Nomad
parents: 58
diff changeset
286 inline bool Animated() const {return uAttributes & FACE_TEXTURE_ANIMATED;}
77
8b0c4d626477 Party movement
Nomad
parents: 68
diff changeset
287 inline bool Clickable() const {return uAttributes & FACE_CLICKABLE;}
59
5159d2e6f559 BLV render
Nomad
parents: 58
diff changeset
288
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
289
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
290 struct Plane_float_ pFacePlane;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
291 struct Plane_int_ pFacePlane_old;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
292 int zCalc1;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
293 int zCalc2;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
294 int zCalc3;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
295 unsigned int uAttributes;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
296 unsigned __int16 *pVertexIDs;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
297 unsigned __int16 *pXInterceptDisplacements;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
298 unsigned __int16 *pYInterceptDisplacements;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
299 unsigned __int16 *pZInterceptDisplacements;
82
f9a33f75bae3 Qick Record
Nomad
parents: 77
diff changeset
300 signed __int16 *pVertexUIDs;
f9a33f75bae3 Qick Record
Nomad
parents: 77
diff changeset
301 signed __int16 *pVertexVIDs;
f9a33f75bae3 Qick Record
Nomad
parents: 77
diff changeset
302 unsigned __int16 uFaceExtraID;
f9a33f75bae3 Qick Record
Nomad
parents: 77
diff changeset
303 unsigned __int16 uBitmapID;
f9a33f75bae3 Qick Record
Nomad
parents: 77
diff changeset
304 unsigned __int16 uSectorID;
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
305 __int16 uBackSectorID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
306 struct BBox_short_ pBounding;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
307 PolygonType uPolygonType;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
308 unsigned __int8 uNumVertices;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
309 char field_5E;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
310 char field_5F;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
311 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
312 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
313
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
314 /* 94 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
315 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
316 struct BLVFaceExtra
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
317 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
318 int HasEventint();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
319
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
320 __int16 field_0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
321 __int16 field_2;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
322 __int16 field_4;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
323 __int16 field_6;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
324 __int16 field_8;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
325 __int16 field_A;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
326 __int16 field_C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
327 unsigned __int16 uAdditionalBitmapID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
328 __int16 field_10;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
329 __int16 field_12;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
330 __int16 sTextureDeltaU;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
331 __int16 sTextureDeltaV;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
332 __int16 sCogNumber;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
333 unsigned __int16 uEventID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
334 __int16 field_1C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
335 __int16 field_1E;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
336 __int16 field_20;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
337 __int16 field_22;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
338 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
339 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
340
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
341 /* 95 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
342 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
343 struct BLVSector
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
344 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
345 int field_0;
58
41cbaabde2cb BLV render
Nomad
parents: 53
diff changeset
346 unsigned __int16 uNumFloors;
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
347 __int16 field_6;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
348 unsigned __int16 *pFloors;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
349 __int16 field_C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
350 __int16 field_E;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
351 unsigned __int16 *pWalls;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
352 __int16 field_14;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
353 __int16 field_16;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
354 unsigned __int16 *pCeilings;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
355 __int16 field_1C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
356 __int16 field_1E;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
357 unsigned __int16 *pFluids;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
358 __int16 uNumPortals;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
359 __int16 field_26;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
360 unsigned __int16 *pPortals;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
361 __int16 field_2C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
362 __int16 uNumNonBSPFaces;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
363 unsigned __int16 *pFaceIDs;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
364 __int16 uNumCylinderFaces;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
365 __int16 field_36;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
366 int pCylinderFaces;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
367 __int16 field_3C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
368 __int16 field_3E;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
369 unsigned __int16 *pCogs;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
370 unsigned __int16 uNumDecorations;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
371 __int16 field_46;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
372 unsigned __int16 *pDecorationIDs;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
373 __int16 field_4C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
374 __int16 field_4E;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
375 unsigned __int16 *pMarkers;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
376 __int16 uNumLights;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
377 __int16 field_56;
59
5159d2e6f559 BLV render
Nomad
parents: 58
diff changeset
378 unsigned __int16 *pLights;
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
379 __int16 uWaterLevel;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
380 __int16 uMistLevel;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
381 __int16 uLightDistanceMultiplier;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
382 __int16 uMinAmbientLightLevel;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
383 __int16 uFirstBSPNode;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
384 __int16 exit_tag;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
385 BBox_short_ pBounding;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
386 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
387 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
388
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
389
28
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
390 #pragma pack(push, 1)
53
fd2fd234a66c BLV minimap: 2/3
Nomad
parents: 50
diff changeset
391 struct BLVMapOutlines
28
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
392 {
53
fd2fd234a66c BLV minimap: 2/3
Nomad
parents: 50
diff changeset
393 uint uNumOutlines;
fd2fd234a66c BLV minimap: 2/3
Nomad
parents: 50
diff changeset
394 BLVMapOutline pOutlines[1];
28
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
395 };
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
396 #pragma pack(pop)
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
397
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
398
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
399
28
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
400 #pragma pack(push, 1)
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
401 struct IndoorLocation_stru1
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
402 {
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
403 unsigned __int64 uLastVisitDay;
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
404 char field_2F4[48];
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
405 };
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
406 #pragma pack(pop)
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
407
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
408
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
409
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
410 /* 89 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
411 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
412 struct IndoorLocation
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
413 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
414 //----- (00462592) --------------------------------------------------------
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
415 inline IndoorLocation()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
416 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
417 bLoaded = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
418 ptr_0002B8_sector_lrdata = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
419 ptr_0002B4_doors_ddata = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
420 ptr_0002B0_sector_rdata = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
421 ptr_2AC = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
422 pVertices = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
423 pFaces = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
424 pFaceExtras = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
425 pSectors = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
426 pLights = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
427 pDoors = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
428 pNodes = 0;
53
fd2fd234a66c BLV minimap: 2/3
Nomad
parents: 50
diff changeset
429 pMapOutlines = 0;
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
430 uNumSpawnPoints = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
431 pSpawnPoints = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
432 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
433
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
434 int GetSector(int sX, int sY, int sZ);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
435 void Release();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
436 int Alloc();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
437 bool Load(char *pFilename, int a3, size_t i, char *pDest);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
438 void Draw();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
439 void ToggleLight(unsigned int uLightID, unsigned int bToggle);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
440
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
441 static unsigned int GetLocationIndex(const char *Str1);
50
fde5c5acb66e BLV render
Nomad
parents: 29
diff changeset
442 static void ExecDraw(bool bD3D);
fde5c5acb66e BLV render
Nomad
parents: 29
diff changeset
443 static void ExecDraw_sw(unsigned int uFaceID);
fde5c5acb66e BLV render
Nomad
parents: 29
diff changeset
444 static void ExecDraw_d3d(unsigned int uFaceID, struct IndoorCameraD3D_Vec4 *pVertices, unsigned int uNumVertices, struct RenderVertexSoft *a4);
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
445
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
446 char pFilename[32];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
447 char field_20[48];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
448 unsigned int bLoaded;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
449 char field_54[404];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
450 struct BLVHeader blv;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
451 unsigned int uNumVertices;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
452 struct Vec3_short_ *pVertices;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
453 unsigned int uNumFaces;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
454 struct BLVFace *pFaces;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
455 unsigned int uNumFaceExtras;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
456 struct BLVFaceExtra *pFaceExtras;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
457 int uNumSectors;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
458 struct BLVSector *pSectors;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
459 int uNumLights;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
460 struct BLVLightMM7 *pLights;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
461 int uNumDoors;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
462 struct BLVDoor *pDoors;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
463 unsigned int uNumNodes;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
464 struct BSPNode *pNodes;
53
fd2fd234a66c BLV minimap: 2/3
Nomad
parents: 50
diff changeset
465 BLVMapOutlines *pMapOutlines;
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
466 unsigned __int16 *ptr_2AC;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
467 unsigned __int16 *ptr_0002B0_sector_rdata;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
468 unsigned __int16 *ptr_0002B4_doors_ddata;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
469 unsigned __int16 *ptr_0002B8_sector_lrdata;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
470 unsigned int uNumSpawnPoints;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
471 struct SpawnPointMM7 *pSpawnPoints;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
472 struct DDM_DLV_Header dlv;
28
18f7a1b94448 Indoor::Load
Nomad
parents: 3
diff changeset
473 IndoorLocation_stru1 stru1;
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
474 char _visible_outlines[876];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
475 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
476 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
477
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
478 extern IndoorLocation *pIndoor;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
479
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
480
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
481
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
482
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
483
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
484
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
485
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
486
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
487
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
488
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
489
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
490
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
491 /* 263 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
492 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
493 struct IndoorLocation_drawstru
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
494 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
495 int field_0_timer;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
496 int uFlags;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
497 Vec3_int_ vPosition;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
498 int sRotationY;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
499 int sRotationX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
500 int field_1C_mb_fov;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
501 unsigned __int16 *pRenderTarget;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
502 unsigned int uTargetWidth;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
503 unsigned int uTargetHeight;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
504 unsigned int uViewportX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
505 unsigned int uViewportY;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
506 unsigned int uViewportZ;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
507 unsigned int uViewportW;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
508 int field_3C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
509 int *pTargetZ;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
510 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
511 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
512
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
513
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
514
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
515
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
516
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
517
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
518
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
519
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
520
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
521
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
522
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
523
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
524 /* 162 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
525 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
526 struct BLVRenderParams
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
527 {
59
5159d2e6f559 BLV render
Nomad
parents: 58
diff changeset
528 int Reset(struct IndoorLocation_drawstru *a2);
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
529
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
530 int field_0_timer_;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
531 int uFlags;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
532 Vec3_int_ vPartyPos;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
533 int sPartyRotY;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
534 int sPartyRotX;
58
41cbaabde2cb BLV render
Nomad
parents: 53
diff changeset
535 int uPartySectorID;
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
536 int sCosineY;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
537 int sSineY;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
538 int sCosineNegX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
539 int sSineNegX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
540 float fCosineY;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
541 float fSineY;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
542 float fCosineNegX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
543 float fSineNegX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
544 int field_40;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
545 float field_44;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
546 unsigned __int16 *pRenderTarget;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
547 unsigned int uTargetWidth;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
548 unsigned int uTargetHeight;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
549 unsigned int uViewportX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
550 unsigned int uViewportY;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
551 unsigned int uViewportZ;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
552 unsigned int uViewportW;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
553 int field_64;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
554 int *pTargetZBuffer;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
555 int uViewportHeight;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
556 int field_70;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
557 int uViewportCenterX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
558 int uViewportCenterY;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
559 struct stru170_stru2 *field_7C;
59
5159d2e6f559 BLV render
Nomad
parents: 58
diff changeset
560 unsigned int uNumFacesRenderedThisFrame;
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
561 int field_84;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
562 int field_88;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
563 int field_8C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
564 int field_90;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
565 int field_94;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
566 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
567 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
568
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
569 extern struct BLVRenderParams *pBLVRenderParams;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
570
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
571
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
572
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
573
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
574
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
575 #include "Indoor_stuff.h"