[Orxonox-commit 6090] r10748 - code/branches/campaignHS15/data/levels

paulsc at orxonox.net paulsc at orxonox.net
Mon Nov 2 14:10:12 CET 2015


Author: paulsc
Date: 2015-11-02 14:10:11 +0100 (Mon, 02 Nov 2015)
New Revision: 10748

Modified:
   code/branches/campaignHS15/data/levels/Campaign1.oxw
Log:
Added Allies.

Modified: code/branches/campaignHS15/data/levels/Campaign1.oxw
===================================================================
--- code/branches/campaignHS15/data/levels/Campaign1.oxw	2015-11-01 21:26:21 UTC (rev 10747)
+++ code/branches/campaignHS15/data/levels/Campaign1.oxw	2015-11-02 13:10:11 UTC (rev 10748)
@@ -44,6 +44,7 @@
     <?lua
         waves = 3
         enemies = 5
+        allies = 5
     ?>
 
     <Scene
@@ -187,8 +188,8 @@
     </EventMultiTrigger>
 
     <!-- TODO: fictive unit; to be added later -->
-    <DistanceTrigger name="joinedUnit" position="3500,-1500,0" distance=100 target="SpaceShip" beaconMode="exclude" targetname="NPC" stayactive=true />
-    <Billboard position="3500,-1500,0" amplitude=1 material="Flares/lensflare" colour="1,0,0.05" />     <!-- For debugging puropses -->
+    <DistanceTrigger name="joinedUnit" position="3000,-2000,0" distance=100 target="SpaceShip" beaconMode="exclude" targetname="NPC" stayactive=true />
+    <Billboard position="3000,-1000,0" amplitude=1 material="Flares/lensflare" colour="1,0,0.05" />     <!-- For debugging puropses -->
 
     <EventMultiTrigger name="wave1" activations="1" stayactive="true" delay=4>
         <events>
@@ -554,7 +555,7 @@
     </SpaceShip>
 
     <!-- FPS Player as destination of dock C-->
-    <FpsPlayer team=0 template = "fps" radarname = "First Person Player" position = "0,-2300,1201">
+    <FpsPlayer team=0 template = "fps" rotationaxis="0,0,1" radarname = "First Person Player" position = "0,-2300,1201">
         <attached>
             <DockingTarget name="fpsMode" />
             <DistanceTriggerBeacon name="fpsPlayer" />
@@ -609,6 +610,43 @@
         asteroidBelt(5000, 0, 0, 30, 0, 30, 5, 10, 1400, 1500, 200, 1)
     ?>
 
+    <!-- Allies, 3000,-2000 -->
+    <?lua
+    for i = 1, allies, 1
+    do
+    x = 3000 + math.cos(2*math.pi/5*(i+1))*100
+    y = -2000 + math.sin(2*math.pi/5*(i+1))*100
+    ?>
+    <SpaceShip visible=false active=false name="allies<?lua print(k)?>" radarname="Ally" position="<?lua print(x)?>,<?lua print(y)?>,<?lua print(math.pow(-1,i)*100) ?>" lookat="0,0,0" team=0>
+        <templates>
+            <Template link="spaceshipassff2" />
+        </templates>
+        <events>
+            <visibility>
+                <EventListener event="dockedA" />
+            </visibility>
+            <activity>
+                <EventListener event="dockedA" />
+            </activity>
+        </events>
+        <attached>
+            <DistanceTriggerBeacon name="NPC" />
+        </attached>
+        <controller>
+            <WaypointPatrolController accuracy=1000 name="allyController" alertnessradius=500 team=0 active=false>
+                <waypoints>
+                    <StaticEntity position="0,0,0" />
+                </waypoints>
+                <events>
+                    <activity>
+                        <EventListener event="joinedUnit" />
+                    </activity>
+                </events>
+            </WaypointPatrolController>
+        </controller>
+    </SpaceShip>
+    <?lua end ?>
+
     <!-- Enemies. Outer loop defines waves, inner loop defines enemies in every wave. -->
     <?lua
     for k = 1, waves, 1
@@ -620,7 +658,7 @@
     x = math.cos(math.pi/8*(i+1))*1500
     y = math.sin(math.pi/8*(i+1))*1500
     ?>
-    <SpaceShip visible=false active=flase name="attackers<?lua print(k)?>" radarname="Attacker" position="<?lua print(x)?>,<?lua print(y)?>,<?lua print(math.pow(-1,i)*250) ?>" lookat="0,0,0" team=1>
+    <SpaceShip visible=false active=false name="attackers<?lua print(k)?>" radarname="Attacker" position="<?lua print(x)?>,<?lua print(y)?>,<?lua print(math.pow(-1,i)*250) ?>" lookat="0,0,0" team=1>
         <templates>
             <Template link="spaceshippirate" />
         </templates>
@@ -636,7 +674,7 @@
             <DistanceTriggerBeacon name="NPC" />
         </attached>
         <controller>
-            <WaypointPatrolController name="attackController" alertnessradius=50 team=1 active=false>
+            <WaypointPatrolController name="attackController" accuracy=100 alertnessradius=200 team=1 active=false>
                 <waypoints>
                     <Attacher target="transporter" deletewithparent=false />
                 </waypoints>
@@ -651,10 +689,7 @@
     <?lua end ?>
     <?lua end ?>
 
-    <Formation>
 
-    </Formation>
-
     <!-- Transporter, starting Point is near A, end Point near B, the circle parameters for the waypoints are: Center = (0, -887, 0), r = 2613 -->
     <SpaceShip position="5000,-3000,0" lookat="-2494, -1667, 0" team=0 name="transporter" radarname="Shuttle">
         <templates>




More information about the Orxonox-commit mailing list