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