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