Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/tgidronFS16/data/levels/Hover.oxw @ 11183

Last change on this file since 11183 was 11182, checked in by tgidron, 9 years ago

New Pickup

  • Property svn:eol-style set to native
File size: 7.4 KB
Line 
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
21MAZE_NUM_CELLS = 10
22MAZE_CELL_SIZE = 100
23MAZE_CELL_HEIGHT = 30
24MAZE_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<!-- Shrink Pickup Representation -->
54
55<Template name=smallshrinkpickupRepresentation>
56    <PickupRepresentation>
57        <spawner-representation>
58            <StaticEntity>
59                <attached>
60                    <Billboard position="0,0,0" colour="1.0,0.55,1.0" material="Sphere2" scale=0.1>
61                        <attached>
62                            <Billboard position="0,0,0" colour="1.0,0.55,1.0" material="Shrink" scale=0.35 />
63                        </attached>
64                    </Billboard>
65                </attached>
66            </StaticEntity>
67        </spawner-representation>
68    </PickupRepresentation>
69</Template>
70
71
72<Template name=smallshrinkpickup baseclass=ShrinkPickup>
73  <ShrinkPickup
74    representation = "smallshrinkpickup"
75    duration = 10.0
76    shrinkFactor = 2.5
77    activaionType = "immediate"
78    durationType = "continuous"
79  />
80</Template>
81
82<!-- Speed Pickup Representation -->
83
84<Template name=hugespeedpickupRepresentation>
85    <PickupRepresentation>
86        <spawner-representation>
87            <StaticEntity>
88                <attached>
89                    <Billboard position="0,0,0" colour="0.99,0.96,0.52" material="Sphere2" scale=0.1>
90                        <attached>
91                            <Billboard position="0,0,0" colour="0.98,0.94,0.22" material="3arrowsup" scale=0.7 />
92                        </attached>
93                    </Billboard>
94                </attached>
95            </StaticEntity>
96        </spawner-representation>
97    </PickupRepresentation>
98</Template>
99
100<Template name=hugespeedpickup baseclass=SpeedPickup>
101  <SpeedPickup
102    representation = "hugespeedpickup"
103    duration = 10.0
104    speedAdd = 0.0
105    SpeedMultiply = 50.0
106    activationType = "immediate"
107    durationType = "continuous"
108  />
109</Template>
110
111<!-- Destroy Carrier Pickup Representation -->
112
113<Template name=destroyhoverpickupRepresentation>
114    <PickupRepresentation>
115        <spawner-representation>
116            <StaticEntity>
117                <attached>
118                    <Billboard position="0,0,0" colour="0.6,0.⁰,0.8" material="Sphere2" scale=0.1>
119                        <attached>
120                            <Billboard position="0,0,0" colour="0.6,0.⁰,0.8" material="Asterisk" scale=0.65 />
121                        </attached>
122                    </Billboard>
123                </attached>
124            </StaticEntity>
125        </spawner-representation>
126    </PickupRepresentation>
127</Template>
128
129<Template name=destroyhoverpickup baseclass=MetaPickup>
130  <MetaPickup representation="destroyhover" metaType="destroyCarrier" />
131</Template>
132
133<!-- Obstacle (crate) Template -->
134
135<Template name=obstacle baseclass=Pawn>
136    <Pawn team=1 health=30 position="0,100,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box RVName = "Box 4" >
137        <attached>
138            <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
139        </attached>
140        <collisionShapes>
141            <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />
142        </collisionShapes>
143    </Pawn>
144</Template>
145
146
147<Level
148plugins = hover
149gametype = Hover
150>
151  <templates>
152    <Template link=lodtemplate_default />
153  </templates>
154
155  <?lua include("includes/notifications.oxi") ?>
156
157
158
159
160  <Scene
161    ambientlight = "0.8, 0.8, 0.8"
162    skybox       = "Orxonox/Starbox"
163    gravity      = "0, -200, 0"
164  >
165
166    <PickupRepresentation
167      name = "destroyhover"
168      pickupName = "Destroy Hover Pickup"
169      pickupDescription = "destroys you."
170      spawnerTemplate = "destroyhoverpickupRepresentation"
171      inventoryRepresentation = "destroyHoverPickup"
172    />
173
174    <PickupRepresentation
175      name = "hugespeedpickup"
176      pickupName = "Huge Speed Boost"
177      pickupDescription = "Multiplies Speed of the Ship by a huge amount."
178      spawnerTemplate = "hugespeedpickupRepresentation"
179      inventoryRepresentation = "HugeSpeed"
180    />
181
182    <PickupRepresentation
183      name = "smallshrinkpickup"
184      pickupName = "Small Shrink"
185      pickupDescription = "Shrinks the ship by a small amount."
186      spawnerTemplate = "smallshrinkpickupRepresentation"
187      inventoryRepresentation = "SmallShrink"
188    />
189<!--
190    <PickupRepresentation
191      name = "damagehover"
192      pickupName = "Medium Damage Hover Pickup"
193      pickupDescription = "Multiplies the ship damage with 5."
194      spawnerTemplate = "mediumdamagehoverpickupRepresentation"
195      inventoryRepresentation = "MediumDamageHover"
196    /> -->
197
198    <StaticEntity position="0,0,0" collisionType="static">
199      <attached>
200        <HoverOrigin
201          numCells="<?lua print(MAZE_NUM_CELLS)?>"
202          cellSize="<?lua print(MAZE_CELL_SIZE)?>"
203          cellHeight="<?lua print(MAZE_CELL_HEIGHT)?>"
204          obstacletemplate=obstacle
205          pickuptemplate=destroyhoverpickup
206          pickuprepresentationtemplate=destroyhoverpickupRepresentation
207          pickuptemplatespeed=hugespeedpickup
208          pickuprepresentationtemplatespeed=hugespeedpickupRepresentation
209          pickuptemplateshrink=smallshrinkpickup
210          pickuprepresentationtemplateshrink=smallshrinkpickupRepresentation
211        />
212        <Model
213          position="<?lua print(MAZE_SIZE/2)?>,-16,<?lua print(MAZE_SIZE/2)?>"
214          scale3D="<?lua print(MAZE_SIZE/2)?>,16,<?lua print(MAZE_SIZE/2)?>"
215          mesh="CubeGround.mesh"
216        />
217      </attached>
218      <collisionShapes>
219        <BoxCollisionShape
220          position="<?lua print(MAZE_SIZE/2)?>,<?lua print(MAZE_CELL_HEIGHT+1)?>,<?lua print(MAZE_SIZE/2)?>"
221          halfExtents="<?lua print(MAZE_SIZE/2)?>,1,<?lua print(MAZE_SIZE/2)?>"
222        />
223        <BoxCollisionShape
224          position="<?lua print(MAZE_SIZE/2)?>,-1,<?lua print(MAZE_SIZE/2)?>"
225          halfExtents="<?lua print(MAZE_SIZE/2)?>,1,<?lua print(MAZE_SIZE/2)?>"
226        />
227      </collisionShapes>
228    </StaticEntity>
229
230    <Light
231      type=directional
232      position="-50,500,-50"
233      direction="0.577, -0.577, 0.577"
234      diffuse="1.0, 0.9, 0.9, 1.0"
235      specular="1.0, 0.9, 0.9, 1.0"
236    />
237   
238    <SpawnPoint
239      team=0
240      position="50,20,50"
241      lookat="100,20,100"
242      spawnclass=HoverShip
243      pawndesign=spaceshiphover
244    />
245   
246  </Scene>
247</Level>
248
Note: See TracBrowser for help on using the repository browser.