[Orxonox-commit 6015] r10674 - code/branches/campaignHS15/data/levels

paulsc at orxonox.net paulsc at orxonox.net
Mon Oct 19 22:07:29 CEST 2015


Author: paulsc
Date: 2015-10-19 22:07:28 +0200 (Mon, 19 Oct 2015)
New Revision: 10674

Modified:
   code/branches/campaignHS15/data/levels/Campaign1.oxw
Log:
Added enemy WaypointPatrolController with Attacher waypoint

Modified: code/branches/campaignHS15/data/levels/Campaign1.oxw
===================================================================
--- code/branches/campaignHS15/data/levels/Campaign1.oxw	2015-10-19 15:15:17 UTC (rev 10673)
+++ code/branches/campaignHS15/data/levels/Campaign1.oxw	2015-10-19 20:07:28 UTC (rev 10674)
@@ -34,7 +34,7 @@
     <WorldAmbientSound source="Earth.ogg" looping="true" playOnLoad="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"/>
-    
+
     <!--QUEST DEFINITIONS-->
 
     <GlobalQuest id="quest1">
@@ -117,11 +117,10 @@
 
     <!--EVENTS-->
 
-
     <EventMultiTrigger name=spawntrigger>
       <events>
           <trigger>
-              <SpawnPoint team=0 position="-50,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff2 />
+              <SpawnPoint team=1 position="-50,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff2 />
           </trigger>
       </events>
     </EventMultiTrigger>
@@ -151,24 +150,24 @@
         </events>
     </QuestEffectBeacon>
 
-    <!--STRUCTURE -->   
+    <!--STRUCTURE -->
 
     <StaticEntity position="-2500,0,1800" direction="0,-1,0" collisionType=static mass=100000 friction=0.01 >
-        <attached> 
-            <Model position="0,0,0" mesh="cube.mesh" scale3D="10,10,10" /> 
-        </attached> 
-        <collisionShapes> 
-            <BoxCollisionShape position="0,0,0" halfExtents="10,10,10" /> 
-        </collisionShapes> 
+        <attached>
+            <Model position="0,0,0" mesh="cube.mesh" scale3D="10,10,10" />
+        </attached>
+        <collisionShapes>
+            <BoxCollisionShape position="0,0,0" halfExtents="10,10,10" />
+        </collisionShapes>
     </StaticEntity>
 
     <StaticEntity position="-2500,0,-1800" direction="0,-1,0" collisionType=static mass=100000 friction=0.01 >
-        <attached> 
-            <Model position="0,0,0" mesh="cube.mesh" scale3D="10,10,10" /> 
-        </attached> 
-        <collisionShapes> 
-            <BoxCollisionShape position="0,0,0" halfExtents="10,10,10" /> 
-        </collisionShapes> 
+        <attached>
+            <Model position="0,0,0" mesh="cube.mesh" scale3D="10,10,10" />
+        </attached>
+        <collisionShapes>
+            <BoxCollisionShape position="0,0,0" halfExtents="10,10,10" />
+        </collisionShapes>
     </StaticEntity>
 
      <!--ELEMENTS -->
@@ -176,19 +175,25 @@
        <?lua
       max = 5
     for i = 1, max, 1
-    do 
+    do
       x = math.cos(math.pi/8*(i+1))*1500
       y = math.sin(math.pi/8*(i+1))*1500
     ?>
-    <SpaceShip position="<?lua print(y)?>,<?lua print(math.pow(-1,i)*250) ?>,<?lua print(x)?>" lookat="0,0,0" team=1>
+    <SpaceShip position="<?lua print(y)?>,<?lua print(math.pow(-1,i)*250) ?>,<?lua print(x)?>" lookat="0,0,0" team=2>
         <templates>
             <Template link=spaceshippirate />
         </templates>
-        
+        <controller>
+            <WaypointPatrolController alertnessradius=600 team=1>
+              <waypoints>
+                <Attacher target="transporter" deletewithparent=false />
+              </waypoints>
+            </WaypointPatrolController>
+        </controller>
     </SpaceShip>
     <?lua end ?>
 
-  	<SpaceShip position="-2500,0,1700" lookat="-2500,0,-1800" team=0>
+  	<SpaceShip position="-2500,0,1700" lookat="-2500,0,-1800" team=1 name="transporter">
   		<templates>
   			<Template link=spaceshipTransporter />
   		</templates>
@@ -215,4 +220,3 @@
 
   </Scene>
 </Level>
-




More information about the Orxonox-commit mailing list