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