[Orxonox-commit 4913] r9582 - code/branches/formationupdate/data/levels
maxima at orxonox.net
maxima at orxonox.net
Tue Mar 26 15:27:31 CET 2013
Author: maxima
Date: 2013-03-26 15:27:31 +0100 (Tue, 26 Mar 2013)
New Revision: 9582
Modified:
code/branches/formationupdate/data/levels/maxim.oxw
Log:
removed stuff
Modified: code/branches/formationupdate/data/levels/maxim.oxw
===================================================================
--- code/branches/formationupdate/data/levels/maxim.oxw 2013-03-26 12:27:59 UTC (rev 9581)
+++ code/branches/formationupdate/data/levels/maxim.oxw 2013-03-26 14:27:31 UTC (rev 9582)
@@ -8,66 +8,76 @@
<?lua
include("stats.oxo")
include("HUDTemplates3.oxo")
+ include("templates/lodInformation.oxt")
?>
<?lua
- include("templates/lodInformation.oxt")
include("templates/spaceshipAssff.oxt")
include("templates/spaceshipPirate.oxt")
include("templates/spaceshipSwallow.oxt")
- include("templates/pickupRepresentationTemplates.oxt")
+ include("templates/spaceshipTransporter.oxt")
?>
<Level
- gametype = "TeamDeathmatch"
->
+ gametype = "Mission"
+>
<templates>
<Template link=lodtemplate_default />
</templates>
<?lua include("includes/notifications.oxi") ?>
+ <NotificationQueueCEGUI
+ name="narrative"
+ targets="simpleNotification"
+ size=3
+ displayTime=3.9
+ position="0.2, 0, 0.1, 0"
+ fontSize="23"
+ fontColor="0.3, 1, 0.2, 0.8"
+ alignment="HorzCentred"
+ displaySize="0.6, 0, 0, 0"
+ />
+
<Scene
ambientlight = "0.8, 0.8, 0.8"
- skybox = "Orxonox/Starbox"
+ skybox = "Orxonox/skyBoxMoreNebula"
>
+ <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"/>
+ <TeamSpawnPoint team=0 position="800,700,600" direction="-1,0,0" spawnclass=SpaceShip pawndesign=spaceshipswallow/>
- <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" />
- <SpawnPoint position="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipswallow >
- <controller>
- <HumanController formationFlight=true team=0 name=formation state_=MASTER />
- </controller>
- </SpawnPoint>
+ <!-- TRIGGERS -->
+ <DistanceTrigger name="FormationInit" position="800,700,600" target="Pawn" distance=60 stayActive="true" delay=0.1 />
+ <BlinkingBillboard colour="1,1,0.05"position="200,-200,1000" frequency=0.6 amplitude=3 material="Flares/lensflare" >
+ </BlinkingBillboard>
- <?lua
- for i = 1, 10, 1 do
- ?>
- <SpaceShip position="<?lua print(500 + math.random() * 4000 - 2000) ?>,<?lua print(math.random() * 2000 - 1000) ?>,<?lua print(math.random() * 2000 - 1000) ?>">
- <templates>
- <Template link=spaceshippirate />
- </templates>
- <controller>
- <AIController formationFlight=true passive=false team=0 name=formation active=true />
- </controller>
- </SpaceShip>
- <?lua end ?>
-<!--
- <?lua
- for i = 1, 10, 1 do
- ?>
- <SpaceShip position="<?lua print(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=false team=1 name=formation active=true/>
- </controller>
- </SpaceShip>
- <?lua end ?>
--->
-
+
+ <Script code="formationcontroller formationflight true" onLoad="false">
+ <events>
+ <trigger>
+ <EventListener event=FormationInit />
+ </trigger>
+ </events>
+ </Script> <!-- !!! activates formation behaviour !!! -->
+
+
+ <!-- ADDING FORMATION: 5 Swallows -->
+ <?lua for i=0,4,1 do
+ ?>
+ <SpaceShip position="<?lua print(400+i*200) ?>,-200,1000" lookat="-1300,-600,900" visible="true">
+ <templates>
+ <Template link=spaceshipswallow />
+ </templates>
+ <controller>
+ <AIController team=1/>
+ </controller>
+ </SpaceShip>
+ <?lua end ?>
+
+
</Scene>
</Level>
+
More information about the Orxonox-commit
mailing list