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/spaceshipHover.oxt") |
---|
16 | include("templates/spaceshipzombie.oxt") |
---|
17 | ?> |
---|
18 | |
---|
19 | |
---|
20 | <?lua |
---|
21 | MAZE_NUM_CELLS = 10 |
---|
22 | MAZE_CELL_SIZE = 100 |
---|
23 | MAZE_CELL_HEIGHT = 100 |
---|
24 | MAZE_SIZE = MAZE_NUM_CELLS*MAZE_CELL_SIZE |
---|
25 | ?> |
---|
26 | |
---|
27 | <Level |
---|
28 | plugins = hover |
---|
29 | gametype = Hover |
---|
30 | |
---|
31 | |
---|
32 | > |
---|
33 | <templates> |
---|
34 | <Template link=lodtemplate_default /> |
---|
35 | </templates> |
---|
36 | <?lua include("includes/notifications.oxi") ?> |
---|
37 | |
---|
38 | <Scene |
---|
39 | ambientlight = "0.8, 0.8, 0.8" |
---|
40 | skybox = "Orxonox/Starbox" |
---|
41 | gravity = "0, -200, 0" |
---|
42 | > |
---|
43 | |
---|
44 | <StaticEntity position="0,0,0" collisionType="static"> |
---|
45 | <attached> |
---|
46 | <HoverOrigin |
---|
47 | numCells="<?lua print(MAZE_NUM_CELLS)?>" |
---|
48 | cellSize="<?lua print(MAZE_CELL_SIZE)?>" |
---|
49 | cellHeight="<?lua print(MAZE_CELL_HEIGHT)?>" |
---|
50 | /> |
---|
51 | <Model |
---|
52 | position="<?lua print(MAZE_SIZE/2)?>,-16,<?lua print(MAZE_SIZE/2)?>" |
---|
53 | scale3D="<?lua print(MAZE_SIZE/2)?>,16,<?lua print(MAZE_SIZE/2)?>" |
---|
54 | mesh="CubeGround.mesh" |
---|
55 | /> |
---|
56 | </attached> |
---|
57 | <collisionShapes> |
---|
58 | <BoxCollisionShape |
---|
59 | position="<?lua print(MAZE_SIZE/2)?>,<?lua print(MAZE_CELL_HEIGHT+1)?>,<?lua print(MAZE_SIZE/2)?>" |
---|
60 | halfExtents="<?lua print(MAZE_SIZE/2)?>,1,<?lua print(MAZE_SIZE/2)?>" |
---|
61 | /> |
---|
62 | <BoxCollisionShape |
---|
63 | position="<?lua print(MAZE_SIZE/2)?>,-1,<?lua print(MAZE_SIZE/2)?>" |
---|
64 | halfExtents="<?lua print(MAZE_SIZE/2)?>,1,<?lua print(MAZE_SIZE/2)?>" |
---|
65 | /> |
---|
66 | </collisionShapes> |
---|
67 | </StaticEntity> |
---|
68 | |
---|
69 | <Light |
---|
70 | type=directional |
---|
71 | position="-50,500,-50" |
---|
72 | direction="0.577, -0.577, 0.577" |
---|
73 | diffuse="1.0, 0.9, 0.9, 1.0" |
---|
74 | specular="1.0, 0.9, 0.9, 1.0" |
---|
75 | /> |
---|
76 | |
---|
77 | <SpawnPoint |
---|
78 | team=0 |
---|
79 | position="50,20,50" |
---|
80 | lookat="100,20,100" |
---|
81 | spawnclass=HoverShip |
---|
82 | pawndesign=spaceshiphover |
---|
83 | /> |
---|
84 | |
---|
85 | <SpaceShip position="100,20,100" lookat="50,20,50" name="enemy" health="200" maxhealth="200" initialhealth="200" > |
---|
86 | <templates> |
---|
87 | <Template link=spaceshipzombie /> |
---|
88 | </templates> |
---|
89 | <controller> |
---|
90 | <WaypointPatrolController alertnessradius=2000 team=1 > |
---|
91 | <waypoints> |
---|
92 | <Model mesh="cube.mesh" scale=0 position="15500,15500,15500" /> |
---|
93 | |
---|
94 | </waypoints> |
---|
95 | |
---|
96 | </WaypointPatrolController> |
---|
97 | |
---|
98 | </controller> |
---|
99 | </SpaceShip> |
---|
100 | |
---|
101 | </Scene> |
---|
102 | </Level> |
---|