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