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 = 100 |
---|
23 | MAZE_CELL_HEIGHT = 30 |
---|
24 | MAZE_SIZE = MAZE_NUM_CELLS*MAZE_CELL_SIZE |
---|
25 | ?> |
---|
26 | <!-- |
---|
27 | <Template name=mediumdamagehoverpickupRepresentation> |
---|
28 | <PickupRepresentation> |
---|
29 | <spawner-representation> |
---|
30 | <StaticEntity> |
---|
31 | <attached> |
---|
32 | <Billboard position="0,0,0" colour="0.95,0.10,0.05" material="Sphere2" scale=0.1 > |
---|
33 | <attached> |
---|
34 | <Billboard position="0,0,0" colour="0.70,0.10,0.10" material="Damage" scale=0.5 /> |
---|
35 | </attached> |
---|
36 | </Billboard> |
---|
37 | </attached> |
---|
38 | </StaticEntity> |
---|
39 | </spawner-representation> |
---|
40 | </PickupRepresentation> |
---|
41 | </Template> |
---|
42 | |
---|
43 | <Template name=damagehover baseclass=DamageBoostPickup> |
---|
44 | <DamageBoostPickup |
---|
45 | representation = "mediumdamagehoverpickup" |
---|
46 | duration = 10.0 |
---|
47 | damageMultiplier = 5.0 |
---|
48 | activationType = "immediate" |
---|
49 | durationType = "continuous" |
---|
50 | /> |
---|
51 | </Template> --> |
---|
52 | |
---|
53 | <Template name=hugespeedpickupRepresentation> |
---|
54 | <PickupRepresentation> |
---|
55 | <spawner-representation> |
---|
56 | <StaticEntity> |
---|
57 | <attached> |
---|
58 | <Billboard position="0,0,0" colour="0.99,0.96,0.52" material="Sphere2" scale=0.1> |
---|
59 | <attached> |
---|
60 | <Billboard position="0,0,0" colour="0.98,0.94,0.22" material="3arrowsup" scale=0.7 /> |
---|
61 | </attached> |
---|
62 | </Billboard> |
---|
63 | </attached> |
---|
64 | </StaticEntity> |
---|
65 | </spawner-representation> |
---|
66 | </PickupRepresentation> |
---|
67 | </Template> |
---|
68 | |
---|
69 | <Template name=hugespeedpickup baseclass=SpeedPickup> |
---|
70 | <SpeedPickup |
---|
71 | representation = "hugespeedpickup" |
---|
72 | duration = 10.0 |
---|
73 | speedAdd = 0.0 |
---|
74 | SpeedMultiply = 50.0 |
---|
75 | activationType = "immediate" |
---|
76 | durationType = "continuous" |
---|
77 | /> |
---|
78 | </Template> |
---|
79 | |
---|
80 | |
---|
81 | |
---|
82 | <Template name=destroyhoverpickupRepresentation> |
---|
83 | <PickupRepresentation> |
---|
84 | <spawner-representation> |
---|
85 | <StaticEntity> |
---|
86 | <attached> |
---|
87 | <Billboard position="0,0,0" colour="0.6,0.⁰,0.8" material="Sphere2" scale=0.1> |
---|
88 | <attached> |
---|
89 | <Billboard position="0,0,0" colour="0.6,0.⁰,0.8" material="Asterisk" scale=0.65 /> |
---|
90 | </attached> |
---|
91 | </Billboard> |
---|
92 | </attached> |
---|
93 | </StaticEntity> |
---|
94 | </spawner-representation> |
---|
95 | </PickupRepresentation> |
---|
96 | </Template> |
---|
97 | |
---|
98 | <Template name=destroyhoverpickup baseclass=MetaPickup> |
---|
99 | <MetaPickup representation="destroyhover" metaType="destroyCarrier" /> |
---|
100 | </Template> |
---|
101 | |
---|
102 | <Template name=obstacle baseclass=Pawn> |
---|
103 | <Pawn team=1 health=30 position="0,100,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box RVName = "Box 4" > |
---|
104 | <attached> |
---|
105 | <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" /> |
---|
106 | </attached> |
---|
107 | <collisionShapes> |
---|
108 | <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" /> |
---|
109 | </collisionShapes> |
---|
110 | </Pawn> |
---|
111 | </Template> |
---|
112 | |
---|
113 | |
---|
114 | <Level |
---|
115 | plugins = hover |
---|
116 | gametype = Hover |
---|
117 | > |
---|
118 | <templates> |
---|
119 | <Template link=lodtemplate_default /> |
---|
120 | </templates> |
---|
121 | |
---|
122 | <?lua include("includes/notifications.oxi") ?> |
---|
123 | |
---|
124 | |
---|
125 | |
---|
126 | |
---|
127 | <Scene |
---|
128 | ambientlight = "0.8, 0.8, 0.8" |
---|
129 | skybox = "Orxonox/Starbox" |
---|
130 | gravity = "0, -200, 0" |
---|
131 | > |
---|
132 | |
---|
133 | <PickupRepresentation |
---|
134 | name = "destroyhover" |
---|
135 | pickupName = "Destroy Hover Pickup" |
---|
136 | pickupDescription = "destroys you." |
---|
137 | spawnerTemplate = "destroyhoverpickupRepresentation" |
---|
138 | inventoryRepresentation = "destroyHoverPickup" |
---|
139 | /> |
---|
140 | |
---|
141 | <PickupRepresentation |
---|
142 | name = "hugespeedpickup" |
---|
143 | pickupName = "Huge Speed Boost" |
---|
144 | pickupDescription = "Multiplies Speed of the Ship by a huge amount." |
---|
145 | spawnerTemplate = "hugespeedpickupRepresentation" |
---|
146 | inventoryRepresentation = "HugeSpeed" |
---|
147 | /> |
---|
148 | <!-- |
---|
149 | <PickupRepresentation |
---|
150 | name = "damagehover" |
---|
151 | pickupName = "Medium Damage Hover Pickup" |
---|
152 | pickupDescription = "Multiplies the ship damage with 5." |
---|
153 | spawnerTemplate = "mediumdamagehoverpickupRepresentation" |
---|
154 | inventoryRepresentation = "MediumDamageHover" |
---|
155 | /> --> |
---|
156 | |
---|
157 | <StaticEntity position="0,0,0" collisionType="static"> |
---|
158 | <attached> |
---|
159 | <HoverOrigin |
---|
160 | numCells="<?lua print(MAZE_NUM_CELLS)?>" |
---|
161 | cellSize="<?lua print(MAZE_CELL_SIZE)?>" |
---|
162 | cellHeight="<?lua print(MAZE_CELL_HEIGHT)?>" |
---|
163 | obstacletemplate=obstacle |
---|
164 | pickuptemplate=destroyhoverpickup |
---|
165 | pickuprepresentationtemplate=destroyhoverpickupRepresentation |
---|
166 | pickuptemplatedam=hugespeedpickup |
---|
167 | pickuprepresentationtemplatedam=hugespeedpickupRepresentation |
---|
168 | /> |
---|
169 | <Model |
---|
170 | position="<?lua print(MAZE_SIZE/2)?>,-16,<?lua print(MAZE_SIZE/2)?>" |
---|
171 | scale3D="<?lua print(MAZE_SIZE/2)?>,16,<?lua print(MAZE_SIZE/2)?>" |
---|
172 | mesh="CubeGround.mesh" |
---|
173 | /> |
---|
174 | </attached> |
---|
175 | <collisionShapes> |
---|
176 | <BoxCollisionShape |
---|
177 | position="<?lua print(MAZE_SIZE/2)?>,<?lua print(MAZE_CELL_HEIGHT+1)?>,<?lua print(MAZE_SIZE/2)?>" |
---|
178 | halfExtents="<?lua print(MAZE_SIZE/2)?>,1,<?lua print(MAZE_SIZE/2)?>" |
---|
179 | /> |
---|
180 | <BoxCollisionShape |
---|
181 | position="<?lua print(MAZE_SIZE/2)?>,-1,<?lua print(MAZE_SIZE/2)?>" |
---|
182 | halfExtents="<?lua print(MAZE_SIZE/2)?>,1,<?lua print(MAZE_SIZE/2)?>" |
---|
183 | /> |
---|
184 | </collisionShapes> |
---|
185 | </StaticEntity> |
---|
186 | |
---|
187 | <Light |
---|
188 | type=directional |
---|
189 | position="-50,500,-50" |
---|
190 | direction="0.577, -0.577, 0.577" |
---|
191 | diffuse="1.0, 0.9, 0.9, 1.0" |
---|
192 | specular="1.0, 0.9, 0.9, 1.0" |
---|
193 | /> |
---|
194 | |
---|
195 | <SpawnPoint |
---|
196 | team=0 |
---|
197 | position="50,20,50" |
---|
198 | lookat="100,20,100" |
---|
199 | spawnclass=HoverShip |
---|
200 | pawndesign=spaceshiphover |
---|
201 | /> |
---|
202 | |
---|
203 | </Scene> |
---|
204 | </Level> |
---|
205 | |
---|