[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") |
---|
[7036] | 7 | include("templates/lodinformation.oxt") |
---|
[5534] | 8 | ?> |
---|
| 9 | |
---|
| 10 | <Level |
---|
| 11 | name = "Waypoints" |
---|
| 12 | description = "Testing waypoings for AI controlled spaceships." |
---|
| 13 | > |
---|
[7036] | 14 | <templates> |
---|
| 15 | <Template link=lodtemplate_default /> |
---|
| 16 | </templates> |
---|
[7083] | 17 | |
---|
[5534] | 18 | <Scene |
---|
| 19 | ambientlight = "0.5, 0.5, 0.5" |
---|
| 20 | skybox = "Orxonox/skypanoramagen1" |
---|
| 21 | > |
---|
| 22 | <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" /> |
---|
| 23 | |
---|
| 24 | <SpawnPoint position="0,0,0" direction="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
| 25 | |
---|
[5560] | 26 | <SpaceShip position="0,2000,200" lookat="0,0,0"> |
---|
[5534] | 27 | <templates> |
---|
| 28 | <Template link=spaceshipassff /> |
---|
| 29 | </templates> |
---|
| 30 | <controller> |
---|
| 31 | <WaypointPatrolController alertnessradius=1000 team=10> |
---|
| 32 | <waypoints> |
---|
[5560] | 33 | <Model mesh="cube.mesh" scale=8 position=" 0,2000,-200" /> |
---|
| 34 | <Model mesh="cube.mesh" scale=8 position=" 0,2000,-700" /> |
---|
| 35 | <Model mesh="cube.mesh" scale=8 position="500,2000,-700" /> |
---|
[5534] | 36 | <Model mesh="cube.mesh" scale=8 position="500,2000,-200" /> |
---|
| 37 | </waypoints> |
---|
| 38 | </WaypointPatrolController> |
---|
| 39 | </controller> |
---|
| 40 | </SpaceShip> |
---|
[5560] | 41 | <SpaceShip position="0,2000,400" lookat="0,0,0"> |
---|
[5534] | 42 | <templates> |
---|
| 43 | <Template link=spaceshipassff /> |
---|
| 44 | </templates> |
---|
| 45 | <controller> |
---|
| 46 | <WaypointPatrolController alertnessradius=1000 team=10> |
---|
| 47 | <waypoints> |
---|
[5560] | 48 | <Model mesh="cube.mesh" scale=8 position=" 0,2000,-200" /> |
---|
| 49 | <Model mesh="cube.mesh" scale=8 position=" 0,2000,-700" /> |
---|
| 50 | <Model mesh="cube.mesh" scale=8 position="500,2000,-700" /> |
---|
[5534] | 51 | <Model mesh="cube.mesh" scale=8 position="500,2000,-200" /> |
---|
| 52 | </waypoints> |
---|
| 53 | </WaypointPatrolController> |
---|
| 54 | </controller> |
---|
| 55 | </SpaceShip> |
---|
| 56 | |
---|
[5560] | 57 | <SpaceShip position="1500,2000,200" lookat="0,0,0"> |
---|
[5534] | 58 | <templates> |
---|
| 59 | <Template link=spaceshipassff /> |
---|
| 60 | </templates> |
---|
| 61 | <controller> |
---|
| 62 | <WaypointPatrolController alertnessradius=1000 team=11> |
---|
| 63 | <waypoints> |
---|
[5560] | 64 | <Model mesh="cube.mesh" scale=8 position="1500,2000,-200" /> |
---|
| 65 | <Model mesh="cube.mesh" scale=8 position="1500,2000,-700" /> |
---|
| 66 | <Model mesh="cube.mesh" scale=8 position="1000,2000,-700" /> |
---|
[5534] | 67 | <Model mesh="cube.mesh" scale=8 position="1000,2000,-200" /> |
---|
| 68 | </waypoints> |
---|
| 69 | </WaypointPatrolController> |
---|
| 70 | </controller> |
---|
| 71 | </SpaceShip> |
---|
| 72 | |
---|
[5560] | 73 | <SpaceShip position="1500,-2000,200" lookat="0,0,0" name=polonaise1> |
---|
| 74 | <templates> |
---|
| 75 | <Template link=spaceshipassff /> |
---|
| 76 | </templates> |
---|
| 77 | <controller> |
---|
| 78 | <WaypointPatrolController alertnessradius=1000 team=12> |
---|
| 79 | <waypoints> |
---|
| 80 | <Model mesh="cube.mesh" scale=8 position="1500,-2000,-200" /> |
---|
[5534] | 81 | <!-- |
---|
[5560] | 82 | <Attacher target=polonaise6 deletewithparent=false /> |
---|
| 83 | <Model mesh="cube.mesh" scale=8 position="1500,-2000,-700" /> |
---|
| 84 | <Model mesh="cube.mesh" scale=8 position="1000,-2000,-700" /> |
---|
| 85 | <Model mesh="cube.mesh" scale=8 position="1000,-2000,-200" /> |
---|
| 86 | --> |
---|
| 87 | </waypoints> |
---|
| 88 | </WaypointPatrolController> |
---|
| 89 | </controller> |
---|
| 90 | </SpaceShip> |
---|
| 91 | |
---|
[7007] | 92 | <?lua |
---|
| 93 | for i = 1, 5, 1 do |
---|
| 94 | ?> |
---|
| 95 | <SpaceShip position="1500,<?lua print(-2000 + 50*i) ?>,200" lookat="0,0,0" name=polonaise<?lua print(i+1) ?> > |
---|
| 96 | <templates> |
---|
| 97 | <Template link=spaceshipassff /> |
---|
| 98 | </templates> |
---|
| 99 | <controller> |
---|
| 100 | <WaypointPatrolController alertnessradius=1000 team=12> |
---|
| 101 | <waypoints> |
---|
| 102 | <Attacher target=polonaise<?lua print(i) ?> deletewithparent=false /> |
---|
| 103 | </waypoints> |
---|
| 104 | </WaypointPatrolController> |
---|
| 105 | </controller> |
---|
| 106 | </SpaceShip> |
---|
| 107 | <?lua end ?> |
---|
[5560] | 108 | |
---|
| 109 | <SpaceShip position="-1500,-2000,200" lookat="0,0,0" name=attack1> |
---|
| 110 | <templates> |
---|
| 111 | <Template link=spaceshipassff /> |
---|
| 112 | </templates> |
---|
| 113 | <controller> |
---|
| 114 | <WaypointPatrolController alertnessradius=1000 team=13> |
---|
| 115 | <waypoints> |
---|
| 116 | <Model mesh="cube.mesh" scale=8 position="1500,-2000,-200" /> |
---|
| 117 | </waypoints> |
---|
| 118 | </WaypointPatrolController> |
---|
| 119 | </controller> |
---|
| 120 | </SpaceShip> |
---|
| 121 | |
---|
[7007] | 122 | <?lua |
---|
| 123 | for i = 1, 5, 1 do |
---|
| 124 | ?> |
---|
| 125 | <SpaceShip position="-1500,<?lua print(-2000 + 50*i) ?>,200" lookat="0,0,0" name=attack<?lua print(i+1) ?> > |
---|
| 126 | <templates> |
---|
| 127 | <Template link=spaceshipassff /> |
---|
| 128 | </templates> |
---|
| 129 | <controller> |
---|
| 130 | <WaypointPatrolController alertnessradius=1000 team=13> |
---|
| 131 | <waypoints> |
---|
| 132 | <Attacher target=attack<?lua print(i) ?> deletewithparent=false /> |
---|
| 133 | </waypoints> |
---|
| 134 | </WaypointPatrolController> |
---|
| 135 | </controller> |
---|
| 136 | </SpaceShip> |
---|
| 137 | <?lua end ?> |
---|
[5560] | 138 | |
---|
| 139 | <!-- |
---|
[7007] | 140 | <?lua |
---|
| 141 | for i = 1, 50, 1 do |
---|
| 142 | ?> |
---|
| 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 end ?> |
---|
[5534] | 152 | --> |
---|
| 153 | |
---|
| 154 | </Scene> |
---|
| 155 | </Level> |
---|