annotate Indoor.h @ 32:77de07f99e03

16.10.12 9.09
author Ritor1
date Tue, 16 Oct 2012 09:09:53 +0600
parents 540178ef9b18
children 18f7a1b94448
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;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
188 __int16 uAtributes;
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
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
201 /* 100 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
202 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
203 struct BLVDoor
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
204 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
205 unsigned int uAttributes;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
206 unsigned int uDoorID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
207 unsigned int uTimeSinceTriggered;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
208 Vec3_int_ vDirection;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
209 int uMoveLength;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
210 int uOpenSpeed;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
211 int uCloseSpeed;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
212 unsigned __int16 *pVertexIDs;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
213 unsigned __int16 *pFaceIDs;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
214 unsigned __int16 *pSectorIDs;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
215 __int16 *pDeltaUs;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
216 __int16 *pDeltaVs;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
217 unsigned __int16 *pXOffsets;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
218 unsigned __int16 *pYOffsets;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
219 unsigned __int16 *pZOffsets;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
220 unsigned __int16 uNumVertices;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
221 unsigned __int16 uNumFaces;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
222 __int16 field_48;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
223 unsigned __int16 uNumOffsets;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
224 unsigned __int16 uState;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
225 __int16 field_4E;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
226 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
227 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
228
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
229 /* 101 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
230 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
231 struct BLVMapVertex
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
232 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
233 unsigned __int16 uVertex1ID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
234 unsigned __int16 uVertex2ID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
235 unsigned __int16 uFace1ID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
236 unsigned __int16 uFace2ID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
237 __int16 sZ;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
238 unsigned __int16 uFlags;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
239 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
240 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
241
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
242
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
243
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
244 /* 93 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
245 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
246 struct BLVFace
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
247 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
248 //----- (0046ED02) --------------------------------------------------------
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
249 inline BLVFace()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
250 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
251 this->uNumVertices = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
252 this->uAttributes = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
253 this->uFaceExtraID = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
254 this->pVertexIDs = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
255 this->pZInterceptDisplacements = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
256 this->pYInterceptDisplacements = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
257 this->pXInterceptDisplacements = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
258 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
259
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
260 char _get_normals(Vec3_int_ *a2, Vec3_int_ *a3);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
261 struct Texture *GetTexture();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
262 void FromODM(struct ODMFace *a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
263
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
264
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
265 struct Plane_float_ pFacePlane;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
266 struct Plane_int_ pFacePlane_old;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
267 int zCalc1;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
268 int zCalc2;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
269 int zCalc3;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
270 unsigned int uAttributes;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
271 unsigned __int16 *pVertexIDs;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
272 unsigned __int16 *pXInterceptDisplacements;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
273 unsigned __int16 *pYInterceptDisplacements;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
274 unsigned __int16 *pZInterceptDisplacements;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
275 unsigned __int16 *pVertexUIDs;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
276 unsigned __int16 *pVertexVIDs;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
277 unsigned __int16 uFaceExtraID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
278 unsigned __int16 uBitmapID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
279 unsigned __int16 uSectorID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
280 __int16 uBackSectorID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
281 struct BBox_short_ pBounding;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
282 PolygonType uPolygonType;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
283 unsigned __int8 uNumVertices;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
284 char field_5E;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
285 char field_5F;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
286 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
287 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
288
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
289 /* 94 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
290 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
291 struct BLVFaceExtra
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
292 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
293 int HasEventint();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
294
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
295 __int16 field_0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
296 __int16 field_2;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
297 __int16 field_4;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
298 __int16 field_6;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
299 __int16 field_8;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
300 __int16 field_A;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
301 __int16 field_C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
302 unsigned __int16 uAdditionalBitmapID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
303 __int16 field_10;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
304 __int16 field_12;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
305 __int16 sTextureDeltaU;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
306 __int16 sTextureDeltaV;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
307 __int16 sCogNumber;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
308 unsigned __int16 uEventID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
309 __int16 field_1C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
310 __int16 field_1E;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
311 __int16 field_20;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
312 __int16 field_22;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
313 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
314 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
315
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
316 /* 95 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
317 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
318 struct BLVSector
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
319 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
320 int field_0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
321 __int16 field_4;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
322 __int16 field_6;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
323 unsigned __int16 *pFloors;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
324 __int16 field_C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
325 __int16 field_E;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
326 unsigned __int16 *pWalls;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
327 __int16 field_14;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
328 __int16 field_16;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
329 unsigned __int16 *pCeilings;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
330 __int16 field_1C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
331 __int16 field_1E;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
332 unsigned __int16 *pFluids;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
333 __int16 uNumPortals;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
334 __int16 field_26;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
335 unsigned __int16 *pPortals;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
336 __int16 field_2C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
337 __int16 uNumNonBSPFaces;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
338 unsigned __int16 *pFaceIDs;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
339 __int16 uNumCylinderFaces;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
340 __int16 field_36;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
341 int pCylinderFaces;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
342 __int16 field_3C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
343 __int16 field_3E;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
344 unsigned __int16 *pCogs;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
345 unsigned __int16 uNumDecorations;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
346 __int16 field_46;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
347 unsigned __int16 *pDecorationIDs;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
348 __int16 field_4C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
349 __int16 field_4E;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
350 unsigned __int16 *pMarkers;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
351 __int16 uNumLights;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
352 __int16 field_56;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
353 BLVLightMM7 *pLights;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
354 __int16 uWaterLevel;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
355 __int16 uMistLevel;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
356 __int16 uLightDistanceMultiplier;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
357 __int16 uMinAmbientLightLevel;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
358 __int16 uFirstBSPNode;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
359 __int16 exit_tag;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
360 BBox_short_ pBounding;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
361 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
362 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
363
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
364
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
365
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
366
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
367
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
368
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
369
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
370 /* 89 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
371 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
372 struct IndoorLocation
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
373 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
374 //----- (00462592) --------------------------------------------------------
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
375 inline IndoorLocation()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
376 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
377 bLoaded = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
378 ptr_0002B8_sector_lrdata = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
379 ptr_0002B4_doors_ddata = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
380 ptr_0002B0_sector_rdata = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
381 ptr_2AC = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
382 pVertices = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
383 pFaces = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
384 pFaceExtras = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
385 pSectors = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
386 pLights = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
387 pDoors = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
388 pNodes = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
389 pMapVertices = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
390 uNumSpawnPoints = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
391 pSpawnPoints = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
392 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
393
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
394 int GetSector(int sX, int sY, int sZ);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
395 void Release();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
396 int Alloc();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
397 bool Load(char *pFilename, int a3, size_t i, char *pDest);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
398 void Draw();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
399 void ToggleLight(unsigned int uLightID, unsigned int bToggle);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
400
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
401 static unsigned int GetLocationIndex(const char *Str1);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
402 static void ExecDraw(char a1);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
403 static void ExecDraw_sub1(unsigned int uFaceID);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
404 static void ExecDraw_sub0(unsigned int uFaceID, struct IndoorCameraD3D_Vec4 *pVertices, unsigned int uNumVertices, struct RenderVertexSoft *a4);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
405
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
406 char pFilename[32];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
407 char field_20[48];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
408 unsigned int bLoaded;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
409 char field_54[404];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
410 struct BLVHeader blv;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
411 unsigned int uNumVertices;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
412 struct Vec3_short_ *pVertices;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
413 unsigned int uNumFaces;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
414 struct BLVFace *pFaces;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
415 unsigned int uNumFaceExtras;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
416 struct BLVFaceExtra *pFaceExtras;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
417 int uNumSectors;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
418 struct BLVSector *pSectors;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
419 int uNumLights;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
420 struct BLVLightMM7 *pLights;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
421 int uNumDoors;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
422 struct BLVDoor *pDoors;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
423 unsigned int uNumNodes;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
424 struct BSPNode *pNodes;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
425 unsigned int *pMapVertices;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
426 unsigned __int16 *ptr_2AC;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
427 unsigned __int16 *ptr_0002B0_sector_rdata;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
428 unsigned __int16 *ptr_0002B4_doors_ddata;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
429 unsigned __int16 *ptr_0002B8_sector_lrdata;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
430 unsigned int uNumSpawnPoints;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
431 struct SpawnPointMM7 *pSpawnPoints;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
432 struct DDM_DLV_Header dlv;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
433 unsigned __int64 uLastVisitDay;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
434 char field_2F4[48];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
435 char _visible_outlines[876];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
436 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
437 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
438
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
439 extern IndoorLocation *pIndoor;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
440
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
441
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
442
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
443
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
444
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
445
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
446
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
447
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
448
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
449
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
450
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
451
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
452 /* 263 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
453 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
454 struct IndoorLocation_drawstru
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
455 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
456 int field_0_timer;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
457 int uFlags;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
458 Vec3_int_ vPosition;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
459 int sRotationY;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
460 int sRotationX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
461 int field_1C_mb_fov;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
462 unsigned __int16 *pRenderTarget;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
463 unsigned int uTargetWidth;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
464 unsigned int uTargetHeight;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
465 unsigned int uViewportX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
466 unsigned int uViewportY;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
467 unsigned int uViewportZ;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
468 unsigned int uViewportW;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
469 int field_3C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
470 int *pTargetZ;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
471 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
472 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
473
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
474
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
475
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
476
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
477
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
478
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 /* 162 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
486 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
487 struct BLVRenderParams
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
488 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
489 int Set(struct IndoorLocation_drawstru *a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
490
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
491 int field_0_timer_;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
492 int uFlags;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
493 Vec3_int_ vPartyPos;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
494 int sPartyRotY;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
495 int sPartyRotX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
496 int uRadius;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
497 int sCosineY;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
498 int sSineY;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
499 int sCosineNegX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
500 int sSineNegX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
501 float fCosineY;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
502 float fSineY;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
503 float fCosineNegX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
504 float fSineNegX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
505 int field_40;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
506 float field_44;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
507 unsigned __int16 *pRenderTarget;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
508 unsigned int uTargetWidth;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
509 unsigned int uTargetHeight;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
510 unsigned int uViewportX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
511 unsigned int uViewportY;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
512 unsigned int uViewportZ;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
513 unsigned int uViewportW;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
514 int field_64;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
515 int *pTargetZBuffer;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
516 int uViewportHeight;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
517 int field_70;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
518 int uViewportCenterX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
519 int uViewportCenterY;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
520 struct stru170_stru2 *field_7C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
521 int field_80;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
522 int field_84;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
523 int field_88;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
524 int field_8C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
525 int field_90;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
526 int field_94;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
527 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
528 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
529
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
530 extern struct BLVRenderParams *pBLVRenderParams;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
531
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
532
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
533
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
534
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
535
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
536 #include "Indoor_stuff.h"