Changeset 7085
- Timestamp:
- Jun 2, 2010, 6:09:31 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation3/data/levels/Fight in our Back.oxw
r7084 r7085 1 1 <?lua 2 3 4 5 6 7 2 include("stats.oxo") 3 include("hudtemplates3.oxo") 4 include("templates/lodinformation.oxt") 5 include("templates/spaceship_assff.oxt") 6 include("templates/spaceship_pirate.oxt") 7 include("templates/spaceship_Transporter.oxt") 8 8 ?> 9 9 10 10 <NotificationQueue 11 12 13 14 15 16 11 name = "notification" 12 position = "0.40, 0.05" 13 font = "VeraMono" 14 textsize = 0.020 15 length = 3 16 width = 50 17 17 /> 18 18 … … 72 72 </templates> 73 73 74 75 76 77 78 79 80 81 74 <!-- Ausgang: Szene ===> ambientlight/skybox --> 75 <Scene 76 ambientlight="0.8,0.8,0.8" 77 skybox="Orxonox/skypanoramagen1" 78 > 79 80 <!--Light: noch zu aendern --> 81 <Light type=directional position="0,0,0" direction="0, 0, 0" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 1.0, 0.9" /> 82 82 83 83 84 84 <!--*****************************************************************************************************************************************************************************************--> 85 85 <!--Quests--> 86 87 88 89 90 91 92 93 94 95 96 97 98 99 86 <GlobalQuest id="FightInOurBack.DiscoveryMission_"> 87 <QuestDescription title="Discovery mission" description="Your team has to scout out this sector." failMessage="You failed!" completeMessage="You won. You have reached the end of this level." /> 88 <subquests> 89 <GlobalQuest id="FightInOurBack.FollowYourGroupLeader"> 90 <QuestDescription title="Follow your group leader" description="Your task is to follow the team leader and to destroy all the enemy spaceships on your way!" failMessage="You failed!" completeMessage="Good job!" /> 91 </GlobalQuest> 92 <GlobalQuest id="FightInOurBack.TransportersAhead"> 93 <QuestDescription title="Transporters ahead" description="This is a lucky day for us. We have found supplies that the enemy is transporting in these Transporters. We have to destroy them." failMessage="You failed!" completeMessage="Good job!" /> 94 </GlobalQuest> 95 <GlobalQuest id="FightInOurBack.TheySentUsAssistance"> 96 <QuestDescription title="They sent us assistance" description="The transporters will surely be heavily protected but our base sent us assistance. It should now be easier to destroy them." failMessage="You failed" completeMessage="Good job!" /> 97 </GlobalQuest> 98 </subquests> 99 </GlobalQuest> 100 100 101 101 … … 104 104 105 105 106 <!--Player's Spawnpoints______________________________________________________________________________________________________________________________________________________________________--> 107 <!--Spieler Spawnpoint ===> position/direction--> <!-- funktioniert noch nicht ab naechtem Mal wahrscheinlich--> 108 <SpawnPoint position="0,50,25" direction="2000,0,-1000" spawnclass=SpaceShip pawndesign=spaceshipassffplayer team=0 active="true" > 109 <!---> <events> 110 <activity> 111 <EventListener event="activateSecondSpawnpoint" /> 112 </activity> 113 </events> 114 </SpawnPoint> 115 116 <SpawnPoint position="10000,0,3000" direction="2000,0,-1000" spawnclass=SpaceShip pawndesign=spaceshipassffplayer team=0 active="false" > 117 <events> 118 <activity> 119 <EventListener event="activateSecondSpawnpoint" /> 120 </activity> include("templates/lodinformation.oxt") 121 </events> 106 <!--Player's Spawnpoints --> 107 <!--Spieler Spawnpoint ===> position/direction--> <!-- funktioniert noch nicht ab naechtem Mal wahrscheinlich--> 108 <SpawnPoint position="0,50,25" direction="2000,0,-1000" spawnclass=SpaceShip pawndesign=spaceshipassffplayer team=0 active="true" > 109 <events> 110 <activity> 111 <EventListener event="activateFirstSpawnpoint" /> 112 </activity> 113 </events> 114 </SpawnPoint> 115 116 <SpawnPoint position="10000,0,3000" direction="2000,0,-1000" spawnclass=SpaceShip pawndesign=spaceshipassffplayer team=0 active="false" > 117 <events> 118 <activity> 119 <EventListener event="activateSecondSpawnpoint" /> 120 </activity> 121 </events> 122 </SpawnPoint> 123 124 <!--Player's Spawnpoint END--> 125 126 <!--Launching Quests --> 127 <QuestEffectBeacon position="0,50,25" times="1"> 128 <effects> 129 <AddQuest questId="FightInOurBack.DiscoveryMission_" /> 130 <AddQuest questId="FightInOurBack.FollowYourGroupLeader" /> 131 </effects> 132 <events> 133 <execute> 134 <EventListener event="FightInOurBack_MainStart_FollowStart"/> 135 </execute> 136 </events> 137 <attached> 138 <DistanceTrigger name="FightInOurBack_MainStart_FollowStart" position="0,0,0" distance="50" target="DistanceTriggerBeacon" targetname="PlayerDistanceTrigger" /> 139 <!--<Billboard position="0,0,0" colour="1.0,1.0,1.0" material="Examples/Flare" />--> 140 </attached> 141 </QuestEffectBeacon> 142 143 <QuestEffectBeacon position="8000,0,3100" times=1 > 144 <effects> 145 <AddQuest questID="FightInOurBack.TransportersAhead" /> 146 <AddQuest questID="FightInOurBack.TheySentUsAssistance" /> 147 <CompleteQuest questID="FightInOurBack.FollowYourGroupLeader" /> 148 </effects> 149 <events> 150 <execute> 151 <EventListener event="FightInOurBack_FollowEnd_DTranspStart_AssisStart" /> 152 </execute> 153 </events> 154 <attached> 155 <!--<Billboard position="0,0,0" colour="1,1,1" material="Examples/Flare" />--> 156 <DistanceTrigger name="FightInOurBack_FollowEnd_DTranspStart_AssisStart" position="0,0,0" distance="1000" target="DistanceTriggerBeacon" targetname="PlayerDistanceTrigger" stayactive=1 activations=1 /> 157 </attached> 158 </QuestEffectBeacon> 159 122 160 <!----> 123 </SpawnPoint> 124 125 <!--Player's Spawnpoint_____END____________________________________________________________________________________________________________________________________________________--> 126 127 <!--Launching Quests_______________________________________________________________________________________________________________________________________________________________--> 128 <QuestEffectBeacon position="0,50,25" times="1"> 129 <effects> 130 <AddQuest questId="FightInOurBack.DiscoveryMission_"/> 131 <AddQuest questId="FightInOurBack.FollowYourGroupLeader" /> 132 </effects> 133 <events> 134 <execute> 135 <EventListener event="FightInOurBack_MainStart_FollowStart"/> 136 </execute> 137 </events> 138 <attached> 139 <!--<Billboard position="0,0,0" colour="1.0,1.0,1.0" material="Examples/Flare" />--> 140 </attached> 141 </QuestEffectBeacon> 142 143 <DistanceTrigger name="FightInOurBack_MainStart_FollowStart" position="0,50,25" distance="50" target="DistanceTriggerBeacon" targetname="spaceshipassffplayer" /> 144 <!----> 145 <QuestEffectBeacon position="8000,0,3100" times=1 > 146 <effects> 147 <AddQuest questID="FightInOurBack.TransportersAhead" /> 148 <AddQuest questID="FightInOurBack.TheySentUsAssistance" /> 149 <CompleteQuest questID="FightInOurBack.FollowYourGroupLeader" /> 150 </effects> 151 <events> 152 <execute> 153 <EventListener event="FightInOurBack_FollowEnd_DTranspStart_AssisStart" /> 154 </execute> 155 </events> 156 <attached> 157 <!--<Billboard position="0,0,0" colour="1,1,1" material="Examples/Flare" />--> 158 <DistanceTrigger name="FightInOurBack_FollowEnd_DTranspStart_AssisStart" position="0,0,0" distance="1000" target="DistanceTriggerBeacon" targetname="PlayerDistanceTrigger" stayactive=1 activations=1 /> 159 </attached> 160 </QuestEffectBeacon> 161 162 <!----> 163 164 <!--Launching Quests______END_______________________________________________________________________________________________________________________________________________________--> 165 166 <!--Creating Transporters_________________________________________________________________________________________________________________________________________________________OK--> 161 162 <!--Launching Quests END --> 163 164 <!--Creating Transporters OK--> 167 165 168 166 … … 171 169 health=2750 172 170 ?> 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 171 <!--Transporter 1--> 172 <EventTrigger name="activateTeam1No1" acitvations=1 stayactive="true"> 173 <events> 174 <trigger> 175 <SpaceShip position="<?lua print(3800-i*x) ?>,0,3000" lookat="<?lua print(4800-i*x) ?>,0,4000" health=<?lua print(health) ?> maxhealth=<?lua print(health) ?> initialhealth=<?lua print(health) ?> > 176 <templates> 177 <Template link=spaceshipTransporter /> 178 </templates> 179 <controller> 180 <WaypointPatrolController alertnessradius=1000 team=1> 181 <waypoints> 182 <Model mesh="cube.mesh" scale=0 position="<?lua print(14800-i*x) ?>,0,3000"/> 183 </waypoints> 184 </WaypointPatrolController> 185 </controller> 186 </SpaceShip><!----> 187 </trigger> 188 </events> 189 </EventTrigger> 192 190 <?lua end ?> 193 191 … … 198 196 z=j*300 199 197 ?> 200 <!--Transporter 2,3--> 201 <EventTrigger name="activateTeam1No1" acitvations=1 stayactive="true"> 202 <events> 203 <trigger> 204 <SpaceShip position="<?lua print(2600+x) ?>,0,<?lua print(3150-z) ?>" lookat="<?lua print(3500+x) ?>,0,<?lua print(4150-z) ?>" health=<?lua print(health) ?> maxhealth=<?lua print(health) ?> initialhealth=<?lua print(health) ?> > 205 <templates> 206 <Template link=spaceshipTransporter /> 207 </templates> 208 <controller> 209 <WaypointPatrolController alertnessradius=1000 team=1> 210 <waypoints> 211 <Model mesh="cube.mesh" scale=0 position="<?lua print(13500+x) ?>,0,<?lua print(3150-z) ?>"/> 212 </waypoints> 213 </WaypointPatrolController> 214 </controller> 215 </SpaceShip><!----> 216 </trigger> 217 </events> 218 </EventTrigger> 219 <?lua end ?> 220 221 222 <!--Creating Transporters______END___________________________________________________________________________________________________________________________________________________________--> 223 224 <!--Creating player's team_________________________________________________________________________________________________________________________________________________________________OK--> 225 <!--Spaceships team 0 (player:team=0)--> 226 <SpaceShip position="50,0,0" lookat="2050,0,-1000" health="500" maxhealth="500" initialhealth="500" > 227 <templates> 228 <Template link=spaceshipassff /> 229 </templates> 230 <controller> 231 <WaypointPatrolController alertnessradius=2000 team=0 > 232 <waypoints> 233 <Model mesh="cube.mesh" scale=0 position="2050,0,-1000" /> 234 <Model mesh="cube.mesh" scale=0 position="6050,0,0" /> 235 <Model mesh="cube.mesh" scale=0 position="10050,0,3000" /> 236 <Model mesh="cube.mesh" scale=0 position="3050,0,3000" /> 237 <Model mesh="cube.mesh" scale=0 position="-4050,0,3000" /> 238 </waypoints> 239 </WaypointPatrolController> 240 </controller> 241 </SpaceShip> 242 <!--Second Spaceship team 0 (player: team 0)--> 243 <SpaceShip position="0,0,100" lookat="2000,0,-950" health="400" maxhealth="400" initialhealth="400" > 244 <templates> 245 <Template link=spaceshipassff /> 246 </templates> 247 <controller> 248 <WaypointPatrolController alertnessradius=2000 team=0 > 249 <waypoints> 250 <Model mesh="cube.mesh" scale=0 position="2000,0,-900" /> 251 <Model mesh="cube.mesh" scale=0 position="6000,0,0" /> 252 <Model mesh="cube.mesh" scale=0 position="10000,0,3100" /> 253 <Model mesh="cube.mesh" scale=0 position="3000,0,3100" /> 254 <Model mesh="cube.mesh" scale=0 position="-4000,0,3100"/> 255 </waypoints> 256 </WaypointPatrolController> 257 </controller> 258 </SpaceShip> 259 <!--third Spaceship team 0 (player: team 0)--> 260 <SpaceShip position="0,0,-100" lookat="2000,0,-1050" health="400" maxhealth="400" initialhealth="400" > 261 <templates> 262 <Template link=spaceshipassff /> 263 </templates> 264 <controller> 265 <WaypointPatrolController alertnessradius=2000 team=0 > 266 <waypoints> 267 <Model mesh="cube.mesh" scale=0 position="2000,0,-1100" /> 268 <Model mesh="cube.mesh" scale=0 position="6000,0,-100" /> 269 <Model mesh="cube.mesh" scale=0 position="10000,0,2900" /> 270 <Model mesh="cube.mesh" scale=0 position="3000,0,2900" /> 271 <Model mesh="cube.mesh" scale=0 position="-4000,0,2900" /> 272 </waypoints> 273 </WaypointPatrolController> 274 </controller> 275 </SpaceShip> 276 <!--Creating player's team ______END _______________________________________________________________________________________________________________________________________________________--> 277 278 279 <!--Asteroids (field)_____________________________________________________________________________________________________________________________________________________________________OK--> 280 281 <StaticEntity position="3000,0,-1000"> 282 <attached> 283 <?lua for i=0,100,1 do 284 x=math.random(250,4000) 285 y=math.random(-500,500) 286 z=math.random(1000,2000) 287 scale=math.random(20,70) 288 ?> 289 <MovableEntity collisionType=kinematic linearDamping=0.8 angularDamping=0 mass="<?lua print(scale * 5) ?>" position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" rotationaxis="<?lua print(math.random()) ?>,<?lua print(math.random()) ?>,<?lua print(math.random()) ?>" rotationrate="<?lua print(math.random()*15) ?>"> 290 <attached> 291 <Model scale=<?lua print(scale) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false/> 292 </attached> 293 <collisionShapes> 294 <SphereCollisionShape radius="<?lua print(scale * 3) ?>" /> 295 </collisionShapes> 296 </MovableEntity> 297 <?lua end ?> 298 </attached> 299 </StaticEntity> 300 301 <!--Asteroids (field)______END_______________________________________________________________________________________________________________________________________________________________--> 302 303 <!--Asteroids (random)______END____________________________________________________________________________________________________________________________________________________________OK--> 304 305 <StaticEntity position="0,0,0"> 306 <attached> 307 <?lua for i=0,150,1 do 308 x=math.random(-8000,8000) 309 y=math.random(-8000,8000) 310 z=math.random(-8000,8000) 311 ?> 312 <MovableEntity collisionType=kinematic linearDamping=0.8 angularDamping=0 mass="<?lua print(scale * 5) ?>" position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" rotationaxis="<?lua print(math.random()) ?>,<?lua print(math.random()) ?>,<?lua print(math.random()) ?>" rotationrate="<?lua print(math.random()*15) ?>" > 313 <attached> 314 <Model scale=<?lua print(math.random(20,70)) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false/> 315 </attached> 316 <collisionShapes> 317 <SphereCollisionShape radius="<?lua print(scale * 3) ?>" /> 318 </collisionShapes> 319 </MovableEntity> 320 <?lua end ?> 321 </attached> 322 </StaticEntity> 323 324 <!--Asteroids (random)______END______________________________________________________________________________________________________________________________________________________________--> 325 326 <!--Creating spaceships (player's team)____________________________________________________________________________________________________________________________________________________OK--> 198 <!--Transporter 2,3--> 199 <EventTrigger name="activateTeam1No1" acitvations=1 stayactive="true"> 200 <events> 201 <trigger> 202 <SpaceShip position="<?lua print(2600+x) ?>,0,<?lua print(3150-z) ?>" lookat="<?lua print(3500+x) ?>,0,<?lua print(4150-z) ?>" health=<?lua print(health) ?> maxhealth=<?lua print(health) ?> initialhealth=<?lua print(health) ?> > 203 <templates> 204 <Template link=spaceshipTransporter /> 205 </templates> 206 <controller> 207 <WaypointPatrolController alertnessradius=1000 team=1> 208 <waypoints> 209 <Model mesh="cube.mesh" scale=0 position="<?lua print(13500+x) ?>,0,<?lua print(3150-z) ?>"/> 210 </waypoints> 211 </WaypointPatrolController> 212 </controller> 213 </SpaceShip><!----> 214 </trigger> 215 </events> 216 </EventTrigger> 217 <?lua end ?> 218 219 220 <!--Creating Transporters END _--> 221 222 <!--Creating player's team OK--> 223 <!--Spaceships team 0 (player:team=0)--> 224 <SpaceShip position="50,0,0" lookat="2050,0,-1000" health="500" maxhealth="500" initialhealth="500" > 225 <templates> 226 <Template link=spaceshipassff /> 227 </templates> 228 <controller> 229 <WaypointPatrolController alertnessradius=2000 team=0 > 230 <waypoints> 231 <Model mesh="cube.mesh" scale=0 position="2050,0,-1000" /> 232 <Model mesh="cube.mesh" scale=0 position="6050,0,0" /> 233 <Model mesh="cube.mesh" scale=0 position="10050,0,3000" /> 234 <Model mesh="cube.mesh" scale=0 position="3050,0,3000" /> 235 <Model mesh="cube.mesh" scale=0 position="-4050,0,3000" /> 236 </waypoints> 237 </WaypointPatrolController> 238 </controller> 239 </SpaceShip> 240 <!--Second Spaceship team 0 (player: team 0)--> 241 <SpaceShip position="0,0,100" lookat="2000,0,-950" health="400" maxhealth="400" initialhealth="400" > 242 <templates> 243 <Template link=spaceshipassff /> 244 </templates> 245 <controller> 246 <WaypointPatrolController alertnessradius=2000 team=0 > 247 <waypoints> 248 <Model mesh="cube.mesh" scale=0 position="2000,0,-900" /> 249 <Model mesh="cube.mesh" scale=0 position="6000,0,0" /> 250 <Model mesh="cube.mesh" scale=0 position="10000,0,3100" /> 251 <Model mesh="cube.mesh" scale=0 position="3000,0,3100" /> 252 <Model mesh="cube.mesh" scale=0 position="-4000,0,3100"/> 253 </waypoints> 254 </WaypointPatrolController> 255 </controller> 256 </SpaceShip> 257 <!--third Spaceship team 0 (player: team 0)--> 258 <SpaceShip position="0,0,-100" lookat="2000,0,-1050" health="400" maxhealth="400" initialhealth="400" > 259 <templates> 260 <Template link=spaceshipassff /> 261 </templates> 262 <controller> 263 <WaypointPatrolController alertnessradius=2000 team=0 > 264 <waypoints> 265 <Model mesh="cube.mesh" scale=0 position="2000,0,-1100" /> 266 <Model mesh="cube.mesh" scale=0 position="6000,0,-100" /> 267 <Model mesh="cube.mesh" scale=0 position="10000,0,2900" /> 268 <Model mesh="cube.mesh" scale=0 position="3000,0,2900" /> 269 <Model mesh="cube.mesh" scale=0 position="-4000,0,2900" /> 270 </waypoints> 271 </WaypointPatrolController> 272 </controller> 273 </SpaceShip> 274 <!--Creating player's team END --> 275 276 277 <!--Asteroids (field OK --> 278 279 <?lua for i=0,100,1 do 280 x=math.random(250,4000) 281 y=math.random(-500,500) 282 z=math.random(1000,2000) 283 scale=math.random(20,70) 284 ?> 285 <MovableEntity collisionType=kinematic linearDamping=0.8 angularDamping=0 mass="<?lua print(scale * 5) ?>" position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" rotationaxis="<?lua print(math.random()) ?>,<?lua print(math.random()) ?>,<?lua print(math.random()) ?>" rotationrate="<?lua print(math.random()*15) ?>"> 286 <attached> 287 <Model scale=<?lua print(scale) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false/> 288 </attached> 289 <collisionShapes> 290 <SphereCollisionShape radius="<?lua print(scale * 3) ?>" /> 291 </collisionShapes> 292 </MovableEntity> 293 <?lua end ?> 294 295 <!--Asteroids (field) END --> 296 297 <!--Asteroids (random) END OK--> 298 299 <?lua for i=0,150,1 do 300 x=math.random(-8000,8000) 301 y=math.random(-8000,8000) 302 z=math.random(-8000,8000) 303 ?> 304 <MovableEntity collisionType=kinematic linearDamping=0.8 angularDamping=0 mass="<?lua print(scale * 5) ?>" position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" rotationaxis="<?lua print(math.random()) ?>,<?lua print(math.random()) ?>,<?lua print(math.random()) ?>" rotationrate="<?lua print(math.random()*15) ?>" > 305 <attached> 306 <Model scale=<?lua print(math.random(20,70)) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false/> 307 </attached> 308 <collisionShapes> 309 <SphereCollisionShape radius="<?lua print(scale * 3) ?>" /> 310 </collisionShapes> 311 </MovableEntity> 312 <?lua end ?> 313 314 <!--Asteroids (random) END --> 315 316 <!--Creating spaceships (player's team) OK--> 327 317 <!----> 328 318 <!--Trigger to activate this Team (TEAM NO 1)--> 329 319 <DistanceTrigger name="activateTeam0No1" position="8000,0,3100" distance="1000" target="DistanceTriggerBeacon" targetname="PlayerDistanceTrigger" activations="1" stayactive="true" /> 330 320 331 321 <!--TEAM NO 1 (activationType : distance || killing a spaceship what belongs to TEAM 0 NO 0)--> … … 335 325 z=math.random(-300,300) 336 326 ?> 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 327 <EventTrigger name="activateTeam0No1" activations=1 stayactive="true"> 328 <events> 329 <trigger> 330 <SpaceShip position="<?lua print(x+4500) ?>,<?lua print(y) ?>,<?lua print(z+6000) ?>" lookat="<?lua print(4000+x) ?>,<?lua print(y) ?>,<?lua print(z+3000) ?>"> 331 <templates> 332 <Template link=spaceshipassff /> 333 </templates> 334 <controller> 335 <WaypointPatrolController alertnessradius=2000 team=0 active=false> 336 <waypoints> 337 <Model mesh="cube.mesh" scale=0 position="<?lua print(4500+x) ?>,<?lua print(y) ?>,<?lua print(z+3000) ?>" /> 338 <Model mesh="cube.mesh" scale=0 position="<?lua print(x-4000) ?>,<?lua print(y) ?>,<?lua print(z+3000) ?>" /> 339 </waypoints> 340 <events> 341 <activity> 342 <EventListener event="activateTeam0No1" /> 343 </activity> 344 </events> 345 </WaypointPatrolController> 346 </controller> 347 </SpaceShip> 348 </trigger> 349 </events> 350 </EventTrigger> 361 351 362 352 … … 364 354 365 355 <!----> 366 <!--Creating spaceships (player's team) _______END_____________________________________________________________________________________________________________________________________________-->367 368 <!--Creating spaceships (enemy) ____________________________________________________________________________________________________________________________________________________________OK-->356 <!--Creating spaceships (player's team) END --> 357 358 <!--Creating spaceships (enemy) OK--> 369 359 <!----> 370 360 <!--TEAM 1 NO 1 (activationType : killing a Transporter || killing a spaceship what belongs to TEAM 1 NO 1)--> … … 374 364 z=math.random(-300,300) 375 365 ?> 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 366 <EventTrigger name="activateTeam1No1" activations=1 stayactive="true" > 367 <events> 368 <trigger> 369 <SpaceShip position="<?lua print(x+3800) ?>,<?lua print(y+3000) ?>,<?lua print(z+3000) ?>" lookat="<?lua print(4000+x) ?>,<?lua print(y) ?>,<?lua print(z+3000) ?>"> 370 <templates> 371 <Template link=spaceshippirate /> 372 </templates> 373 <controller> 374 <WaypointPatrolController alertnessradius=5000 team=1 active=false> 375 <waypoints> 376 <Model mesh="cube.mesh" scale=0 position="<?lua print(4000+x) ?>,<?lua print(y) ?>,<?lua print(z+3000) ?>" /> 377 </waypoints> 378 <events> 379 <activity> 380 <EventListener event="activateTeam1No1" /> 381 </activity> 382 </events> 383 </WaypointPatrolController> 384 </controller> 385 </SpaceShip> 386 </trigger> 387 </events> 388 </EventTrigger> 399 389 400 390 <?lua end ?> 401 391 <!----> 402 <!--Creating spaceships (enemy) _______END____________________________________________________________________________________________________________________________________________________-->403 404 <!--Enemies on the way to the transporters ___________________________________________________________________________________________________________________________________________________-->392 <!--Creating spaceships (enemy) END --> 393 394 <!--Enemies on the way to the transporters --> 405 395 406 396 <?lua for i=0,1,1 do … … 408 398 ?> 409 399 <!--NO 1--> 410 411 412 413 414 415 416 417 418 419 420 421 400 <SpaceShip position="<?lua print(5900+i*100) ?>,0,-3000" lookat="2500,0,-1000"> 401 <templates> 402 <Template link=spaceshippirate/> 403 </templates> 404 <controller> 405 <WaypointPatrolController alertnessRadius=1500 team=1> 406 <waypoints> 407 <Model mesh="cube.mesh" scale=0 position="<?lua print(2500+100*i) ?>,0,-1000" /> 408 </waypoints> 409 </WaypointPatrolController> 410 </controller> 411 </SpaceShip> 422 412 423 413 <!--NO 4--> 424 425 426 427 428 429 430 431 432 433 434 435 414 <SpaceShip position="<?lua print(9000) ?>,13000,<?lua print(z*i+3000) ?>" lookat="1000,0,3000"> 415 <templates> 416 <Template link=spaceshippirate/> 417 </templates> 418 <controller> 419 <WaypointPatrolController alertnessRadius=1500 team=1> 420 <waypoints> 421 <Model mesh="cube.mesh" scale=0 position="<?lua print(10000) ?>,0,<?lua print(3000+z*i) ?>" /> 422 </waypoints> 423 </WaypointPatrolController> 424 </controller> 425 </SpaceShip> 436 426 <?lua end ?> 437 427 438 428 439 429 <!--NO 3--> 440 441 442 443 444 445 446 447 448 449 450 451 452 <?lua for i=0,1,1 do ?> 453 454 455 456 457 458 459 460 461 462 463 464 430 <SpaceShip position="<?lua print(200+13000) ?>,0,10000" lookat="8000,0,1000"> 431 <templates> 432 <Template link=spaceshippirate/> 433 </templates> 434 <controller> 435 <WaypointPatrolController alertnessRadius=1500 team=1> 436 <waypoints> 437 <Model mesh="cube.mesh" scale=0 position="<?lua print(200+8000) ?>,0,1000" /> 438 </waypoints> 439 </WaypointPatrolController> 440 </controller> 441 </SpaceShip> 442 <?lua for i=0,1,1 do ?> 443 <SpaceShip position="<?lua print(i*400+13000) ?>,100,10000" lookat="8000,0,1000"> 444 <templates> 445 <Template link=spaceshippirate/> 446 </templates> 447 <controller> 448 <WaypointPatrolController alertnessRadius=1500 team=1> 449 <waypoints> 450 <Model mesh="cube.mesh" scale=0 position="<?lua print(i*400+8000) ?>,0,1000" /> 451 </waypoints> 452 </WaypointPatrolController> 453 </controller> 454 </SpaceShip> 465 455 <?lua end ?> 466 456 … … 468 458 <!--NO 2--> 469 459 <?lua for i=0,3,1 do ?> 470 <SpaceShip position="<?lua print(math.random(5500,6500)+2000) ?>,0,1000" lookat="2500,0,-1000"> 471 <templates> 472 <Template link=spaceshippirate/> 473 </templates> 474 <controller> 475 <WaypointPatrolController alertnessRadius=1500 team=1> 476 <waypoints> 477 <Model mesh="cube.mesh" scale=0 position="<?lua print(math.random(5750,6250)+2000) ?>,0,1250" /> 478 <Model mesh="cube.mesh" scale=0 position="<?lua print(math.random(5750,6250)+2000) ?>,250,1000" /> 479 <Model mesh="cube.mesh" scale=0 position="<?lua print(math.random(5750,6250)+2000) ?>,0,1000" /> 480 </waypoints> 481 </WaypointPatrolController> 482 </controller> 483 </SpaceShip> 484 <?lua end ?> 485 486 <!--Creating spaceships (enemy)______END_____________________________________________________________________________________________________________________________________________________--> 487 488 <DistanceTrigger name="activateSecondSpawnpoint" position="10000,0,3000" distance="1000" target="DistanceTriggerBeacon" targetname="PlayerDistanceTrigger" activations="1" stayactive="true" /> 489 490 </Scene> 460 <SpaceShip position="<?lua print(math.random(5500,6500)+2000) ?>,0,1000" lookat="2500,0,-1000"> 461 <templates> 462 <Template link=spaceshippirate/> 463 </templates> 464 <controller> 465 <WaypointPatrolController alertnessRadius=1500 team=1> 466 <waypoints> 467 <Model mesh="cube.mesh" scale=0 position="<?lua print(math.random(5750,6250)+2000) ?>,0,1250" /> 468 <Model mesh="cube.mesh" scale=0 position="<?lua print(math.random(5750,6250)+2000) ?>,250,1000" /> 469 <Model mesh="cube.mesh" scale=0 position="<?lua print(math.random(5750,6250)+2000) ?>,0,1000" /> 470 </waypoints> 471 </WaypointPatrolController> 472 </controller> 473 </SpaceShip> 474 <?lua end ?> 475 476 <!--Creating spaceships (enemy) END --> 477 478 <Trigger invert=true name="activateFirstSpawnpoint"> 479 <DistanceTrigger name="activateSecondSpawnpoint" position="10000,0,3000" distance="1000" target="DistanceTriggerBeacon" targetname="PlayerDistanceTrigger" activations="1" stayactive="true" /> 480 </Trigger> 481 482 </Scene> 491 483 </Level>
Note: See TracChangeset
for help on using the changeset viewer.