1 | <?lua |
---|
2 | include("overlay/hudtemplates3.oxo") |
---|
3 | include("overlay/stats.oxo") |
---|
4 | include("levels/templates/spaceship_assff.oxt") |
---|
5 | include("levels/templates/spaceship_H2.oxt") |
---|
6 | include("levels/templates/spaceship_pirate.oxt") |
---|
7 | ?> |
---|
8 | |
---|
9 | <Level |
---|
10 | name = "Waypoints" |
---|
11 | description = "Testing waypoings for AI controlled spaceships." |
---|
12 | > |
---|
13 | <Scene |
---|
14 | ambientlight = "0.5, 0.5, 0.5" |
---|
15 | skybox = "Orxonox/skypanoramagen1" |
---|
16 | > |
---|
17 | <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" /> |
---|
18 | |
---|
19 | <SpawnPoint position="0,0,0" direction="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
20 | |
---|
21 | <SpaceShip position="0,2000,200" lookat="0,0,0" > |
---|
22 | <templates> |
---|
23 | <Template link=spaceshipassff /> |
---|
24 | </templates> |
---|
25 | <controller> |
---|
26 | <WaypointPatrolController alertnessradius=1000 team=10> |
---|
27 | <waypoints> |
---|
28 | <Model mesh="cube.mesh" scale=1 position=" 0,2000,-200" /> |
---|
29 | <Model mesh="cube.mesh" scale=2 position=" 0,2000,-700" /> |
---|
30 | <Model mesh="cube.mesh" scale=4 position="500,2000,-700" /> |
---|
31 | <Model mesh="cube.mesh" scale=8 position="500,2000,-200" /> |
---|
32 | </waypoints> |
---|
33 | </WaypointPatrolController> |
---|
34 | </controller> |
---|
35 | </SpaceShip> |
---|
36 | <SpaceShip position="0,2000,400" lookat="0,0,0" > |
---|
37 | <templates> |
---|
38 | <Template link=spaceshipassff /> |
---|
39 | </templates> |
---|
40 | <controller> |
---|
41 | <WaypointPatrolController alertnessradius=1000 team=10> |
---|
42 | <waypoints> |
---|
43 | <Model mesh="cube.mesh" scale=1 position=" 0,2000,-200" /> |
---|
44 | <Model mesh="cube.mesh" scale=2 position=" 0,2000,-700" /> |
---|
45 | <Model mesh="cube.mesh" scale=4 position="500,2000,-700" /> |
---|
46 | <Model mesh="cube.mesh" scale=8 position="500,2000,-200" /> |
---|
47 | </waypoints> |
---|
48 | </WaypointPatrolController> |
---|
49 | </controller> |
---|
50 | </SpaceShip> |
---|
51 | |
---|
52 | <SpaceShip position="1500,2000,200" lookat="0,0,0" > |
---|
53 | <templates> |
---|
54 | <Template link=spaceshipassff /> |
---|
55 | </templates> |
---|
56 | <controller> |
---|
57 | <WaypointPatrolController alertnessradius=1000 team=11> |
---|
58 | <waypoints> |
---|
59 | <Model mesh="cube.mesh" scale=1 position="1500,2000,-200" /> |
---|
60 | <Model mesh="cube.mesh" scale=2 position="1500,2000,-700" /> |
---|
61 | <Model mesh="cube.mesh" scale=4 position="1000,2000,-700" /> |
---|
62 | <Model mesh="cube.mesh" scale=8 position="1000,2000,-200" /> |
---|
63 | </waypoints> |
---|
64 | </WaypointPatrolController> |
---|
65 | </controller> |
---|
66 | </SpaceShip> |
---|
67 | |
---|
68 | <!-- |
---|
69 | <?lua |
---|
70 | for i = 1, 50, 1 |
---|
71 | do ?> |
---|
72 | <SpaceShip position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" > |
---|
73 | <templates> |
---|
74 | <Template link=spaceshipassff /> |
---|
75 | </templates> |
---|
76 | <controller> |
---|
77 | <AIController /> |
---|
78 | </controller> |
---|
79 | </SpaceShip> |
---|
80 | <?lua |
---|
81 | end |
---|
82 | ?> |
---|
83 | --> |
---|
84 | |
---|
85 | </Scene> |
---|
86 | </Level> |
---|