[Orxonox-commit 135] r2042 - media/levels
landauf at orxonox.net
landauf at orxonox.net
Mon Mar 23 11:37:01 CET 2009
Author: landauf
Date: 2009-03-23 10:37:01 +0000 (Mon, 23 Mar 2009)
New Revision: 2042
Modified:
media/levels/CuboidSpaceStation.lua
media/levels/CuboidSpaceStation.oxw
media/levels/presentation_level1_felix.oxw
media/levels/presentation_pong.oxw
media/levels/sample4.oxw
media/levels/spaceshiptemplates2.oxw
Log:
eol-style:native
Modified: media/levels/CuboidSpaceStation.lua
===================================================================
--- media/levels/CuboidSpaceStation.lua 2009-03-23 10:27:59 UTC (rev 2041)
+++ media/levels/CuboidSpaceStation.lua 2009-03-23 10:37:01 UTC (rev 2042)
@@ -429,8 +429,8 @@
print(bodyParts[tempPartIndex][0][0][0][7]) print(">")
end
- print("<attached>")
- print(bodyParts[tempPartIndex][0][0][0][9])
+ print("<attached>")
+ print(bodyParts[tempPartIndex][0][0][0][9])
print("</attached>")
print("</Model>")
@@ -548,7 +548,7 @@
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- Attach all bodyparts.
--- Define at which position in the x-direction you're space station will start.
+-- Define at which position in the x-direction you're space station will start.
x=math.random(-math.floor(xLength/2),-math.floor(xLength/2)+xVar)
-- Define at which position in the x-direction you're space station will end.
xMax=math.random(math.floor(xLength/2),math.floor(xLength/2)+xVar)
Property changes on: media/levels/CuboidSpaceStation.lua
___________________________________________________________________
Added: svn:eol-style
+ native
Modified: media/levels/CuboidSpaceStation.oxw
===================================================================
--- media/levels/CuboidSpaceStation.oxw 2009-03-23 10:27:59 UTC (rev 2041)
+++ media/levels/CuboidSpaceStation.oxw 2009-03-23 10:37:01 UTC (rev 2042)
@@ -1,22 +1,22 @@
-<?lua
- include("levels/hudtemplates.oxw")
-?>
-
-<?lua
- include("levels/spaceshiptemplates.oxw")
-?>
-
-<Level
- name = "SpaceStation test Space!"
- description = "All the new SpaceStations are created here!"
->
- <Scene
- ambientlight = "0.5, 0.5, 0.5"
- skybox = "Orxonox/Starbox"
- >
+<?lua
+ include("levels/hudtemplates.oxw")
+?>
+<?lua
+ include("levels/spaceshiptemplates.oxw")
+?>
+<Level
+ name = "SpaceStation test Space!"
+ description = "All the new SpaceStations are created here!"
+>
+ <Scene
+ ambientlight = "0.5, 0.5, 0.5"
+ skybox = "Orxonox/Starbox"
+ >
+
+
<!-------------------------------------------------------------------------------------------------------------------------------------------------------------------------->
<?lua
dofile("../../media/levels/CuboidSpaceStation.lua")
@@ -94,19 +94,19 @@
- <ParticleSpawner position="0,0,0" source="Orxonox/BigExplosion1part3" lifetime=2.0 loop=0 autostart=0>
- <events>
- <spawn>
- <EventTrigger delay=1>
- <events>
- <trigger>
- <SpawnPoint position="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
- </trigger>
- </events>
- </EventTrigger>
- </spawn>
- </events>
- </ParticleSpawner>
-
- </Scene>
+ <ParticleSpawner position="0,0,0" source="Orxonox/BigExplosion1part3" lifetime=2.0 loop=0 autostart=0>
+ <events>
+ <spawn>
+ <EventTrigger delay=1>
+ <events>
+ <trigger>
+ <SpawnPoint position="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
+ </trigger>
+ </events>
+ </EventTrigger>
+ </spawn>
+ </events>
+ </ParticleSpawner>
+
+ </Scene>
</Level>
Property changes on: media/levels/CuboidSpaceStation.oxw
___________________________________________________________________
Added: svn:eol-style
+ native
Modified: media/levels/presentation_level1_felix.oxw
===================================================================
--- media/levels/presentation_level1_felix.oxw 2009-03-23 10:27:59 UTC (rev 2041)
+++ media/levels/presentation_level1_felix.oxw 2009-03-23 10:37:01 UTC (rev 2042)
@@ -1,68 +1,68 @@
-<?lua
- include("levels/hudtemplates3.oxw")
- include("overlay/stats.oxo")
- include("levels/spaceshiptemplates_presentation.oxw")
-?>
-
-<Level
- name = "presentation level 1"
- description = "..."
->
- <Scene
- ambientlight = "0.8, 0.8, 0.8"
- skybox = "Orxonox/skypanoramagen1"
- >
-
- <?lua
- dofile("../../media/levels/CuboidSpaceStation.lua")
- ?>
-
-
- <!-- a light that doesn't work -->
- <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" />
-
-
- <!-- space station -->
- <MovableEntity scale=1 position="2000,0,0" rotationaxis="0,1,0" rotationrate=2>
- <attached>
- <MovableEntity scale=1 position="1000,0,0" rotationaxis="0,0,1" rotationrate=1>
- <attached>
- <?lua
- createSpaceStationPar(0,2,1,2,1,4,1,50)
- ?>
- </attached>
- </MovableEntity>
- </attached>
- </MovableEntity>
-
-
- <!-- spacecruiser -->
- <MovableEntity position="1000,0,-1000" pitch="-90" roll="-90">
- <attached>
- <Model position="0,0,0" scale=10 mesh="spacecruiser_16.mesh" />
- </attached>
- </MovableEntity>
-
-
- <!-- Carrier with guns not implemented yet -->
- <MovableEntity position="2000,-800,-1000" pitch="-90" roll="90">
- <attached>
- <Model position="0,0,0" scale=10 mesh="Carrier.mesh" />
- <Model position="0,30,20" scale=10 mesh="pirate.mesh" roll="180" />
- <Model position="-80,-30,20" scale=10 mesh="pirate.mesh" roll="180" />
- </attached>
- </MovableEntity>
-
-
- <!-- blue planet -->
- <Planet position="1500,0,-5000" scale=1000 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="1,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f />
-
+<?lua
+ include("levels/hudtemplates3.oxw")
+ include("overlay/stats.oxo")
+ include("levels/spaceshiptemplates_presentation.oxw")
+?>
+
+<Level
+ name = "presentation level 1"
+ description = "..."
+>
+ <Scene
+ ambientlight = "0.8, 0.8, 0.8"
+ skybox = "Orxonox/skypanoramagen1"
+ >
+
+ <?lua
+ dofile("../../media/levels/CuboidSpaceStation.lua")
+ ?>
+
+
+ <!-- a light that doesn't work -->
+ <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" />
+
+
+ <!-- space station -->
+ <MovableEntity scale=1 position="2000,0,0" rotationaxis="0,1,0" rotationrate=2>
+ <attached>
+ <MovableEntity scale=1 position="1000,0,0" rotationaxis="0,0,1" rotationrate=1>
+ <attached>
+ <?lua
+ createSpaceStationPar(0,2,1,2,1,4,1,50)
+ ?>
+ </attached>
+ </MovableEntity>
+ </attached>
+ </MovableEntity>
+
+
+ <!-- spacecruiser -->
+ <MovableEntity position="1000,0,-1000" pitch="-90" roll="-90">
+ <attached>
+ <Model position="0,0,0" scale=10 mesh="spacecruiser_16.mesh" />
+ </attached>
+ </MovableEntity>
+
+
+ <!-- Carrier with guns not implemented yet -->
+ <MovableEntity position="2000,-800,-1000" pitch="-90" roll="90">
+ <attached>
+ <Model position="0,0,0" scale=10 mesh="Carrier.mesh" />
+ <Model position="0,30,20" scale=10 mesh="pirate.mesh" roll="180" />
+ <Model position="-80,-30,20" scale=10 mesh="pirate.mesh" roll="180" />
+ </attached>
+ </MovableEntity>
+
+
+ <!-- blue planet -->
+ <Planet position="1500,0,-5000" scale=1000 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="1,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f />
+
<!-------------------------------------------------------------------->
<!--UEA Transporter T036-03-->
- <MovableEntity position="-500,-300,-800" velocity="60,0,0" rotationaxis="1,-1,-1" rotationrate=0>
+ <MovableEntity position="-500,-300,-800" velocity="60,0,0" rotationaxis="1,-1,-1" rotationrate=0>
<attached>
<Model position="0,0,0" scale=20 roll=0 pitch=-90 yaw=0 mesh="UEATransporter036.mesh" />
-
+
<!--Engine Front Right-->
<MovableEntity position="120,14,70" velocity="0,0,0" rotationaxis="1,0,0" rotationrate=0>
<attached>
@@ -74,13 +74,13 @@
</MovableEntity>
</attached>
</MovableEntity>
-
+
<!--Engine Front Left-->
<MovableEntity position="120,14,-70" velocity="0,0,0" rotationaxis="1,0,0" rotationrate=0>
<attached>
<Model position="0,0,0" scale=20 roll=90 pitch=-90 yaw=90 mesh="UEATransporter036T.mesh" />
<MovableEntity position="0,-60,-35" velocity="0,0,0" rotationaxis="1,0,0" rotationrate=0>
- <attached>
+ <attached>
<!--ParticleEmitter pitch=0 roll=180 position="0,0,0" source="Orxonox/engineglow" lifetime=2.0 loop=1 startdelay=3.0 /-->
</attached>
</MovableEntity>
@@ -92,7 +92,7 @@
<attached>
<Model position="0,0,0" scale=20 roll=-90 pitch=0 yaw=90 mesh="UEATransporter036T.mesh" />
<MovableEntity position="-60,0,35" velocity="0,0,0" rotationaxis="1,0,0" rotationrate=0>
- <attached>
+ <attached>
<ParticleEmitter pitch=0 roll=180 position="0,0,0" source="Orxonox/engineglow" lifetime=2.0 loop=1 startdelay=3.0 />
</attached>
</MovableEntity>
@@ -104,30 +104,30 @@
<attached>
<Model position="0,0,0" scale=20 roll=90 pitch=0 yaw=90 mesh="UEATransporter036T.mesh" />
<MovableEntity position="-60,0,-35" velocity="0,0,0" rotationaxis="1,0,0" rotationrate=0>
- <attached>
+ <attached>
<ParticleEmitter pitch=0 roll=180 position="0,0,0" source="Orxonox/engineglow" lifetime=2.0 loop=1 startdelay=3.0 />
</attached>
</MovableEntity>
</attached>
- </MovableEntity>
- </attached>
+ </MovableEntity>
+ </attached>
</MovableEntity>
<!--T036-03 End-->
<!----------------------------------------------->
-
- <ParticleSpawner position="0,0,0" source="Orxonox/BigExplosion1part3" lifetime=2.0 loop=0 autostart=0>
- <events>
- <spawn>
- <EventTrigger delay=1>
- <events>
- <trigger>
- <SpawnPoint position="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
- </trigger>
- </events>
- </EventTrigger>
- </spawn>
- </events>
- </ParticleSpawner>
-
- </Scene>
-</Level>
+
+ <ParticleSpawner position="0,0,0" source="Orxonox/BigExplosion1part3" lifetime=2.0 loop=0 autostart=0>
+ <events>
+ <spawn>
+ <EventTrigger delay=1>
+ <events>
+ <trigger>
+ <SpawnPoint position="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
+ </trigger>
+ </events>
+ </EventTrigger>
+ </spawn>
+ </events>
+ </ParticleSpawner>
+
+ </Scene>
+</Level>
Property changes on: media/levels/presentation_level1_felix.oxw
___________________________________________________________________
Added: svn:eol-style
+ native
Modified: media/levels/presentation_pong.oxw
===================================================================
--- media/levels/presentation_pong.oxw 2009-03-23 10:27:59 UTC (rev 2041)
+++ media/levels/presentation_pong.oxw 2009-03-23 10:37:01 UTC (rev 2042)
@@ -1,107 +1,107 @@
-<?lua
- include("levels/hudtemplates3.oxw")
- include("overlay/stats.oxo")
- include("levels/spaceshiptemplates_presentation.oxw")
-?>
-
-<Template name=pongbatcameras defaults=0>
- <PongBat>
- <camerapositions>
- <CameraPosition position="0,50,160" drag=true mouselook=true />
- <CameraPosition position="0,40,120" drag=true mouselook=true />
- <CameraPosition position="0,30, 80" drag=true mouselook=true />
- <CameraPosition position="0,200,0" pitch=-90 absolute=true />
- </camerapositions>
- </PongBat>
-</Template>
-
-<Template name=pongbat>
- <PongBat camerapositiontemplate=pongbatcameras>
- <attached>
- <Model mesh="cube.mesh" scale3D="14,2,2" />
- </attached>
- </PongBat>
-</Template>
-
-<Template name=pongball>
- <PongBall>
- <attached>
- <Model mesh="sphere.mesh" scale=2 />
- <!--Billboard scale=0.2 colour="1.0, 1.0, 0.5" material="Examples/Flare" /-->
- <Backlight scale=0.2 colour="1.0, 1.0, 0.5" width=7 length=500 lifetime=0.3 elements=20 trailmaterial="Trail/backlighttrail" material="Examples/Flare" />
- </attached>
- </PongBall>
-</Template>
-
-
-<Level
- name = "Presentation"
- description = "A simple testlevel"
- gametype = Pong
->
- <Scene
- ambientlight = "0.5, 0.5, 0.5"
- skybox = "Orxonox/skypanoramagen1"
- >
- <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
-for i = 1, 10, 1
-do ?>
- <SpawnPoint position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
-<?lua
-end
-?>
-
- <MovableEntity rotationrate=5 rotationaxis="0,0,1">
- <attached>
- <PongCenterpoint dimension="200,120" balltemplate=pongball battemplate=pongbat ballspeed=200 batspeed=130 batlength=0.25>
- <attached>
- <Model position="0,0,60" mesh="cube.mesh" scale3D="105,1,1" />
- <Model position="0,0,-60" mesh="cube.mesh" scale3D="105,1,1" />
- </attached>
- </PongCenterpoint>
- </attached>
- </MovableEntity>
-
-<?lua
-for i = 1, 10, 1
-do ?>
- <MovableEntity position="<?lua print(math.random() * 600 - 300)?>, <?lua print(math.random() * 600 - 300) ?>, <?lua print(math.random() * 100 + 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
- <attached>
- <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
- </attached>
- </MovableEntity>
- <MovableEntity position="<?lua print(math.random() * 600 - 300)?>, <?lua print(math.random() * 600 - 300) ?>, <?lua print(math.random() * -100 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
- <attached>
- <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
- </attached>
- </MovableEntity>
-
- <MovableEntity position="<?lua print(math.random() * 600 - 300)?>, <?lua print(math.random() * 100 + 300) ?>, <?lua print(math.random() * 600 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
- <attached>
- <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
- </attached>
- </MovableEntity>
- <MovableEntity position="<?lua print(math.random() * 600 - 300)?>, <?lua print(math.random() * -100 - 300) ?>, <?lua print(math.random() * 600 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
- <attached>
- <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
- </attached>
- </MovableEntity>
-
- <MovableEntity position="<?lua print(math.random() * 100 + 300)?>, <?lua print(math.random() * 600 - 300) ?>, <?lua print(math.random() * 600 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
- <attached>
- <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
- </attached>
- </MovableEntity>
- <MovableEntity position="<?lua print(math.random() * -100 - 300)?>, <?lua print(math.random() * 600 - 300) ?>, <?lua print(math.random() * 600 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
- <attached>
- <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
- </attached>
- </MovableEntity>
-<?lua
-end
-?>
-
- </Scene>
-</Level>
+<?lua
+ include("levels/hudtemplates3.oxw")
+ include("overlay/stats.oxo")
+ include("levels/spaceshiptemplates_presentation.oxw")
+?>
+
+<Template name=pongbatcameras defaults=0>
+ <PongBat>
+ <camerapositions>
+ <CameraPosition position="0,50,160" drag=true mouselook=true />
+ <CameraPosition position="0,40,120" drag=true mouselook=true />
+ <CameraPosition position="0,30, 80" drag=true mouselook=true />
+ <CameraPosition position="0,200,0" pitch=-90 absolute=true />
+ </camerapositions>
+ </PongBat>
+</Template>
+
+<Template name=pongbat>
+ <PongBat camerapositiontemplate=pongbatcameras>
+ <attached>
+ <Model mesh="cube.mesh" scale3D="14,2,2" />
+ </attached>
+ </PongBat>
+</Template>
+
+<Template name=pongball>
+ <PongBall>
+ <attached>
+ <Model mesh="sphere.mesh" scale=2 />
+ <!--Billboard scale=0.2 colour="1.0, 1.0, 0.5" material="Examples/Flare" /-->
+ <Backlight scale=0.2 colour="1.0, 1.0, 0.5" width=7 length=500 lifetime=0.3 elements=20 trailmaterial="Trail/backlighttrail" material="Examples/Flare" />
+ </attached>
+ </PongBall>
+</Template>
+
+
+<Level
+ name = "Presentation"
+ description = "A simple testlevel"
+ gametype = Pong
+>
+ <Scene
+ ambientlight = "0.5, 0.5, 0.5"
+ skybox = "Orxonox/skypanoramagen1"
+ >
+ <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
+for i = 1, 10, 1
+do ?>
+ <SpawnPoint position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
+<?lua
+end
+?>
+
+ <MovableEntity rotationrate=5 rotationaxis="0,0,1">
+ <attached>
+ <PongCenterpoint dimension="200,120" balltemplate=pongball battemplate=pongbat ballspeed=200 batspeed=130 batlength=0.25>
+ <attached>
+ <Model position="0,0,60" mesh="cube.mesh" scale3D="105,1,1" />
+ <Model position="0,0,-60" mesh="cube.mesh" scale3D="105,1,1" />
+ </attached>
+ </PongCenterpoint>
+ </attached>
+ </MovableEntity>
+
+<?lua
+for i = 1, 10, 1
+do ?>
+ <MovableEntity position="<?lua print(math.random() * 600 - 300)?>, <?lua print(math.random() * 600 - 300) ?>, <?lua print(math.random() * 100 + 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
+ <attached>
+ <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
+ </attached>
+ </MovableEntity>
+ <MovableEntity position="<?lua print(math.random() * 600 - 300)?>, <?lua print(math.random() * 600 - 300) ?>, <?lua print(math.random() * -100 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
+ <attached>
+ <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
+ </attached>
+ </MovableEntity>
+
+ <MovableEntity position="<?lua print(math.random() * 600 - 300)?>, <?lua print(math.random() * 100 + 300) ?>, <?lua print(math.random() * 600 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
+ <attached>
+ <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
+ </attached>
+ </MovableEntity>
+ <MovableEntity position="<?lua print(math.random() * 600 - 300)?>, <?lua print(math.random() * -100 - 300) ?>, <?lua print(math.random() * 600 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
+ <attached>
+ <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
+ </attached>
+ </MovableEntity>
+
+ <MovableEntity position="<?lua print(math.random() * 100 + 300)?>, <?lua print(math.random() * 600 - 300) ?>, <?lua print(math.random() * 600 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
+ <attached>
+ <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
+ </attached>
+ </MovableEntity>
+ <MovableEntity position="<?lua print(math.random() * -100 - 300)?>, <?lua print(math.random() * 600 - 300) ?>, <?lua print(math.random() * 600 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
+ <attached>
+ <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
+ </attached>
+ </MovableEntity>
+<?lua
+end
+?>
+
+ </Scene>
+</Level>
Property changes on: media/levels/presentation_pong.oxw
___________________________________________________________________
Added: svn:eol-style
+ native
Modified: media/levels/sample4.oxw
===================================================================
--- media/levels/sample4.oxw 2009-03-23 10:27:59 UTC (rev 2041)
+++ media/levels/sample4.oxw 2009-03-23 10:37:01 UTC (rev 2042)
@@ -1,160 +1,160 @@
-<?lua
- include("levels/hudtemplates.oxw")
-?>
-
-<?lua
- include("levels/spaceshiptemplates2.oxw")
-?>
-
-<Level
- name = "Sample"
- description = "Just a few tests"
->
- <Scene
- ambientlight = "0.5, 0.5, 0.5"
- skybox = "Orxonox/Starbox"
- >
- <!--SpawnPoint position="0, 0, 100" spawnclass=SpaceShip pawndesign=spaceshipassff />
- <SpawnPoint position="0, 0, -700" yaw =180 spawnclass=SpaceShip pawndesign=spaceshipassff />
- <SpawnPoint position="0, 300, -300" pitch=-90 spawnclass=SpaceShip pawndesign=spaceshipassff /-->
-
- <MovableEntity position="-300,200,-800" velocity="5,0,0" rotationaxis="1,0,0" rotationrate=0>
- <attached>
- <Model position="0,0,0" scale=10 mesh="satellite.mesh" />
- <MovableEntity position="-4,0,0" velocity="0,0,0" rotationaxis="0,0,1" rotationrate=50>
- <attached>
- <Model position="4,0,0" scale=10 mesh="satellitedish.mesh"/>
- </attached>
- </MovableEntity>
- <ParticleEmitter pitch=-135 roll=30 position="-14, 3.5,-2.5" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
- <ParticleEmitter pitch=135 roll=30 position="-14, 3.5,-9" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
- <ParticleEmitter pitch=-45 roll=30 position="-14,-3.5,-2.5" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
- <ParticleEmitter pitch=45 roll=30 position="-14,-3.5,-9" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
- </attached>
- </MovableEntity>
-
- <MovableEntity scale=1.5 position="0,0,-300" velocity="0,0,0" rotationaxis="0,1,0" rotationrate=90>
- <events>
- <activity>
- <DistanceTrigger position="0,0,-300" distance=50 target="ControllableEntity" invert=1 />
- </activity>
- </events>
- <attached>
- <Model position="0,0,0" scale=10 mesh="ast1.mesh" />
- <PositionableEntity position="0,0,100">
- <attached>
- <Model position="0,0,0" scale=6 mesh="ast1.mesh" />
- <MovableEntity position="0,0,0" velocity="0,0,0" rotationaxis="0,0,1" rotationrate=500>
- <attached>
- <Model position="0,35,0" scale=2 mesh="ast1.mesh" />
- <Model position="0,-35,0" scale=2 mesh="ast1.mesh" />
- <Model position="35,0,0" scale=2 mesh="ast1.mesh">
- <attached>
- <ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
- </attached>
- </Model>
- <Model position="-35,0,0" scale=2 mesh="ast1.mesh">
- <attached>
- <ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
- </attached>
- </Model>
- </attached>
- </MovableEntity>
- </attached>
- </PositionableEntity>
- <MovableEntity position="0,0,-100" velocity="0,0,0" rotationaxis="0,1,0" rotationrate=200>
- <attached>
- <ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
- <Model position="0,0,0" scale=6 mesh="ast1.mesh" />
- <Model position="0,0,-50" scale=3 mesh="ast1.mesh" />
- <Model position="0,0,50" scale=3 mesh="ast1.mesh" />
- </attached>
- </MovableEntity>
- </attached>
- </MovableEntity>
-
-
- <ParticleSpawner position="-500,0,-200" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 />
- <ParticleSpawner position="-500,0,-300" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 />
- <ParticleSpawner position="-500,0,-400" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 />
- <ParticleSpawner position="-500,0,-500" source="Orxonox/BigExplosion1part1" lifetime=2.5 loop=1 />
- <ParticleSpawner position="-500,0,-600" source="Orxonox/BigExplosion1part1" lifetime=2.5 loop=1 />
-
-
- <ParticleSpawner position="0,0,100" source="Orxonox/BigExplosion1part3" lifetime=2.0 loop=0 autostart=0>
- <events>
- <spawn>
- <EventTrigger delay=1>
- <events>
- <trigger>
- <SpawnPoint position="0,0,100" spawnclass=SpaceShip pawndesign=spaceshipassff />
- </trigger>
- </events>
- </EventTrigger>
- </spawn>
- </events>
- </ParticleSpawner>
-
-
- <ParticleEmitter name=fireright position="200,0,0" source="Orxonox/fire3" active=false>
- <events>
- <activity>
- <DistanceTrigger name=firetrigger1 position="200,0,0" distance=100 target="ControllableEntity" />
- </activity>
- </events>
- </ParticleEmitter>
- <ParticleEmitter name=fireleft position="-200,0,0" source="Orxonox/fire3" active=false>
- <events>
- <activity>
- <DistanceTrigger name=firetrigger2 position="-200,0,0" distance=100 target="ControllableEntity" />
- </activity>
- </events>
- </ParticleEmitter>
- <ParticleEmitter name=firecenter position="0,0,0" source="Orxonox/fire3" active=false>
- <events>
- <activity>
- <EventListener event=firetrigger1 />
- <EventListener event=firetrigger2 />
- </activity>
- </events>
- </ParticleEmitter>
-
-
- <EventDispatcher>
- <targets>
- <EventTarget name=fireright />
- <EventTarget name=firecenter />
- <EventTarget name=fireleft />
- </targets>
- <events>
- <activity>
- <DistanceTrigger position="0,0,200" distance=100 target="ControllableEntity" />
- </activity>
- </events>
- </EventDispatcher>
-
-
- <Model position="0,50,0" scale=3 mesh="assff.mesh">
- <events>
- <visibility>
- <DistanceTrigger position="0,50,0" distance=50 target="ControllableEntity" invert=1 />
- </visibility>
- </events>
- </Model>
-
-
- <Model position="0,0,200" scale=10 mesh="ast2.mesh" shadow=true />
- <!--Model position="0,0,-200" scale=10 mesh="ast1.mesh" shadow=true /-->
- <Model position="0,200,0" scale=10 mesh="ast3.mesh" shadow=true />
- <Model position="0,-200,0" scale=10 mesh="ast4.mesh" shadow=true />
- <Model position="200,0,0" scale=10 mesh="ast5.mesh" shadow=false />
- <Model position="-200,0,0" scale=10 mesh="ast6.mesh" shadow=false />
-
- <Model position="1000,-200,0" scale3D="1,100,100" mesh="ast1.mesh" />
-
- <Model position="0, 0,-100" pitch=-90 roll=-90 scale=4 mesh="assff.mesh" />
- <!--Model position="0,100,-100" pitch=-90 roll=-90 scale=4 mesh="pirate.mesh" />
- <Model position="0,300,-100" pitch=-90 roll=-90 scale=4 mesh="spacecruiser.mesh" /-->
-
- </Scene>
-</Level>
+<?lua
+ include("levels/hudtemplates.oxw")
+?>
+
+<?lua
+ include("levels/spaceshiptemplates2.oxw")
+?>
+
+<Level
+ name = "Sample"
+ description = "Just a few tests"
+>
+ <Scene
+ ambientlight = "0.5, 0.5, 0.5"
+ skybox = "Orxonox/Starbox"
+ >
+ <!--SpawnPoint position="0, 0, 100" spawnclass=SpaceShip pawndesign=spaceshipassff />
+ <SpawnPoint position="0, 0, -700" yaw =180 spawnclass=SpaceShip pawndesign=spaceshipassff />
+ <SpawnPoint position="0, 300, -300" pitch=-90 spawnclass=SpaceShip pawndesign=spaceshipassff /-->
+
+ <MovableEntity position="-300,200,-800" velocity="5,0,0" rotationaxis="1,0,0" rotationrate=0>
+ <attached>
+ <Model position="0,0,0" scale=10 mesh="satellite.mesh" />
+ <MovableEntity position="-4,0,0" velocity="0,0,0" rotationaxis="0,0,1" rotationrate=50>
+ <attached>
+ <Model position="4,0,0" scale=10 mesh="satellitedish.mesh"/>
+ </attached>
+ </MovableEntity>
+ <ParticleEmitter pitch=-135 roll=30 position="-14, 3.5,-2.5" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
+ <ParticleEmitter pitch=135 roll=30 position="-14, 3.5,-9" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
+ <ParticleEmitter pitch=-45 roll=30 position="-14,-3.5,-2.5" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
+ <ParticleEmitter pitch=45 roll=30 position="-14,-3.5,-9" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
+ </attached>
+ </MovableEntity>
+
+ <MovableEntity scale=1.5 position="0,0,-300" velocity="0,0,0" rotationaxis="0,1,0" rotationrate=90>
+ <events>
+ <activity>
+ <DistanceTrigger position="0,0,-300" distance=50 target="ControllableEntity" invert=1 />
+ </activity>
+ </events>
+ <attached>
+ <Model position="0,0,0" scale=10 mesh="ast1.mesh" />
+ <PositionableEntity position="0,0,100">
+ <attached>
+ <Model position="0,0,0" scale=6 mesh="ast1.mesh" />
+ <MovableEntity position="0,0,0" velocity="0,0,0" rotationaxis="0,0,1" rotationrate=500>
+ <attached>
+ <Model position="0,35,0" scale=2 mesh="ast1.mesh" />
+ <Model position="0,-35,0" scale=2 mesh="ast1.mesh" />
+ <Model position="35,0,0" scale=2 mesh="ast1.mesh">
+ <attached>
+ <ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
+ </attached>
+ </Model>
+ <Model position="-35,0,0" scale=2 mesh="ast1.mesh">
+ <attached>
+ <ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
+ </attached>
+ </Model>
+ </attached>
+ </MovableEntity>
+ </attached>
+ </PositionableEntity>
+ <MovableEntity position="0,0,-100" velocity="0,0,0" rotationaxis="0,1,0" rotationrate=200>
+ <attached>
+ <ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
+ <Model position="0,0,0" scale=6 mesh="ast1.mesh" />
+ <Model position="0,0,-50" scale=3 mesh="ast1.mesh" />
+ <Model position="0,0,50" scale=3 mesh="ast1.mesh" />
+ </attached>
+ </MovableEntity>
+ </attached>
+ </MovableEntity>
+
+
+ <ParticleSpawner position="-500,0,-200" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 />
+ <ParticleSpawner position="-500,0,-300" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 />
+ <ParticleSpawner position="-500,0,-400" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 />
+ <ParticleSpawner position="-500,0,-500" source="Orxonox/BigExplosion1part1" lifetime=2.5 loop=1 />
+ <ParticleSpawner position="-500,0,-600" source="Orxonox/BigExplosion1part1" lifetime=2.5 loop=1 />
+
+
+ <ParticleSpawner position="0,0,100" source="Orxonox/BigExplosion1part3" lifetime=2.0 loop=0 autostart=0>
+ <events>
+ <spawn>
+ <EventTrigger delay=1>
+ <events>
+ <trigger>
+ <SpawnPoint position="0,0,100" spawnclass=SpaceShip pawndesign=spaceshipassff />
+ </trigger>
+ </events>
+ </EventTrigger>
+ </spawn>
+ </events>
+ </ParticleSpawner>
+
+
+ <ParticleEmitter name=fireright position="200,0,0" source="Orxonox/fire3" active=false>
+ <events>
+ <activity>
+ <DistanceTrigger name=firetrigger1 position="200,0,0" distance=100 target="ControllableEntity" />
+ </activity>
+ </events>
+ </ParticleEmitter>
+ <ParticleEmitter name=fireleft position="-200,0,0" source="Orxonox/fire3" active=false>
+ <events>
+ <activity>
+ <DistanceTrigger name=firetrigger2 position="-200,0,0" distance=100 target="ControllableEntity" />
+ </activity>
+ </events>
+ </ParticleEmitter>
+ <ParticleEmitter name=firecenter position="0,0,0" source="Orxonox/fire3" active=false>
+ <events>
+ <activity>
+ <EventListener event=firetrigger1 />
+ <EventListener event=firetrigger2 />
+ </activity>
+ </events>
+ </ParticleEmitter>
+
+
+ <EventDispatcher>
+ <targets>
+ <EventTarget name=fireright />
+ <EventTarget name=firecenter />
+ <EventTarget name=fireleft />
+ </targets>
+ <events>
+ <activity>
+ <DistanceTrigger position="0,0,200" distance=100 target="ControllableEntity" />
+ </activity>
+ </events>
+ </EventDispatcher>
+
+
+ <Model position="0,50,0" scale=3 mesh="assff.mesh">
+ <events>
+ <visibility>
+ <DistanceTrigger position="0,50,0" distance=50 target="ControllableEntity" invert=1 />
+ </visibility>
+ </events>
+ </Model>
+
+
+ <Model position="0,0,200" scale=10 mesh="ast2.mesh" shadow=true />
+ <!--Model position="0,0,-200" scale=10 mesh="ast1.mesh" shadow=true /-->
+ <Model position="0,200,0" scale=10 mesh="ast3.mesh" shadow=true />
+ <Model position="0,-200,0" scale=10 mesh="ast4.mesh" shadow=true />
+ <Model position="200,0,0" scale=10 mesh="ast5.mesh" shadow=false />
+ <Model position="-200,0,0" scale=10 mesh="ast6.mesh" shadow=false />
+
+ <Model position="1000,-200,0" scale3D="1,100,100" mesh="ast1.mesh" />
+
+ <Model position="0, 0,-100" pitch=-90 roll=-90 scale=4 mesh="assff.mesh" />
+ <!--Model position="0,100,-100" pitch=-90 roll=-90 scale=4 mesh="pirate.mesh" />
+ <Model position="0,300,-100" pitch=-90 roll=-90 scale=4 mesh="spacecruiser.mesh" /-->
+
+ </Scene>
+</Level>
Property changes on: media/levels/sample4.oxw
___________________________________________________________________
Added: svn:eol-style
+ native
Modified: media/levels/spaceshiptemplates2.oxw
===================================================================
--- media/levels/spaceshiptemplates2.oxw 2009-03-23 10:27:59 UTC (rev 2041)
+++ media/levels/spaceshiptemplates2.oxw 2009-03-23 10:37:01 UTC (rev 2042)
@@ -1,94 +1,94 @@
-<Template name=spaceshipassff>
- <SpaceShip
- camerapositiontemplate = spaceshipassffcameras
-
- health = 100
- maxhealth = 200
- initialhealth = 100
-
- maxspeed = 150
- maxsecondaryspeed = 50
- maxrotation = 100
- transacc = 100
- rotacc = 140
- transdamp = 75
- >
- <attached>
- <Model position="0,0,0" yaw=90 pitch=-90 roll=0 scale=4 mesh="assff.mesh" />
- <!--Light position="0,0,20" diffuse="0,0,1" specular="0,0,1" type=point /-->
- <BlinkingBillboard position="17,-1.5,0" material="Examples/Flare" colour="1.0, 0.5, 0.3" amplitude=0.1 frequency=0.5 quadratic=1 />
- <BlinkingBillboard position="-17,-1.5,0" material="Examples/Flare" colour="0.5, 1.0, 0.3" amplitude=0.1 frequency=0.5 phase=180 quadratic=1 />
- <!--ParticleEmitter position="0,0,-100" source="Orxonox/smoke5" /-->
- </attached>
- <weaponslots>
- <WeaponSlot position="-15,-1.5,0" yaw=0 pitch=0 roll=0 />
- <WeaponSlot position="15,-1.5,0" yaw=0 pitch=0 roll=0 />
- <WeaponSlot position="0,2.5,5" yaw=0 pitch=0 roll=0 />
- </weaponslots>
- <weaponsets>
- <WeaponSet firemode=0 />
- <WeaponSet firemode=1 />
- </weaponsets>
- <weapons>
- <WeaponPack firemode=0>
- <LaserGun position="0,0,0" munitionType="LaserGunMunition" bulletLoadingTime="0.2" magazineLoadingTime="5.0" speed="1250" />
- <LaserGun position="0,0,0" munitionType="LaserGunMunition" bulletLoadingTime="0.2" magazineLoadingTime="5.0" speed="1250" />
- </WeaponPack>
- <WeaponPack firemode=1>
- <Fusion position="0,0,0" munitionType="LaserGunMunition" bulletLoadingTime="4" magazineLoadingTime="4" speed="500" />
- </WeaponPack>
- </weapons>
- </SpaceShip>
-</Template>
-
-<Template name=spaceshipassffcameras>
- <SpaceShip>
- <camerapositions>
- <CameraPosition position="0,10,40" />
- <CameraPosition position="0,150,-25" pitch=-90 />
- <CameraPosition position="0,0,-30" yaw=180 />
- <CameraPosition position="0,3,-14" yaw=0 />
- <CameraPosition position="-50,5,-8" yaw=-90 />
- <CameraPosition position="50,5,-8" yaw=90 />
- </camerapositions>
- </SpaceShip>
-</Template>
-
-
-<!--Template name=spaceshippirate>
- <SpaceShip
- health = 100
- maxhealth = 200
- initialhealth = 100
-
- maxspeed = 250
- maxsecondaryspeed = 50
- maxrotation = 100
- transacc = 200
- rotacc = 140
- transdamp = 75
- >
- <attached>
- <Model position="0,-10,-45" yaw=90 pitch=-90 roll=0 scale=4 mesh="pirate.mesh" />
- </attached>
- </SpaceShip>
-</Template>
-
-<Template name=spaceshipspacecruiser>
- <SpaceShip
- health = 100
- maxhealth = 200
- initialhealth = 100
-
- maxspeed = 250
- maxsecondaryspeed = 50
- maxrotation = 100
- transacc = 200
- rotacc = 140
- transdamp = 75
- >
- <attached>
- <Model position="8,-30,-120" yaw=90 pitch=-90 roll=0 scale=4 mesh="spacecruiser.mesh" />
- </attached>
- </SpaceShip>
-</Template-->
+<Template name=spaceshipassff>
+ <SpaceShip
+ camerapositiontemplate = spaceshipassffcameras
+
+ health = 100
+ maxhealth = 200
+ initialhealth = 100
+
+ maxspeed = 150
+ maxsecondaryspeed = 50
+ maxrotation = 100
+ transacc = 100
+ rotacc = 140
+ transdamp = 75
+ >
+ <attached>
+ <Model position="0,0,0" yaw=90 pitch=-90 roll=0 scale=4 mesh="assff.mesh" />
+ <!--Light position="0,0,20" diffuse="0,0,1" specular="0,0,1" type=point /-->
+ <BlinkingBillboard position="17,-1.5,0" material="Examples/Flare" colour="1.0, 0.5, 0.3" amplitude=0.1 frequency=0.5 quadratic=1 />
+ <BlinkingBillboard position="-17,-1.5,0" material="Examples/Flare" colour="0.5, 1.0, 0.3" amplitude=0.1 frequency=0.5 phase=180 quadratic=1 />
+ <!--ParticleEmitter position="0,0,-100" source="Orxonox/smoke5" /-->
+ </attached>
+ <weaponslots>
+ <WeaponSlot position="-15,-1.5,0" yaw=0 pitch=0 roll=0 />
+ <WeaponSlot position="15,-1.5,0" yaw=0 pitch=0 roll=0 />
+ <WeaponSlot position="0,2.5,5" yaw=0 pitch=0 roll=0 />
+ </weaponslots>
+ <weaponsets>
+ <WeaponSet firemode=0 />
+ <WeaponSet firemode=1 />
+ </weaponsets>
+ <weapons>
+ <WeaponPack firemode=0>
+ <LaserGun position="0,0,0" munitionType="LaserGunMunition" bulletLoadingTime="0.2" magazineLoadingTime="5.0" speed="1250" />
+ <LaserGun position="0,0,0" munitionType="LaserGunMunition" bulletLoadingTime="0.2" magazineLoadingTime="5.0" speed="1250" />
+ </WeaponPack>
+ <WeaponPack firemode=1>
+ <Fusion position="0,0,0" munitionType="LaserGunMunition" bulletLoadingTime="4" magazineLoadingTime="4" speed="500" />
+ </WeaponPack>
+ </weapons>
+ </SpaceShip>
+</Template>
+
+<Template name=spaceshipassffcameras>
+ <SpaceShip>
+ <camerapositions>
+ <CameraPosition position="0,10,40" />
+ <CameraPosition position="0,150,-25" pitch=-90 />
+ <CameraPosition position="0,0,-30" yaw=180 />
+ <CameraPosition position="0,3,-14" yaw=0 />
+ <CameraPosition position="-50,5,-8" yaw=-90 />
+ <CameraPosition position="50,5,-8" yaw=90 />
+ </camerapositions>
+ </SpaceShip>
+</Template>
+
+
+<!--Template name=spaceshippirate>
+ <SpaceShip
+ health = 100
+ maxhealth = 200
+ initialhealth = 100
+
+ maxspeed = 250
+ maxsecondaryspeed = 50
+ maxrotation = 100
+ transacc = 200
+ rotacc = 140
+ transdamp = 75
+ >
+ <attached>
+ <Model position="0,-10,-45" yaw=90 pitch=-90 roll=0 scale=4 mesh="pirate.mesh" />
+ </attached>
+ </SpaceShip>
+</Template>
+
+<Template name=spaceshipspacecruiser>
+ <SpaceShip
+ health = 100
+ maxhealth = 200
+ initialhealth = 100
+
+ maxspeed = 250
+ maxsecondaryspeed = 50
+ maxrotation = 100
+ transacc = 200
+ rotacc = 140
+ transdamp = 75
+ >
+ <attached>
+ <Model position="8,-30,-120" yaw=90 pitch=-90 roll=0 scale=4 mesh="spacecruiser.mesh" />
+ </attached>
+ </SpaceShip>
+</Template-->
Property changes on: media/levels/spaceshiptemplates2.oxw
___________________________________________________________________
Added: svn:eol-style
+ native
More information about the Orxonox-commit
mailing list