[Orxonox-commit 1627] r6345 - code/branches/presentation2/data/levels

decapitb at orxonox.net decapitb at orxonox.net
Sun Dec 13 20:37:31 CET 2009


Author: decapitb
Date: 2009-12-13 20:37:31 +0100 (Sun, 13 Dec 2009)
New Revision: 6345

Modified:
   code/branches/presentation2/data/levels/presentationHS09b.oxw
Log:
added some "ghost ships" and a destroyer

Modified: code/branches/presentation2/data/levels/presentationHS09b.oxw
===================================================================
--- code/branches/presentation2/data/levels/presentationHS09b.oxw	2009-12-13 19:32:03 UTC (rev 6344)
+++ code/branches/presentation2/data/levels/presentationHS09b.oxw	2009-12-13 19:37:31 UTC (rev 6345)
@@ -9,11 +9,14 @@
   include("templates/spaceship_ghost.oxt")
   include("templates/spaceship_HXY.oxt")
   include("templates/spaceship_Transporter.oxt")
+  include("templates/spaceship_HXY_SL.oxt")
+  include("templates/spaceship_Transporter_SL.oxt")
 ?>
 
 <Level
  name         = "Sample"
  description  = "Just a few tests"
+ gametype     = TeamDeathmatch
 >
   <Scene
     ambientlight = "0.8, 0.8, 0.8"
@@ -21,7 +24,7 @@
   >
 
     
-    	<AmbientSound ambientSource="Mars.ogg" loop="true" play="true" />
+<AmbientSound ambientSource="Mars.ogg" loop="true" play="true" />
 
    <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" />
    <?lua
@@ -32,12 +35,12 @@
    elements.length = function()
 	return table.getn(elements)
    end
-   for i = 1, 100, 1 
+   for i = 1, 50, 1 
    do
-   x = math.random() * 200  + (i) * 200
-   y = math.random() * 3000 - 1500
-   z = math.random() * 3000 - 1500 + (i-100) * 10
-   s = math.random() * 100 + 50
+   x = math.random() * 2000  + 4000
+   y = math.random() * 4000 - 2000
+   z = math.random() * 2000 - 1000
+   s = math.random() * 100
    e = math.floor(math.random()*elements.length()+1)
    ?>
     
@@ -54,11 +57,11 @@
 ?>
 
 <?lua
-for i = 1, 200, 1 
+for i = 1, 50, 1 
 do
-x = math.random() * 100 + i*100
-y = math.random() * 3000 - 1500
-z = math.random() * 3000 - 1500 + (i-100) * 10
+   x = math.random() * 2000  + 4000
+   y = math.random() * 4000 - 2000
+   z = math.random() * 2000 - 1000
 ?>
 
  <ParticleSpawner position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" source="Orxonox/Steam" lifetime=3.0 loop=1 />
@@ -92,17 +95,17 @@
 	end
 	?>
 <?lua
-for i = 1,5, 1 
+for i = 1,25, 1 
 do
 ?>
-    <SpaceShip position="2000,0,0" >
+    <SpaceShip position="5000,0,<?lua print(i*50 - 150) ?>" >
       <templates>
-        <Template link=spaceshipHXY />
+        <Template link=spaceshipHXYSL />
       </templates>
       <controller>
-	<WaypointPatrolController name=HXY target=pirate alertnessradius=1000 team=0 active=true>
+	<WaypointPatrolController alertnessradius=1000 team=0 active=true>
           <waypoints>
-            <StaticEntity position="0,0,0" />
+            <StaticEntity position="5000,<?lua print(math.random()*50)?> ,<?lua print(i*50 -150) ?>" />
           </waypoints>
         </WaypointPatrolController>
       </controller>
@@ -110,18 +113,125 @@
 <?lua 
 end
 ?>
-<SpaceShip position="2000,0,0" >
+<SpaceShip position="5000,100,100" >
       <templates>
-        <Template link=spaceshipTransporter />
+        <Template link=spaceshipTransporterSL />
       </templates>
       <controller>
-	<WaypointPatrolController name=ghost target=pirate alertnessradius=1000 team=0 active=true>
+	<WaypointPatrolController name=pirate  target=pirate alertnessradius=1000 team=0 active=false>
           <waypoints>
