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