[Orxonox-commit 2384] r7099 - code/branches/presentation3/data/levels

decapitb at orxonox.net decapitb at orxonox.net
Thu Jun 3 01:22:09 CEST 2010


Author: decapitb
Date: 2010-06-03 01:22:09 +0200 (Thu, 03 Jun 2010)
New Revision: 7099

Modified:
   code/branches/presentation3/data/levels/presentationFS10.oxw
Log:
formationFlight demo added

Modified: code/branches/presentation3/data/levels/presentationFS10.oxw
===================================================================
--- code/branches/presentation3/data/levels/presentationFS10.oxw	2010-06-02 23:03:28 UTC (rev 7098)
+++ code/branches/presentation3/data/levels/presentationFS10.oxw	2010-06-02 23:22:09 UTC (rev 7099)
@@ -6,13 +6,15 @@
 <?lua
   include("templates/lodinformation.oxt")
   include("templates/spaceship_assff.oxt")
-  include("templates/spaceship_pirate.oxt")
+  include("templates/spaceship_pirate.oxt")
+  include("templates/spaceship_swallow.oxt")
   include("templates/pickup_representation_templates.oxt")
 ?>
 
 <Level
  name         = "Sample"
- description  = "Just a few tests"
+ description  = "Just a few tests"
+ gametype     = TeamDeathmatch
 >
   <templates>
     <Template link=lodtemplate_default />
@@ -31,9 +33,69 @@
     <SpawnPoint position="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
 
     <Billboard position="12.5, -30, -500" material="Banners/Pickups" scale="0.5"/>
-    <Billboard position="500, -30, -500" material="Banners/Drone" scale="0.5"/>
+    <Billboard position="500, -30, -500" material="Banners/Drone" scale="0.5"/>
+    <EventDispatcher>
+      <targets>
+        <EventTarget target=pirate />
+      </targets>
+      <events>
+        <activity>
+          <DistanceTrigger position="500, -50, -500" distance=20 target="SpaceShip" stayactive=true />
+        </activity>
+      </events>
+    </EventDispatcher>
+
+    <Billboard position="1000, -30, -500" material="Banners/Formation" scale="0.5"/>
+    <Billboard position="1000, -50, -500" material="Examples/Flare" scale="0.5"/>
+    <EventDispatcher>
+      <targets>
+        <EventTarget target=formation />
+      </targets>
+      <events>
+        <activity>
+          <DistanceTrigger position="1000, -50, -500" distance=20 target="SpaceShip" stayactive=true />
+        </activity>
+      </events>
+    </EventDispatcher>
+
+    <SpaceShip position="500,0,-1500">
+        <templates>
+          <Template link=spaceshippirate />
+        </templates>
+        <controller>
+          <AIController team=1 active=false name=pirate />
+        </controller>
+    </SpaceShip>
+
+
+    <?lua
+      for i = 1, 10, 1 do
+        ?>
+      <SpaceShip position="<?lua print(5000 + math.random() * 4000 - 2000) ?>,<?lua print(0 + math.random() * 2000 - 1000) ?>,<?lua print(math.random() * 2000 - 1000) ?>">
+        <templates>
+          <Template link=spaceshippirate />
+        </templates>
+        <controller>
+          <AIController formationFlight=true passive=true team=0 name=formation active=false />
+        </controller>
+      </SpaceShip>
+    <?lua end ?>
+
+
+    <?lua
+      for i = 1, 10, 1 do
+        ?>
+      <SpaceShip position="<?lua print(5000 + math.random() * 4000 - 2000) ?>,<?lua print(0 + math.random() * 2000 - 1000) ?>,<?lua print(math.random() * 2000 - 1000) ?>">
+        <templates>
+          <Template link=spaceshipassff />
+        </templates>
+        <controller>
+          <AIController formationFlight=true passive=true team=1 name=formation active=false/>
+        </controller>
+      </SpaceShip>
+    <?lua end ?>
 
-    <PickupSpawner position="500,-50,-500" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
+    <PickupSpawner position="500,-50,-500" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
       <pickup>
         <DronePickup template=dronepickup />
       </pickup>




More information about the Orxonox-commit mailing list