1 | <LevelInfo |
---|
2 | name = "Hover level" |
---|
3 | description = "Level for Minigame Hover" |
---|
4 | tags = "minigame" |
---|
5 | screenshot = "emptylevel.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/spaceshipGhost.oxt") |
---|
16 | include("templates/spaceshipHover.oxt") |
---|
17 | include("overlays/HoverHUD.oxo") |
---|
18 | ?> |
---|
19 | |
---|
20 | |
---|
21 | |
---|
22 | |
---|
23 | |
---|
24 | |
---|
25 | |
---|
26 | |
---|
27 | <?lua |
---|
28 | include("stats.oxo") |
---|
29 | include("HUDTemplates3.oxo") |
---|
30 | include("templates/lodInformation.oxt") |
---|
31 | include("templates/pickupRepresentationTemplates.oxt") |
---|
32 | |
---|
33 | ?> |
---|
34 | |
---|
35 | |
---|
36 | |
---|
37 | |
---|
38 | |
---|
39 | |
---|
40 | |
---|
41 | |
---|
42 | |
---|
43 | |
---|
44 | |
---|
45 | |
---|
46 | |
---|
47 | |
---|
48 | |
---|
49 | |
---|
50 | |
---|
51 | |
---|
52 | <?lua |
---|
53 | MAZE_NUM_CELLS = 10 |
---|
54 | MAZE_CELL_SIZE = 100 |
---|
55 | MAZE_CELL_HEIGHT = 100 |
---|
56 | MAZE_SIZE = MAZE_NUM_CELLS*MAZE_CELL_SIZE |
---|
57 | ?> |
---|
58 | |
---|
59 | <Level |
---|
60 | plugins = hover |
---|
61 | gametype = Hover |
---|
62 | |
---|
63 | |
---|
64 | > |
---|
65 | <templates> |
---|
66 | <Template link=lodtemplate_default /> |
---|
67 | </templates> |
---|
68 | <?lua include("includes/notifications.oxi") ?> |
---|
69 | |
---|
70 | <Scene |
---|
71 | ambientlight = "0.8, 0.8, 0.8" |
---|
72 | skybox = "Orxonox/Starbox" |
---|
73 | gravity = "0, -200, 0" |
---|
74 | > |
---|
75 | |
---|
76 | <StaticEntity position="0,0,0" collisionType="static"> |
---|
77 | <attached> |
---|
78 | <HoverOrigin |
---|
79 | numCells="<?lua print(MAZE_NUM_CELLS)?>" |
---|
80 | cellSize="<?lua print(MAZE_CELL_SIZE)?>" |
---|
81 | cellHeight="<?lua print(MAZE_CELL_HEIGHT)?>" |
---|
82 | /> |
---|
83 | <Model |
---|
84 | position="<?lua print(MAZE_SIZE/2)?>,-16,<?lua print(MAZE_SIZE/2)?>" |
---|
85 | scale3D="<?lua print(MAZE_SIZE/2)?>,16,<?lua print(MAZE_SIZE/2)?>" |
---|
86 | mesh="CubeGround.mesh" |
---|
87 | /> |
---|
88 | </attached> |
---|
89 | <collisionShapes> |
---|
90 | <BoxCollisionShape |
---|
91 | position="<?lua print(MAZE_SIZE/2)?>,<?lua print(MAZE_CELL_HEIGHT+1)?>,<?lua print(MAZE_SIZE/2)?>" |
---|
92 | halfExtents="<?lua print(MAZE_SIZE/2)?>,1,<?lua print(MAZE_SIZE/2)?>" |
---|
93 | /> |
---|
94 | <BoxCollisionShape |
---|
95 | position="<?lua print(MAZE_SIZE/2)?>,-1,<?lua print(MAZE_SIZE/2)?>" |
---|
96 | halfExtents="<?lua print(MAZE_SIZE/2)?>,1,<?lua print(MAZE_SIZE/2)?>" |
---|
97 | /> |
---|
98 | </collisionShapes> |
---|
99 | </StaticEntity> |
---|
100 | |
---|
101 | <Light |
---|
102 | type=directional |
---|
103 | position="-50,500,-50" |
---|
104 | direction="0.577, -0.577, 0.577" |
---|
105 | diffuse="1.0, 0.9, 0.9, 1.0" |
---|
106 | specular="1.0, 0.9, 0.9, 1.0" |
---|
107 | /> |
---|
108 | |
---|
109 | <SpawnPoint |
---|
110 | team=0 |
---|
111 | position="50,20,50" |
---|
112 | lookat="100,20,100" |
---|
113 | spawnclass=HoverShip |
---|
114 | pawndesign=spaceshiphover |
---|
115 | /> |
---|
116 | |
---|
117 | <SpaceShip position="100,20,100" lookat="50,20,50" name="enemy" health="200" maxhealth="200" initialhealth="200" > |
---|
118 | <templates> |
---|
119 | <Template link=spaceshiphover /> |
---|
120 | </templates> |
---|
121 | <controller> |
---|
122 | <WaypointPatrolController alertnessradius=2000 team=1 > |
---|
123 | <waypoints> |
---|
124 | <Model mesh="cube.mesh" scale=0 position="15500,15500,15500" /> |
---|
125 | |
---|
126 | </waypoints> |
---|
127 | |
---|
128 | </WaypointPatrolController> |
---|
129 | |
---|
130 | </controller> |
---|
131 | </SpaceShip> |
---|
132 | |
---|
133 | </Scene> |
---|
134 | </Level> |
---|
135 | |
---|