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