-            <StaticEntity position="0,0,0" />
+            <StaticEntity position="5000,100,1100" />
           </waypoints>
         </WaypointPatrolController>
       </controller>
 </SpaceShip>
+    <Destroyer
+        position          = "-5000,100 ,100"
+        collisionType     = dynamic
+        mass              = 100000
+        angularDamping    = 0.9999999
+        health            = 1000
+        maxhealth         = 1000
+        initialhealth     = 1000
+    >
+        <controller>
+          <WaypointPatrolController team=1 />
+        </controller>
+        <attached>
+            <Model mesh="Carrier.mesh" scale="5" />
+            <Backlight
+                mainstate=activity
+                active=false
+                scale=0.4
+                name=bltest
+                position=" 7.6, 0, 6"
+                colour="0.2, 0.65, 1.0, 1.0"
+                width=15
+                length=1500
+                lifetime=2
+                elements=50
+                trailmaterial="Trail/backlighttrail"
+                turnontime=1
+                turnofftime=1
+                material="Flares/ThrusterFlare1"
+            />
+            <?lua for i=0,8,1 do ?>
+                <BlinkingBillboard
+                    position="<?lua print(200-270/8*i)?> ,15,2"
+                    material="Examples/Flare"
+                    colour="1.0, 0.5, 0.3"
+                    phase=<?lua print(-360/8*i)?>
+                    amplitude=0.1
+                    frequency=0.5
+                    quadratic=1
+                />
+
+                <BlinkingBillboard
+                    position="<?lua print(200-270/8*i)?>,-15,2"
+                    material="Examples/Flare"
+                    colour="1.0, 0.5, 0.3"
+                    phase=<?lua print(-360/8*i)?>
+                    amplitude=0.1
+                    frequency=0.5
+                    quadratic=1
+                />
+            <?lua end ?>
+
+            <Backlight
+                scale=1
+                position=" 169, 75, -15"
+                colour="1, 0.85, 0.5, 0.5"
+                width=40
+                length=1000
+                lifetime=5
+                elements=15
+                trailmaterial="Trail/backlighttrail"
+                material="Examples/Flare"
+            />
+            <Backlight
+                scale=1
+                position=" 169, -75, -15"
+                colour="1, 0.85, 0.5, 0.5"
+                width=40
+                length=1000
+                lifetime=5
+                elements=15
+                trailmaterial="Trail/backlighttrail"
+                material="Examples/Flare" />
+        </attached>
+        <collisionShapes>
+            <BoxCollisionShape position="70,0,-25"      halfExtents="150, 50, 25" />
+            <BoxCollisionShape position="95,75,-16"     halfExtents="70, 10, 12" />
+            <BoxCollisionShape position="95,-75,-16"    halfExtents="70, 10, 12" />
+            <BoxCollisionShape position="77,47,30"      halfExtents="110, 2, 30" />
+            <BoxCollisionShape position="77,-47,30"     halfExtents="110, 2, 30" />
+            <BoxCollisionShape position="77,0,50"       halfExtents="110, 45, 6" />
+            <BoxCollisionShape position="167,0,70"      halfExtents="17, 20, 20" />
+        </collisionShapes>
+    </Destroyer>
+
+
+<?lua
+for i = 1,25, 1 
+do
+?>
+    <SpaceShip position="-5000,0,<?lua print(i*50 - 150) ?>" >
+      <templates>
+        <Template link=spaceshipGhost />
+      </templates>
+      <controller>
+	<WaypointPatrolController alertnessradius=1000 team=0 active=true>
+          <waypoints>
+            <StaticEntity position="-5000,<?lua print(math.random()*50)?> ,<?lua print(i*50 -150) ?>" />
+          </waypoints>
+        </WaypointPatrolController>
+      </controller>
+    </SpaceShip>
+<?lua 
+end
+?>
+
+
 <AmbientSound ambientSource="Earth.ogg" loop="true" play="false">
        <events>
           <activity>
@@ -130,6 +240,6 @@
        </events>
     </AmbientSound>
 
-    <SpawnPoint position="0,0,100" spawnclass=SpaceShip pawndesign=spaceshipHXY  />
+    <SpawnPoint position="0,0,5000" spawnclass=SpaceShip pawndesign=spaceshipassff  team=0/>
   </Scene>
 </Level>




More information about the Orxonox-commit mailing list