[5534] | 1 | <?lua |
---|
[5654] | 2 | include("hudtemplates3.oxo") |
---|
| 3 | include("stats.oxo") |
---|
| 4 | include("templates/spaceship_assff.oxt") |
---|
| 5 | include("templates/spaceship_H2.oxt") |
---|
| 6 | include("templates/spaceship_pirate.oxt") |
---|
[5534] | 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 | |
---|
[5560] | 21 | <SpaceShip position="0,2000,200" lookat="0,0,0"> |
---|
[5534] | 22 | <templates> |
---|
| 23 | <Template link=spaceshipassff /> |
---|
| 24 | </templates> |
---|
| 25 | <controller> |
---|
| 26 | <WaypointPatrolController alertnessradius=1000 team=10> |
---|
| 27 | <waypoints> |
---|
[5560] | 28 | <Model mesh="cube.mesh" scale=8 position=" 0,2000,-200" /> |
---|
| 29 | <Model mesh="cube.mesh" scale=8 position=" 0,2000,-700" /> |
---|
| 30 | <Model mesh="cube.mesh" scale=8 position="500,2000,-700" /> |
---|
[5534] | 31 | <Model mesh="cube.mesh" scale=8 position="500,2000,-200" /> |
---|
| 32 | </waypoints> |
---|
| 33 | </WaypointPatrolController> |
---|
| 34 | </controller> |
---|
| 35 | </SpaceShip> |
---|
[5560] | 36 | <SpaceShip position="0,2000,400" lookat="0,0,0"> |
---|
[5534] | 37 | <templates> |
---|
| 38 | <Template link=spaceshipassff /> |
---|
| 39 | </templates> |
---|
| 40 | <controller> |
---|
| 41 | <WaypointPatrolController alertnessradius=1000 team=10> |
---|
| 42 | <waypoints> |
---|
[5560] | 43 | <Model mesh="cube.mesh" scale=8 position=" 0,2000,-200" /> |
---|
| 44 | <Model mesh="cube.mesh" scale=8 position=" 0,2000,-700" /> |
---|
| 45 | <Model mesh="cube.mesh" scale=8 position="500,2000,-700" /> |
---|
[5534] | 46 | <Model mesh="cube.mesh" scale=8 position="500,2000,-200" /> |
---|
| 47 | </waypoints> |
---|
| 48 | </WaypointPatrolController> |
---|
| 49 | </controller> |
---|
| 50 | </SpaceShip> |
---|
| 51 | |
---|
[5560] | 52 | <SpaceShip position="1500,2000,200" lookat="0,0,0"> |
---|
[5534] | 53 | <templates> |
---|
| 54 | <Template link=spaceshipassff /> |
---|
| 55 | </templates> |
---|
| 56 | <controller> |
---|
| 57 | <WaypointPatrolController alertnessradius=1000 team=11> |
---|
| 58 | <waypoints> |
---|
[5560] | 59 | <Model mesh="cube.mesh" scale=8 position="1500,2000,-200" /> |
---|
| 60 | <Model mesh="cube.mesh" scale=8 position="1500,2000,-700" /> |
---|
| 61 | <Model mesh="cube.mesh" scale=8 position="1000,2000,-700" /> |
---|
[5534] | 62 | <Model mesh="cube.mesh" scale=8 position="1000,2000,-200" /> |
---|
| 63 | </waypoints> |
---|
| 64 | </WaypointPatrolController> |
---|
| 65 | </controller> |
---|
| 66 | </SpaceShip> |
---|
| 67 | |
---|
[5560] | 68 | <SpaceShip position="1500,-2000,200" lookat="0,0,0" name=polonaise1> |
---|
| 69 | <templates> |
---|
| 70 | <Template link=spaceshipassff /> |
---|
| 71 | </templates> |
---|
| 72 | <controller> |
---|
| 73 | <WaypointPatrolController alertnessradius=1000 team=12> |
---|
| 74 | <waypoints> |
---|
| 75 | <Model mesh="cube.mesh" scale=8 position="1500,-2000,-200" /> |
---|
[5534] | 76 | <!-- |
---|
[5560] | 77 | <Attacher target=polonaise6 deletewithparent=false /> |
---|
| 78 | <Model mesh="cube.mesh" scale=8 position="1500,-2000,-700" /> |
---|
| 79 | <Model mesh="cube.mesh" scale=8 position="1000,-2000,-700" /> |
---|
| 80 | <Model mesh="cube.mesh" scale=8 position="1000,-2000,-200" /> |
---|
| 81 | --> |
---|
| 82 | </waypoints> |
---|
| 83 | </WaypointPatrolController> |
---|
| 84 | </controller> |
---|
| 85 | </SpaceShip> |
---|
| 86 | |
---|
[5534] | 87 | <?lua |
---|
[5560] | 88 | for i = 1, 5, 1 |
---|
| 89 | do ?> |
---|
| 90 | <SpaceShip position="1500,<?lua print(-2000 + 50*i) ?>,200" lookat="0,0,0" name=polonaise<?lua print(i+1) ?> > |
---|
| 91 | <templates> |
---|
| 92 | <Template link=spaceshipassff /> |
---|
| 93 | </templates> |
---|
| 94 | <controller> |
---|
| 95 | <WaypointPatrolController alertnessradius=1000 team=12> |
---|
| 96 | <waypoints> |
---|
| 97 | <Attacher target=polonaise<?lua print(i) ?> deletewithparent=false /> |
---|
| 98 | </waypoints> |
---|
| 99 | </WaypointPatrolController> |
---|
| 100 | </controller> |
---|
| 101 | </SpaceShip> |
---|
| 102 | <?lua |
---|
| 103 | end |
---|
| 104 | ?> |
---|
| 105 | |
---|
| 106 | |
---|
| 107 | <SpaceShip position="-1500,-2000,200" lookat="0,0,0" name=attack1> |
---|
| 108 | <templates> |
---|
| 109 | <Template link=spaceshipassff /> |
---|
| 110 | </templates> |
---|
| 111 | <controller> |
---|
| 112 | <WaypointPatrolController alertnessradius=1000 team=13> |
---|
| 113 | <waypoints> |
---|
| 114 | <Model mesh="cube.mesh" scale=8 position="1500,-2000,-200" /> |
---|
| 115 | </waypoints> |
---|
| 116 | </WaypointPatrolController> |
---|
| 117 | </controller> |
---|
| 118 | </SpaceShip> |
---|
| 119 | |
---|
| 120 | <?lua |
---|
| 121 | for i = 1, 5, 1 |
---|
| 122 | do ?> |
---|
| 123 | <SpaceShip position="-1500,<?lua print(-2000 + 50*i) ?>,200" lookat="0,0,0" name=attack<?lua print(i+1) ?> > |
---|
| 124 | <templates> |
---|
| 125 | <Template link=spaceshipassff /> |
---|
| 126 | </templates> |
---|
| 127 | <controller> |
---|
| 128 | <WaypointPatrolController alertnessradius=1000 team=13> |
---|
| 129 | <waypoints> |
---|
| 130 | <Attacher target=attack<?lua print(i) ?> deletewithparent=false /> |
---|
| 131 | </waypoints> |
---|
| 132 | </WaypointPatrolController> |
---|
| 133 | </controller> |
---|
| 134 | </SpaceShip> |
---|
| 135 | <?lua |
---|
| 136 | end |
---|
| 137 | ?> |
---|
| 138 | |
---|
| 139 | <!-- |
---|
| 140 | <?lua |
---|
[5534] | 141 | for i = 1, 50, 1 |
---|
| 142 | do ?> |
---|
| 143 | <SpaceShip position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" > |
---|
| 144 | <templates> |
---|
| 145 | <Template link=spaceshipassff /> |
---|
| 146 | </templates> |
---|
| 147 | <controller> |
---|
| 148 | <AIController /> |
---|
| 149 | </controller> |
---|
| 150 | </SpaceShip> |
---|
| 151 | <?lua |
---|
| 152 | end |
---|
| 153 | ?> |
---|
| 154 | --> |
---|
| 155 | |
---|
| 156 | </Scene> |
---|
| 157 | </Level> |
---|