1 | <LevelInfo |
---|
2 | name = "Hover level" |
---|
3 | description = "Level for Minigame Hover" |
---|
4 | tags = "minigame" |
---|
5 | screenshot = "Hover.png" |
---|
6 | /> |
---|
7 | |
---|
8 | <?lua |
---|
9 | include("stats.oxo") |
---|
10 | include("HUDTemplates3.oxo") |
---|
11 | include("templates/lodInformation.oxt") |
---|
12 | ?> |
---|
13 | |
---|
14 | <?lua |
---|
15 | include("templates/spaceshipPirate.oxt") |
---|
16 | include("templates/spaceshipHover.oxt") |
---|
17 | include("overlays/HoverHUD.oxo") |
---|
18 | ?> |
---|
19 | |
---|
20 | <?lua |
---|
21 | MAZE_NUM_CELLS = 10 |
---|
22 | MAZE_CELL_SIZE = 600 |
---|
23 | MAZE_CELL_HEIGHT = 180 |
---|
24 | MAZE_WALL_THICKNESS = 10 |
---|
25 | MAZE_SIZE = MAZE_NUM_CELLS*MAZE_CELL_SIZE |
---|
26 | ?> |
---|
27 | <!-- |
---|
28 | <Template name=mediumdamagehoverpickupRepresentation> |
---|
29 | <PickupRepresentation> |
---|
30 | <spawner-representation> |
---|
31 | <StaticEntity> |
---|
32 | <attached> |
---|
33 | <Billboard position="0,0,0" colour="0.95,0.10,0.05" material="Sphere2" scale=0.1 > |
---|
34 | <attached> |
---|
35 | <Billboard position="0,0,0" colour="0.70,0.10,0.10" material="Damage" scale=0.5 /> |
---|
36 | </attached> |
---|
37 | </Billboard> |
---|
38 | </attached> |
---|
39 | </StaticEntity> |
---|
40 | </spawner-representation> |
---|
41 | </PickupRepresentation> |
---|
42 | </Template> |
---|
43 | |
---|
44 | <Template name=damagehover baseclass=DamageBoostPickup> |
---|
45 | <DamageBoostPickup |
---|
46 | representation = "mediumdamagehoverpickup" |
---|
47 | duration = 10.0 |
---|
48 | damageMultiplier = 5.0 |
---|
49 | activationType = "immediate" |
---|
50 | durationType = "continuous" |
---|
51 | /> |
---|
52 | </Template> --> |
---|
53 | |
---|
54 | <!-- Shrink Pickup Representation --> |
---|
55 | |
---|
56 | <Template name=smallshrinkpickupRepresentation> |
---|
57 | <PickupRepresentation> |
---|
58 | <spawner-representation> |
---|
59 | <StaticEntity> |
---|
60 | <attached> |
---|
61 | <Billboard position="0,50,0" colour="1.0,0.55,1.0" material="Sphere2" scale=1> |
---|
62 | <attached> |
---|
63 | <Billboard position="0,0,0" colour="1.0,0.55,1.0" material="Shrink" scale=0.35 /> |
---|
64 | </attached> |
---|
65 | </Billboard> |
---|
66 | </attached> |
---|
67 | </StaticEntity> |
---|
68 | </spawner-representation> |
---|
69 | </PickupRepresentation> |
---|
70 | </Template> |
---|
71 | |
---|
72 | |
---|
73 | <Template name=smallshrinkpickup baseclass=ShrinkPickup> |
---|
74 | <ShrinkPickup |
---|
75 | representation = "smallshrinkpickup" |
---|
76 | duration = 10.0 |
---|
77 | shrinkFactor = 2.5 |
---|
78 | activaionType = "immediate" |
---|
79 | durationType = "continuous" |
---|
80 | /> |
---|
81 | </Template> |
---|
82 | |
---|
83 | <!-- Speed Pickup Representation --> |
---|
84 | |
---|
85 | <Template name=hugespeedpickupRepresentation> |
---|
86 | <PickupRepresentation> |
---|
87 | <spawner-representation> |
---|
88 | <StaticEntity> |
---|
89 | <attached> |
---|
90 | <Billboard position="0,50,0" colour="0.99,0.96,0.52" material="Sphere2" scale=1> |
---|
91 | <attached> |
---|
92 | <Billboard position="0,0,0" colour="0.98,0.94,0.22" material="3arrowsup" scale=0.7 /> |
---|
93 | </attached> |
---|
94 | </Billboard> |
---|
95 | </attached> |
---|
96 | </StaticEntity> |
---|
97 | </spawner-representation> |
---|
98 | </PickupRepresentation> |
---|
99 | </Template> |
---|
100 | |
---|
101 | <Template name=hugespeedpickup baseclass=SpeedPickup> |
---|
102 | <SpeedPickup |
---|
103 | representation = "hugespeedpickup" |
---|
104 | duration = 10.0 |
---|
105 | speedAdd = 0.0 |
---|
106 | SpeedMultiply = 50.0 |
---|
107 | activationType = "immediate" |
---|
108 | durationType = "continuous" |
---|
109 | /> |
---|
110 | </Template> |
---|
111 | |
---|
112 | <!-- Destroy Carrier Pickup Representation --> |
---|
113 | |
---|
114 | <Template name=destroyhoverpickupRepresentation> |
---|
115 | <PickupRepresentation> |
---|
116 | <spawner-representation> |
---|
117 | <StaticEntity> |
---|
118 | <attached> |
---|
119 | <Billboard position="0,50,0" colour="0.6,0.⁰,0.8" material="Sphere2" scale=1> |
---|
120 | <attached> |
---|
121 | <Billboard position="0,0,0" colour="0.6,0.⁰,0.8" material="Asterisk" scale=0.65 /> |
---|
122 | </attached> |
---|
123 | </Billboard> |
---|
124 | </attached> |
---|
125 | </StaticEntity> |
---|
126 | </spawner-representation> |
---|
127 | </PickupRepresentation> |
---|
128 | </Template> |
---|
129 | |
---|
130 | <Template name=destroyhoverpickup baseclass=MetaPickup> |
---|
131 | <MetaPickup representation="destroyhover" metaType="destroyCarrier" /> |
---|
132 | </Template> |
---|
133 | |
---|
134 | <!-- Obstacle (crate) Template --> |
---|
135 | |
---|
136 | <Template name=obstacle baseclass=Pawn> |
---|
137 | <Pawn team=1 health=30 position="0,100,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box RVName = "Box 4" > |
---|
138 | <attached> |
---|
139 | <Model position="0,50,0" mesh="crate.mesh" scale3D="15,15,15" /> |
---|
140 | </attached> |
---|
141 | <collisionShapes> |
---|
142 | <BoxCollisionShape position="0,0,0" halfExtents="70,70,70" /> |
---|
143 | </collisionShapes> |
---|
144 | </Pawn> |
---|
145 | </Template> |
---|
146 | |
---|
147 | |
---|
148 | <Level |
---|
149 | plugins = hover |
---|
150 | gametype = Hover |
---|
151 | > |
---|
152 | <templates> |
---|
153 | <Template link=lodtemplate_default /> |
---|
154 | </templates> |
---|
155 | |
---|
156 | <?lua include("includes/notifications.oxi") ?> |
---|
157 | |
---|
158 | |
---|
159 | <?lua |
---|
160 | for i = 1, 10, 1 do |
---|
161 | for j = 1,10 ,1 do |
---|
162 | ?> |
---|
163 | |
---|
164 | <StaticEntity position="0,0,0" collisionType="static"> |
---|
165 | <attached> |
---|
166 | <Model |
---|
167 | position="<?lua print(MAZE_CELL_SIZE*i)?>, -16, <?lua print(MAZE_CELL_SIZE*j)?>" |
---|
168 | scale3D="<?lua print(MAZE_CELL_SIZE*i)?>, 16, <?lua print(MAZE_CELL_SIZE*j)?>" |
---|
169 | mesh="CubeGround.mesh" |
---|
170 | /> |
---|
171 | </attached> |
---|
172 | <collisionShapes> |
---|
173 | <BoxCollisionShape |
---|
174 | position="<?lua print(MAZE_CELL_SIZE*i)?>, <?lua print(MAZE_CELL_HEIGHT+1)?>, <?lua print(MAZE_CELL_SIZE*j)?>" |
---|
175 | halfExtents="<?lua print(MAZE_CELL_SIZE*i)?>,1,<?lua print(MAZE_CELL_SIZE*j)?>" |
---|
176 | /> |
---|
177 | <BoxCollisionShape |
---|
178 | position="<?lua print(MAZE_CELL_SIZE*i)?>,-1,<?lua print(MAZE_CELL_SIZE*j)?>" |
---|
179 | halfExtents="<?lua print(MAZE_CELL_SIZE*i)?>,1,<?lua print(MAZE_CELL_SIZE*j)?>" |
---|
180 | /> |
---|
181 | </collisionShapes> |
---|
182 | |
---|
183 | <?lua |
---|
184 | end |
---|
185 | end |
---|
186 | ?> |
---|
187 | |
---|
188 | </StaticEntity> |
---|
189 | |
---|
190 | <Scene |
---|
191 | ambientlight = "0.8, 0.8, 0.8" |
---|
192 | skybox = "Orxonox/Starbox" |
---|
193 | gravity = "0, -300, 0" |
---|
194 | > |
---|
195 | |
---|
196 | <PickupRepresentation |
---|
197 | name = "destroyhover" |
---|
198 | pickupName = "Destroy Hover Pickup" |
---|
199 | pickupDescription = "destroys you." |
---|
200 | spawnerTemplate = "destroyhoverpickupRepresentation" |
---|
201 | inventoryRepresentation = "destroyHoverPickup" |
---|
202 | /> |
---|
203 | |
---|
204 | <PickupRepresentation |
---|
205 | name = "hugespeedpickup" |
---|
206 | pickupName = "Huge Speed Boost" |
---|
207 | pickupDescription = "Multiplies Speed of the Ship by a huge amount." |
---|
208 | spawnerTemplate = "hugespeedpickupRepresentation" |
---|
209 | inventoryRepresentation = "HugeSpeed" |
---|
210 | /> |
---|
211 | |
---|
212 | <PickupRepresentation |
---|
213 | name = "smallshrinkpickup" |
---|
214 | pickupName = "Small Shrink" |
---|
215 | pickupDescription = "Shrinks the ship by a small amount." |
---|
216 | spawnerTemplate = "smallshrinkpickupRepresentation" |
---|
217 | inventoryRepresentation = "SmallShrink" |
---|
218 | /> |
---|
219 | <!-- |
---|
220 | <PickupRepresentation |
---|
221 | name = "damagehover" |
---|
222 | pickupName = "Medium Damage Hover Pickup" |
---|
223 | pickupDescription = "Multiplies the ship damage with 5." |
---|
224 | spawnerTemplate = "mediumdamagehoverpickupRepresentation" |
---|
225 | inventoryRepresentation = "MediumDamageHover" |
---|
226 | /> --> |
---|
227 | |
---|
228 | <StaticEntity position="0,0,0" collisionType="static"> |
---|
229 | <attached> |
---|
230 | <HoverOrigin |
---|
231 | numCells="<?lua print(MAZE_NUM_CELLS)?>" |
---|
232 | cellSize="<?lua print(MAZE_CELL_SIZE)?>" |
---|
233 | cellHeight="<?lua print(MAZE_CELL_HEIGHT)?>" |
---|
234 | obstacletemplate=obstacle |
---|
235 | pickuptemplate=destroyhoverpickup |
---|
236 | pickuprepresentationtemplate=destroyhoverpickupRepresentation |
---|
237 | pickuptemplatespeed=hugespeedpickup |
---|
238 | pickuprepresentationtemplatespeed=hugespeedpickupRepresentation |
---|
239 | pickuptemplateshrink=smallshrinkpickup |
---|
240 | pickuprepresentationtemplateshrink=smallshrinkpickupRepresentation |
---|
241 | /> |
---|
242 | </attached> |
---|
243 | |
---|
244 | </StaticEntity> |
---|
245 | |
---|
246 | <Light |
---|
247 | type=directional |
---|
248 | position="-50,500,-50" |
---|
249 | direction="0.577, -0.577, 0.577" |
---|
250 | diffuse="1.0, 0.9, 0.9, 1.0" |
---|
251 | specular="1.0, 0.9, 0.9, 1.0" |
---|
252 | /> |
---|
253 | |
---|
254 | <SpawnPoint |
---|
255 | team=0 |
---|
256 | position="300,120,300" |
---|
257 | lookat="600,120,600" |
---|
258 | spawnclass=HoverShip |
---|
259 | pawndesign=spaceshiphover |
---|
260 | /> |
---|
261 | |
---|
262 | </Scene> |
---|
263 | </Level> |
---|
264 | |
---|
265 | |
---|
266 | |
---|
267 | <!--<<Model |
---|
268 | position="<?lua print(MAZE_SIZE/2)?>,-16,<?lua print(MAZE_SIZE/2)?>" |
---|
269 | scale3D="<?lua print(MAZE_SIZE/2)?>,16,<?lua print(MAZE_SIZE/2)?>" |
---|
270 | mesh="ss_wall.mesh" |
---|
271 | /> |
---|
272 | </attached> |
---|
273 | |
---|
274 | <collisionShapes> |
---|
275 | <BoxCollisionShape |
---|
276 | position="<?lua print(MAZE_SIZE/2)?>,<?lua print(MAZE_CELL_HEIGHT+1)?>,<?lua print(MAZE_SIZE/2)?>" |
---|
277 | halfExtents="<?lua print(MAZE_SIZE/2)?>,1,<?lua print(MAZE_SIZE/2)?>" |
---|
278 | /> |
---|
279 | <BoxCollisionShape |
---|
280 | position="<?lua print(MAZE_SIZE/2)?>,-1,<?lua print(MAZE_SIZE/2)?>" |
---|
281 | halfExtents="<?lua print(MAZE_SIZE/2)?>,1,<?lua print(MAZE_SIZE/2)?>" |
---|
282 | /> |
---|
283 | </collisionShapes> --> |
---|