[Orxonox-commit 2292] orxonox r7007 - in code/branches/presentation3: data/levels src/modules/pickup
dafrick at orxonox.net
dafrick at orxonox.net
Sun May 30 12:21:25 CEST 2010
Author: dafrick
Date: 2010-05-29 20:41:19 +0200 (Sat, 29 May 2010)
New Revision: 7007
Added:
code/branches/presentation3/data/levels/pickups.oxw
Removed:
code/branches/presentation3/data/levels/pickup.oxw
code/branches/presentation3/data/levels/questsystem2.oxw
Modified:
code/branches/presentation3/data/levels/empty_level.oxw
code/branches/presentation3/data/levels/gametype_asteroids.oxw
code/branches/presentation3/data/levels/gametype_underattack.oxw
code/branches/presentation3/data/levels/mylevel.oxw
code/branches/presentation3/data/levels/presentation09.oxw
code/branches/presentation3/data/levels/presentation09b.oxw
code/branches/presentation3/data/levels/presentationHS09.oxw
code/branches/presentation3/data/levels/presentationHS09b.oxw
code/branches/presentation3/data/levels/presentationLOD.oxw
code/branches/presentation3/data/levels/presentationLODdif.oxw
code/branches/presentation3/data/levels/presentation_dm.oxw
code/branches/presentation3/data/levels/presentation_pong.oxw
code/branches/presentation3/data/levels/princessaeryn.oxw
code/branches/presentation3/data/levels/sound.oxw
code/branches/presentation3/data/levels/teambasematchlevel.oxw
code/branches/presentation3/data/levels/teamdeathmatch.oxw
code/branches/presentation3/data/levels/test_ghost.oxw
code/branches/presentation3/data/levels/tutorial.oxw
code/branches/presentation3/data/levels/waypoints.oxw
code/branches/presentation3/src/modules/pickup/Pickup.cc
Log:
Tested and cleaned all levels (except for the ones that someone is working on at the moment).
Two levels had old Pickups in them, they have been updated to work properly now.
All levels except one are working. The one that isn't is the presentationHS09b level, which crashes due to LOD.
Modified: code/branches/presentation3/data/levels/empty_level.oxw
===================================================================
--- code/branches/presentation3/data/levels/empty_level.oxw 2010-05-29 15:09:58 UTC (rev 7006)
+++ code/branches/presentation3/data/levels/empty_level.oxw 2010-05-29 18:41:19 UTC (rev 7007)
@@ -21,8 +21,9 @@
ambientlight = "0.8, 0.8, 0.8"
skybox = "Orxonox/Starbox"
>
-
+
<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,100" spawnclass=SpaceShip pawndesign=spaceshipassff />
+
</Scene>
</Level>
Modified: code/branches/presentation3/data/levels/gametype_asteroids.oxw
===================================================================
--- code/branches/presentation3/data/levels/gametype_asteroids.oxw 2010-05-29 15:09:58 UTC (rev 7006)
+++ code/branches/presentation3/data/levels/gametype_asteroids.oxw 2010-05-29 18:41:19 UTC (rev 7007)
@@ -14,31 +14,30 @@
<Template link=lodtemplate_default />
</templates>
-<Scene
- ambientlight = "0.5, 0.5, 0.5"
- skybox = "Orxonox/Starbox"
->
+ <Scene
+ ambientlight = "0.5, 0.5, 0.5"
+ skybox = "Orxonox/Starbox"
+ >
-<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" />
+ <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="-300,300,0" name="playerstart" direction="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
+ <?lua
+ for i = 1, 250, 1
+ do
+ j = math.random()
+ ?>
-<SpawnPoint position="-300,300,0" name="playerstart" direction="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
-
-
-<?lua
-for i = 1, 250, 1
-do
-j = math.random()
-?>
-
<MovableEntity
- position="<?lua print(math.random()* 15000 - 1000) ?>,<?lua print(math.random() * 12000 - 4000) ?>,<?lua print(math.random() * 12000 - 4000) ?>" collisionType=dynamic
- linearDamping=0.8
- angularDamping=0
- scale=<?lua print(j * 150)?>
- collisiondamage=1
- enablecollisiondamage=true>
+ position = "<?lua print(math.random()* 15000 - 1000) ?>,<?lua print(math.random() * 12000 - 4000) ?>,<?lua print(math.random() * 12000 - 4000) ?>"
+ collisionType = dynamic
+ linearDamping = 0.8
+ angularDamping = 0
+ scale = <?lua print(j * 150)?>
+ collisiondamage = 1
+ enablecollisiondamage = true
+ >
<attached>
<Model mass=<?lua print(j * 1000) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
</attached>
@@ -46,413 +45,414 @@
<SphereCollisionShape radius="<?lua print(j * 350) ?>" />
</collisionShapes>
</MovableEntity>
-<?lua
-end
-?>
+ <?lua
+ end
+ ?>
+
<!--
-<MovableEntity position="0,0,0" collisionType=dynamic scale=5 linearDamping=0.8 angularDamping=0 collisiondamage=0.005 enablecollisiondamage=true>
- <attached>
- <Model mass=100 mesh="ast1.mesh" />
- </attached>
- <collisionShapes>
- <SphereCollisionShape radius=11.75 />
- </collisionShapes>
-</MovableEntity>
+ <MovableEntity position="0,0,0" collisionType=dynamic scale=5 linearDamping=0.8 angularDamping=0 collisiondamage=0.005 enablecollisiondamage=true>
+ <attached>
+ <Model mass=100 mesh="ast1.mesh" />
+ </attached>
+ <collisionShapes>
+ <SphereCollisionShape radius=11.75 />
+ </collisionShapes>
+ </MovableEntity>
-<MovableEntity position="0,300,0" scale=10 collisionType=dynamic linearDamping=0.8 angularDamping=0 collisiondamage=0.005 enablecollisiondamage=true>
- <attached>
- <Model mass=100 mesh="ast1.mesh" />
- </attached>
- <collisionShapes>
- <SphereCollisionShape radius=22.5 />
- </collisionShapes>
-</MovableEntity>
+ <MovableEntity position="0,300,0" scale=10 collisionType=dynamic linearDamping=0.8 angularDamping=0 collisiondamage=0.005 enablecollisiondamage=true>
+ <attached>
+ <Model mass=100 mesh="ast1.mesh" />
+ </attached>
+ <collisionShapes>
+ <SphereCollisionShape radius=22.5 />
+ </collisionShapes>
+ </MovableEntity>
-<MovableEntity position="0,600,0" scale=34 collisionType=dynamic linearDamping=0.8 angularDamping=0 collisiondamage=0.005 enablecollisiondamage=true>
- <attached>
- <Model mass=100 mesh="ast1.mesh" />
- </attached>
- <collisionShapes>
- <SphereCollisionShape radius=76.5 />
- </collisionShapes>
-</MovableEntity>
+ <MovableEntity position="0,600,0" scale=34 collisionType=dynamic linearDamping=0.8 angularDamping=0 collisiondamage=0.005 enablecollisiondamage=true>
+ <attached>
+ <Model mass=100 mesh="ast1.mesh" />
+ </attached>
+ <collisionShapes>
+ <SphereCollisionShape radius=76.5 />
+ </collisionShapes>
+ </MovableEntity>
-<MovableEntity position="0,1200,0" scale=80 collisionType=dynamic linearDamping=0.8 angularDamping=0 collisiondamage=0.005 enablecollisiondamage=true>
- <attached>
- <Model mass=100 mesh="ast1.mesh" />
- </attached>
- <collisionShapes>
- <SphereCollisionShape radius=200 />
- </collisionShapes>
-</MovableEntity>
+ <MovableEntity position="0,1200,0" scale=80 collisionType=dynamic linearDamping=0.8 angularDamping=0 collisiondamage=0.005 enablecollisiondamage=true>
+ <attached>
+ <Model mass=100 mesh="ast1.mesh" />
+ </attached>
+ <collisionShapes>
+ <SphereCollisionShape radius=200 />
+ </collisionShapes>
+ </MovableEntity>
-->
-<SpaceShip position="2000,200,0" lookat="0,0,0" >
- <templates>
- <Template link=spaceshipassff />
- </templates>
- <controller>
- <AIController />
- </controller>
-</SpaceShip>
+ <SpaceShip position="2000,200,0" lookat="0,0,0" >
+ <templates>
+ <Template link=spaceshipassff />
+ </templates>
+ <controller>
+ <AIController />
+ </controller>
+ </SpaceShip>
-<SpaceShip position="8000,300,700" lookat="0,0,0" >
- <templates>
- <Template link=spaceshipassff />
- </templates>
- <controller>
- <AIController />
- </controller>
-</SpaceShip>
+ <SpaceShip position="8000,300,700" lookat="0,0,0" >
+ <templates>
+ <Template link=spaceshipassff />
+ </templates>
+ <controller>
+ <AIController />
+ </controller>
+ </SpaceShip>
-<SpaceShip position="10200,400,-600" lookat="0,0,0" >
- <templates>
- <Template link=spaceshipassff />
- </templates>
- <controller>
- <AIController />
- </controller>
-</SpaceShip>
+ <SpaceShip position="10200,400,-600" lookat="0,0,0" >
+ <templates>
+ <Template link=spaceshipassff />
+ </templates>
+ <controller>
+ <AIController />
+ </controller>
+ </SpaceShip>
-<ForceField position="200,300,-500" direction="0,0,1" diameter=500 velocity=120>
- <attached>
- <ParticleEmitter source="Orxonox/ForceFieldPurpleSmall" startdelay=0 />
- </attached>
-</ForceField>
+ <ForceField position="200,300,-500" direction="0,0,1" diameter=500 velocity=120>
+ <attached>
+ <ParticleEmitter source="Orxonox/ForceFieldPurpleSmall" startdelay=0 />
+ </attached>
+ </ForceField>
- <ForceField position="2200,-300,1200" direction="1,0.3,-0.7" diameter=800 velocity=200>
- <attached>
- <ParticleEmitter source="Orxonox/ForceFieldBlueBig" startdelay=0 />
- </attached>
-</ForceField>
+ <ForceField position="2200,-300,1200" direction="1,0.3,-0.7" diameter=800 velocity=200>
+ <attached>
+ <ParticleEmitter source="Orxonox/ForceFieldBlueBig" startdelay=0 />
+ </attached>
+ </ForceField>
- <ForceField position="8600,1400,500" direction="-1,-1,-1" diameter=500 velocity=400>
- <attached>
- <ParticleEmitter source="Orxonox/ForceFieldGreenSmall" startdelay=0 />
- </attached>
-</ForceField>
+ <ForceField position="8600,1400,500" direction="-1,-1,-1" diameter=500 velocity=400>
+ <attached>
+ <ParticleEmitter source="Orxonox/ForceFieldGreenSmall" startdelay=0 />
+ </attached>
+ </ForceField>
- <ForceField position="11800,500,-2600" direction="-1,0,1" diameter=900 velocity=300>
- <attached>
- <ParticleEmitter source="Orxonox/ForceFieldPurpleBig" startdelay=0 />
- </attached>
-</ForceField>
+ <ForceField position="11800,500,-2600" direction="-1,0,1" diameter=900 velocity=300>
+ <attached>
+ <ParticleEmitter source="Orxonox/ForceFieldPurpleBig" startdelay=0 />
+ </attached>
+ </ForceField>
-<CheckPoint name=trigger1 position="-300,300,0" scale=1 isdestination=false isfirst=true stayactive=true distance=10 addtime=13 />
+ <CheckPoint name=trigger1 position="-300,300,0" scale=1 isdestination=false isfirst=true stayactive=true distance=10 addtime=13 />
-<CheckPoint name=trigger2 position="2200,600,0" scale=3 isdestination=false stayactive=true distance=100 addtime=10>
- <events>
- <activity>
- <EventListener event=trigger1 />
- </activity>
- </events>
- <attached>
- <Billboard material="Flares/lensflare" colour="1,0,0">
+ <CheckPoint name=trigger2 position="2200,600,0" scale=3 isdestination=false stayactive=true distance=100 addtime=10>
<events>
- <visibility>
- <EventTrigger invert=true>
- <events>
- <trigger>
- <EventListener event=trigger1 />
- </trigger>
- </events>
- </EventTrigger>
- </visibility>
+ <activity>
+ <EventListener event=trigger1 />
+ </activity>
</events>
- </Billboard>
- <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0">
+ <attached>
+ <Billboard material="Flares/lensflare" colour="1,0,0">
+ <events>
+ <visibility>
+ <EventTrigger invert=true>
+ <events>
+ <trigger>
+ <EventListener event=trigger1 />
+ </trigger>
+ </events>
+ </EventTrigger>
+ </visibility>
+ </events>
+ </Billboard>
+ <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0">
+ <events>
+ <visibility>
+ <EventTrigger>
+ <events>
+ <trigger>
+ <EventListener event=trigger1 />
+ </trigger>
+ </events>
+ <EventTrigger invert=true>
+ <events>
+ <trigger>
+ <EventListener event=trigger2 />
+ </trigger>
+ </events>
+ </EventTrigger>
+ </EventTrigger>
+ </visibility>
+ </events>
+ </BlinkingBillboard>
+ <Billboard material="Flares/lensflare" colour="0,1,0">
+ <events>
+ <visibility>
+ <EventListener event=trigger2 />
+ </visibility>
+ </events>
+ </Billboard>
+ </attached>
+ </CheckPoint>
+
+
+ <CheckPoint name=trigger3 position="4100,0,400" scale=3 isdestination=false stayactive=true distance=100 addtime=9>
<events>
- <visibility>
- <EventTrigger>
- <events>
- <trigger>
- <EventListener event=trigger1 />
- </trigger>
- </events>
- <EventTrigger invert=true>
- <events>
- <trigger>
- <EventListener event=trigger2 />
- </trigger>
- </events>
- </EventTrigger>
- </EventTrigger>
- </visibility>
- </events>
- </BlinkingBillboard>
- <Billboard material="Flares/lensflare" colour="0,1,0">
- <events>
- <visibility>
+ <activity>
<EventListener event=trigger2 />
- </visibility>
+ </activity>
</events>
- </Billboard>
- </attached>
-</CheckPoint>
+ <attached>
+ <Billboard material="Flares/lensflare" colour="1,0,0">
+ <events>
+ <visibility>
+ <EventTrigger invert=true>
+ <events>
+ <trigger>
+ <EventListener event=trigger2 />
+ </trigger>
+ </events>
+ </EventTrigger>
+ </visibility>
+ </events>
+ </Billboard>
+ <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0">
+ <events>
+ <visibility>
+ <EventTrigger>
+ <events>
+ <trigger>
+ <EventListener event=trigger2 />
+ </trigger>
+ </events>
+ <EventTrigger invert=true>
+ <events>
+ <trigger>
+ <EventListener event=trigger3 />
+ </trigger>
+ </events>
+ </EventTrigger>
+ </EventTrigger>
+ </visibility>
+ </events>
+ </BlinkingBillboard>
+ <Billboard material="Flares/lensflare" colour="0,1,0">
+ <events>
+ <visibility>
+ <EventListener event=trigger3 />
+ </visibility>
+ </events>
+ </Billboard>
+ </attached>
+ </CheckPoint>
-<CheckPoint name=trigger3 position="4100,0,400" scale=3 isdestination=false stayactive=true distance=100 addtime=9>
- <events>
- <activity>
- <EventListener event=trigger2 />
- </activity>
- </events>
- <attached>
- <Billboard material="Flares/lensflare" colour="1,0,0">
+ <CheckPoint name=trigger4 position="5600,400,0" scale=3 isdestination=false stayactive=true distance=100 addtime=9>
<events>
- <visibility>
- <EventTrigger invert=true>
- <events>
- <trigger>
- <EventListener event=trigger2 />
- </trigger>
- </events>
- </EventTrigger>
- </visibility>
- </events>
- </Billboard>
- <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0">
- <events>
- <visibility>
- <EventTrigger>
- <events>
- <trigger>
- <EventListener event=trigger2 />
- </trigger>
- </events>
- <EventTrigger invert=true>
- <events>
- <trigger>
- <EventListener event=trigger3 />
- </trigger>
- </events>
- </EventTrigger>
- </EventTrigger>
- </visibility>
- </events>
- </BlinkingBillboard>
- <Billboard material="Flares/lensflare" colour="0,1,0">
- <events>
- <visibility>
+ <activity>
<EventListener event=trigger3 />
- </visibility>
+ </activity>
</events>
- </Billboard>
- </attached>
-</CheckPoint>
+ <attached>
+ <Billboard material="Flares/lensflare" colour="1,0,0">
+ <events>
+ <visibility>
+ <EventTrigger invert=true>
+ <events>
+ <trigger>
+ <EventListener event=trigger3 />
+ </trigger>
+ </events>
+ </EventTrigger>
+ </visibility>
+ </events>
+ </Billboard>
+ <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0">
+ <events>
+ <visibility>
+ <EventTrigger>
+ <events>
+ <trigger>
+ <EventListener event=trigger3 />
+ </trigger>
+ </events>
+ <EventTrigger invert=true>
+ <events>
+ <trigger>
+ <EventListener event=trigger4 />
+ </trigger>
+ </events>
+ </EventTrigger>
+ </EventTrigger>
+ </visibility>
+ </events>
+ </BlinkingBillboard>
+ <Billboard material="Flares/lensflare" colour="0,1,0">
+ <events>
+ <visibility>
+ <EventListener event=trigger4 />
+ </visibility>
+ </events>
+ </Billboard>
+ </attached>
+ </CheckPoint>
-<CheckPoint name=trigger4 position="5600,400,0" scale=3 isdestination=false stayactive=true distance=100 addtime=9>
- <events>
- <activity>
- <EventListener event=trigger3 />
- </activity>
- </events>
- <attached>
- <Billboard material="Flares/lensflare" colour="1,0,0">
+ <CheckPoint name=trigger5 position="7200,600,-200" scale=3 isdestination=false stayactive=true distance=100 addtime=8>
<events>
- <visibility>
- <EventTrigger invert=true>
- <events>
- <trigger>
- <EventListener event=trigger3 />
- </trigger>
- </events>
- </EventTrigger>
- </visibility>
- </events>
- </Billboard>
- <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0">
- <events>
- <visibility>
- <EventTrigger>
- <events>
- <trigger>
- <EventListener event=trigger3 />
- </trigger>
- </events>
- <EventTrigger invert=true>
- <events>
- <trigger>
- <EventListener event=trigger4 />
- </trigger>
- </events>
- </EventTrigger>
- </EventTrigger>
- </visibility>
- </events>
- </BlinkingBillboard>
- <Billboard material="Flares/lensflare" colour="0,1,0">
- <events>
- <visibility>
+ <activity>
<EventListener event=trigger4 />
- </visibility>
+ </activity>
</events>
- </Billboard>
- </attached>
-</CheckPoint>
+ <attached>
+ <Billboard material="Flares/lensflare" colour="1,0,0">
+ <events>
+ <visibility>
+ <EventTrigger invert=true>
+ <events>
+ <trigger>
+ <EventListener event=trigger4 />
+ </trigger>
+ </events>
+ </EventTrigger>
+ </visibility>
+ </events>
+ </Billboard>
+ <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0">
+ <events>
+ <visibility>
+ <EventTrigger>
+ <events>
+ <trigger>
+ <EventListener event=trigger4 />
+ </trigger>
+ </events>
+ <EventTrigger invert=true>
+ <events>
+ <trigger>
+ <EventListener event=trigger5 />
+ </trigger>
+ </events>
+ </EventTrigger>
+ </EventTrigger>
+ </visibility>
+ </events>
+ </BlinkingBillboard>
+ <Billboard material="Flares/lensflare" colour="0,1,0">
+ <events>
+ <visibility>
+ <EventListener event=trigger5 />
+ </visibility>
+ </events>
+ </Billboard>
+ </attached>
+ </CheckPoint>
-<CheckPoint name=trigger5 position="7200,600,-200" scale=3 isdestination=false stayactive=true distance=100 addtime=8>
- <events>
- <activity>
- <EventListener event=trigger4 />
- </activity>
- </events>
- <attached>
- <Billboard material="Flares/lensflare" colour="1,0,0">
+ <CheckPoint name=trigger6 position="9200, 800,-800" scale=3 isdestination=false stayactive=true distance=100 addtime=10>
<events>
- <visibility>
- <EventTrigger invert=true>
- <events>
- <trigger>
- <EventListener event=trigger4 />
- </trigger>
- </events>
- </EventTrigger>
- </visibility>
- </events>
- </Billboard>
- <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0">
- <events>
- <visibility>
- <EventTrigger>
- <events>
- <trigger>
- <EventListener event=trigger4 />
- </trigger>
- </events>
- <EventTrigger invert=true>
- <events>
- <trigger>
- <EventListener event=trigger5 />
- </trigger>
- </events>
- </EventTrigger>
- </EventTrigger>
- </visibility>
- </events>
- </BlinkingBillboard>
- <Billboard material="Flares/lensflare" colour="0,1,0">
- <events>
- <visibility>
+ <activity>
<EventListener event=trigger5 />
- </visibility>
+ </activity>
</events>
- </Billboard>
- </attached>
-</CheckPoint>
+ <attached>
+ <Billboard material="Flares/lensflare" colour="1,0,0">
+ <events>
+ <visibility>
+ <EventTrigger invert=true>
+ <events>
+ <trigger>
+ <EventListener event=trigger5 />
+ </trigger>
+ </events>
+ </EventTrigger>
+ </visibility>
+ </events>
+ </Billboard>
+ <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0">
+ <events>
+ <visibility>
+ <EventTrigger>
+ <events>
+ <trigger>
+ <EventListener event=trigger5 />
+ </trigger>
+ </events>
+ <EventTrigger invert=true>
+ <events>
+ <trigger>
+ <EventListener event=trigger6 />
+ </trigger>
+ </events>
+ </EventTrigger>
+ </EventTrigger>
+ </visibility>
+ </events>
+ </BlinkingBillboard>
+ <Billboard material="Flares/lensflare" colour="0,1,0">
+ <events>
+ <visibility>
+ <EventListener event=trigger6 />
+ </visibility>
+ </events>
+ </Billboard>
+ </attached>
+ </CheckPoint>
-<CheckPoint name=trigger6 position="9200, 800,-800" scale=3 isdestination=false stayactive=true distance=100 addtime=10>
- <events>
- <activity>
- <EventListener event=trigger5 />
- </activity>
- </events>
- <attached>
- <Billboard material="Flares/lensflare" colour="1,0,0">
- <events>
- <visibility>
- <EventTrigger invert=true>
- <events>
- <trigger>
- <EventListener event=trigger5 />
- </trigger>
- </events>
- </EventTrigger>
- </visibility>
- </events>
- </Billboard>
- <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0">
- <events>
- <visibility>
- <EventTrigger>
- <events>
- <trigger>
- <EventListener event=trigger5 />
- </trigger>
- </events>
- <EventTrigger invert=true>
+ <Model position="11200,400,-1800" scale=10 pitch=-90 mesh="Carrier.mesh">
+ <attached>
+ <CheckPoint position="-10,0,0" name=trigger7 scale=0.6 isdestination=true stayactive=true distance=100>
+ <events>
+ <activity>
+ <EventListener event=trigger6 />
+ </activity>
+ </events>
+ <attached>
+ <Billboard material="Flares/lensflare" colour="1,0,0">
<events>
- <trigger>
- <EventListener event=trigger6 />
- </trigger>
+ <visibility>
+ <EventTrigger invert=true>
+ <events>
+ <trigger>
+ <EventListener event=trigger6 />
+ </trigger>
+ </events>
+ </EventTrigger>
+ </visibility>
</events>
- </EventTrigger>
- </EventTrigger>
- </visibility>
- </events>
- </BlinkingBillboard>
- <Billboard material="Flares/lensflare" colour="0,1,0">
- <events>
- <visibility>
- <EventListener event=trigger6 />
- </visibility>
- </events>
- </Billboard>
- </attached>
-</CheckPoint>
-
-
-<Model position="11200,400,-1800" scale=10 pitch=-90 mesh="Carrier.mesh">
- <attached>
- <CheckPoint position="-10,0,0" name=trigger7 scale=0.6 isdestination=true stayactive=true distance=100>
- <events>
- <activity>
- <EventListener event=trigger6 />
- </activity>
- </events>
- <attached>
- <Billboard material="Flares/lensflare" colour="1,0,0">
- <events>
- <visibility>
- <EventTrigger invert=true>
- <events>
- <trigger>
- <EventListener event=trigger6 />
- </trigger>
- </events>
- </EventTrigger>
- </visibility>
- </events>
- </Billboard>
- <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0">
- <events>
- <visibility>
- <EventTrigger>
- <events>
- <trigger>
- <EventListener event=trigger6 />
- </trigger>
- </events>
- <EventTrigger invert=true>
+ </Billboard>
+ <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0">
<events>
- <trigger>
+ <visibility>
+ <EventTrigger>
+ <events>
+ <trigger>
+ <EventListener event=trigger6 />
+ </trigger>
+ </events>
+ <EventTrigger invert=true>
+ <events>
+ <trigger>
+ <EventListener event=trigger7 />
+ </trigger>
+ </events>
+ </EventTrigger>
+ </EventTrigger>
+ </visibility>
+ </events>
+ </BlinkingBillboard>
+ <Billboard material="Flares/lensflare" colour="0,1,0">
+ <events>
+ <visibility>
<EventListener event=trigger7 />
- </trigger>
+ </visibility>
</events>
- </EventTrigger>
- </EventTrigger>
- </visibility>
- </events>
- </BlinkingBillboard>
- <Billboard material="Flares/lensflare" colour="0,1,0">
- <events>
- <visibility>
- <EventListener event=trigger7 />
- </visibility>
- </events>
- </Billboard>
- </attached>
-</CheckPoint>
- </attached>
-</Model>
+ </Billboard>
+ </attached>
+ </CheckPoint>
+ </attached>
+ </Model>
</Scene>
</Level>
Modified: code/branches/presentation3/data/levels/gametype_underattack.oxw
===================================================================
--- code/branches/presentation3/data/levels/gametype_underattack.oxw 2010-05-29 15:09:58 UTC (rev 7006)
+++ code/branches/presentation3/data/levels/gametype_underattack.oxw 2010-05-29 18:41:19 UTC (rev 7007)
@@ -22,130 +22,130 @@
<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, 30, 1 do ?>
- <MovableEntity
- position="<?lua print(math.random() * 10000 - 5000) ?>, <?lua print(math.random() * 10000 - 5000) ?>, <?lua print(math.random() * 10000 - 5000) ?>"
- velocity="<?lua print(math.random() * 500 - 250) ?>, <?lua print(math.random() * 500 - 250) ?>, <?lua print(math.random() * 500 - 250) ?>"
- >
- <attached>
- <Model
- <?lua x = math.random() * 150 + 30 ?>
- scale="<?lua print(x) ?>"
- mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh"
- position="0,0,0"
- />
- </attached>
- <collisionShapes>
- <SphereCollisionShape radius=<?lua print(x) ?> position="0,0,0" />
- </collisionShapes>
- </MovableEntity>
+ <MovableEntity
+ position="<?lua print(math.random() * 10000 - 5000) ?>, <?lua print(math.random() * 10000 - 5000) ?>, <?lua print(math.random() * 10000 - 5000) ?>"
+ velocity="<?lua print(math.random() * 500 - 250) ?>, <?lua print(math.random() * 500 - 250) ?>, <?lua print(math.random() * 500 - 250) ?>"
+ >
+ <attached>
+ <Model
+ <?lua x = math.random() * 150 + 30 ?>
+ scale="<?lua print(x) ?>"
+ mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh"
+ position="0,0,0"
+ />
+ </attached>
+ <collisionShapes>
+ <SphereCollisionShape radius=<?lua print(x) ?> position="0,0,0" />
+ </collisionShapes>
+ </MovableEntity>
<?lua end ?>
<Destroyer
- position = "100,150,0"
- collisionType = dynamic
- mass = 100000
- velocity = "-35,0,0"
- angularDamping = 0.9999999
- health = 10000
- maxhealth = 10000
- initialhealth = 10000
+ position = "100,150,0"
+ collisionType = dynamic
+ mass = 100000
+ velocity = "-35,0,0"
+ angularDamping = 0.9999999
+ health = 10000
+ maxhealth = 10000
+ initialhealth = 10000
>
- <attached>
- <TeamSpawnPoint team=1 position="150,0,7" direction="-1,0,0" roll=90 yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
- <TeamSpawnPoint team=1 position="0,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
- <TeamSpawnPoint team=1 position="-50,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
- <TeamSpawnPoint team=1 position="100,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
- <TeamSpawnPoint team=1 position="50,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
- <?lua for i = 1, 100, 1 do ?>
- <TeamSpawnPoint
- team=0
- position="<?lua print((math.random() * 500 + 500) * (math.floor(math.random() + 0.5) * 2 - 1)) ?>,<?lua print((math.random() * 500 + 500) * (math.floor(math.random() + 0.5) * 2 - 1)) ?>,<?lua print((math.random() * 500 + 500) * (math.floor(math.random() + 0.5) * 2 - 1)) ?>"
- lookat="0,0,0"
- spawnclass=SpaceShip
- pawndesign=spaceshipassff
- />
+ <attached>
+ <TeamSpawnPoint team=1 position="150,0,7" direction="-1,0,0" roll=90 yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
+ <TeamSpawnPoint team=1 position="0,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
+ <TeamSpawnPoint team=1 position="-50,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
+ <TeamSpawnPoint team=1 position="100,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
+ <TeamSpawnPoint team=1 position="50,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
+ <?lua for i = 1, 100, 1 do ?>
+ <TeamSpawnPoint
+ team=0
+ position="<?lua print((math.random() * 500 + 500) * (math.floor(math.random() + 0.5) * 2 - 1)) ?>,<?lua print((math.random() * 500 + 500) * (math.floor(math.random() + 0.5) * 2 - 1)) ?>,<?lua print((math.random() * 500 + 500) * (math.floor(math.random() + 0.5) * 2 - 1)) ?>"
+ lookat="0,0,0"
+ spawnclass=SpaceShip
+ pawndesign=spaceshipassff
+ />
- <!--more spawnpoints for team1-->
- <!--
- <TeamSpawnPoint
- team=1 position="<?lua print((math.random() * 500 + 500)) ?>,<?lua print((math.random() * 500 + 500) ) ?>,<?lua print((math.random() * 500 + 500)) ?>"
- lookat="0,0,0"
- spawnclass=SpaceShip
- pawndesign=spaceshipassff
- />-->
- <?lua end ?>
+ <!--more spawnpoints for team1-->
+ <!--
+ <TeamSpawnPoint
+ team=1 position="<?lua print((math.random() * 500 + 500)) ?>,<?lua print((math.random() * 500 + 500) ) ?>,<?lua print((math.random() * 500 + 500)) ?>"
+ lookat="0,0,0"
+ spawnclass=SpaceShip
+ pawndesign=spaceshipassff
+ />-->
+ <?lua end ?>
- <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
- />
+ <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 ?>
+ <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>
+ <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>
<GlobalShader compositor="Bloom" visible=false>
@@ -162,5 +162,6 @@
<SphereCollisionShape radius="20" />
</collisionShapes>
</StaticEntity>
+
</Scene>
</Level>
Modified: code/branches/presentation3/data/levels/mylevel.oxw
===================================================================
--- code/branches/presentation3/data/levels/mylevel.oxw 2010-05-29 15:09:58 UTC (rev 7006)
+++ code/branches/presentation3/data/levels/mylevel.oxw 2010-05-29 18:41:19 UTC (rev 7007)
@@ -1,10 +1,10 @@
<?lua
- include("stats.oxo")
- include("hudtemplates3.oxo")
- include("underattackhud.oxo")
- include("templates/spaceship_assff.oxt")
- include("templates/spaceship_pirate.oxt")
- include("templates/spaceship_Transporter.oxt")
+ include("stats.oxo")
+ include("hudtemplates3.oxo")
+ include("underattackhud.oxo")
+ include("templates/spaceship_assff.oxt")
+ include("templates/spaceship_pirate.oxt")
+ include("templates/spaceship_Transporter.oxt")
?>
<Template name=spaceshipassffplayer>
@@ -43,9 +43,10 @@
<BoxCollisionShape position="0,0.1,-11" halfExtents="2.2, 1.8, 6" />
<BoxCollisionShape position="0,0.1,-19" halfExtents="1.4, 1, 2" />
</collisionShapes>
-<?lua
- include("includes/weaponsettings3.oxi")
-?>
+
+ <?lua
+ include("includes/weaponsettings3.oxi")
+ ?>
</SpaceShip>
</Template>
@@ -56,87 +57,84 @@
gametype=TeamDeathmatch
>
- <!-- Ausgang: Szene ===> ambientlight/skybox -->
- <Scene
- ambientlight="0.8,0.8,0.8"
- skybox="Orxonox/skypanoramagen1"
- >
+ <!-- Ausgang: Szene ===> ambientlight/skybox -->
+ <Scene
+ ambientlight="0.8,0.8,0.8"
+ skybox="Orxonox/skypanoramagen1"
+ >
- <!--Light: noch zu aendern -->
- <Light type=directional position="0,0,0" direction="1000, 0, 0" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 1.0, 0.9" />
+ <!--Light: noch zu aendern -->
+ <Light type=directional position="0,0,0" direction="1000, 0, 0" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 1.0, 0.9" />
+ <SpawnPoint position="0,0,0" direction="1000,0,0" spawnclass=SpaceShip pawndesign=spaceshipassffplayer team=0/>
- <SpawnPoint position="0,0,0" direction="1000,0,0" spawnclass=SpaceShip pawndesign=spaceshipassffplayer team=0/>
-
<!--
- <EventTrigger name="testdestroy" activations=1 stayactive="true">
- <events>
- <trigger>
- <SpaceShip position="2000,0,3000" lookat="0,0,0" team=1>
- <templates>
- <Template link=spaceshippirate/>
- </templates>
- <controller>
- <AIController activity="false"/>
- </controller>
- </SpaceShip>
- </trigger>
- </events>
- </EventTrigger>
+ <EventTrigger name="testdestroy" activations=1 stayactive="true">
+ <events>
+ <trigger>
+ <SpaceShip position="2000,0,3000" lookat="0,0,0" team=1>
+ <templates>
+ <Template link=spaceshippirate/>
+ </templates>
+ <controller>
+ <AIController activity="false"/>
+ </controller>
+ </SpaceShip>
+ </trigger>
+ </events>
+ </EventTrigger>
-->
- <SpaceShip position="1000,0,200" lookat="0,0,0">
- <templates>
- <Template link=spaceshipassff/>
- </templates>
- <controller>
- <AIController active="false"/>
- </controller>
- </SpaceShip>
+ <SpaceShip position="1000,0,200" lookat="0,0,0">
+ <templates>
+ <Template link=spaceshipassff/>
+ </templates>
+ <controller>
+ <AIController active="false"/>
+ </controller>
+ </SpaceShip>
-<DistanceTrigger name="triggername" position="1000,0,0" distance="500" target="DistanceTriggerBeacon" targetname="test" activations=1 stayactive="true" />
+ <DistanceTrigger name="triggername" position="1000,0,0" distance="500" target="DistanceTriggerBeacon" targetname="test" activations=1 stayactive="true" />
- <SpaceShip position="1000,0,0" lookat="2000,0,0" >
- <templates>
- <Template link=spaceshipassff />
- </templates>
- <controller>
- <WaypointPatrolController alertnessradius=5000 team=0 active="false" >
- <waypoints>
- <Model mesh="cube.mesh" scale=0 position="2000,0,0" />
- </waypoints>
- <events>
- <activity>
- <EventListener event="triggername" />
- </activity>
- </events>
- </WaypointPatrolController>
- </controller>
- </SpaceShip>
- </Scene>
-</Level>
+ <SpaceShip position="1000,0,0" lookat="2000,0,0" >
+ <templates>
+ <Template link=spaceshipassff />
+ </templates>
+ <controller>
+ <WaypointPatrolController alertnessradius=5000 team=0 active="false" >
+ <waypoints>
+ <Model mesh="cube.mesh" scale=0 position="2000,0,0" />
+ </waypoints>
+ <events>
+ <activity>
+ <EventListener event="triggername" />
+ </activity>
+ </events>
+ </WaypointPatrolController>
+ </controller>
+ </SpaceShip>
-
-
<!-- ZUM ERSTELLEN DER DESTROYTRIGGER
-<EventTrigger name="triggername" activations=1 stayactive=true >
- <events>
- <trigger>
- <Spaceship />
- </trigger>
- </events>
-</EventTrigger>
+ <EventTrigger name="triggername" activations=1 stayactive=true >
+ <events>
+ <trigger>
+ <Spaceship />
+ </trigger>
+ </events>
+ </EventTrigger>
-<Spaceship>
- <controller>
- <SomeController activity="false">
- <events>
- <activity>
- <EventListener event="triggername" />
- </activity>
- </events>
- </SomeController>
- </controller>
-</Spacehip>
-
+ <Spaceship>
+ <controller>
+ <SomeController activity="false">
+ <events>
+ <activity>
+ <EventListener event="triggername" />
+ </activity>
+ </events>
+ </SomeController>
+ </controller>
+ </Spacehip>
-->
+
+ </Scene>
+</Level>
Deleted: code/branches/presentation3/data/levels/pickup.oxw
===================================================================
--- code/branches/presentation3/data/levels/pickup.oxw 2010-05-29 15:09:58 UTC (rev 7006)
+++ code/branches/presentation3/data/levels/pickup.oxw 2010-05-29 18:41:19 UTC (rev 7007)
@@ -1,144 +0,0 @@
-<?lua
- include("stats.oxo")
- include("hudtemplates3.oxo")
-?>
-
-<?lua
- include("templates/spaceship_assff.oxt")
- include("templates/spaceship_pirate.oxt")
- include("templates/pickup_representation_templates.oxt")
-?>
-
-<Level
- name = "Sample"
- description = "Just a few tests"
->
- <Scene
- ambientlight = "0.8, 0.8, 0.8"
- skybox = "Orxonox/Starbox"
- >
-
-<?lua
- include("includes/pickups.oxi")
-?>
-
- <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=spaceshipassff />
-
-
- <!-- Shield pickups -->
-
- <PickupSpawner position="-25,-25,-100" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
- <pickup>
- <ShieldPickup template=smallshieldpickup />
- </pickup>
- </PickupSpawner>
-
- <PickupSpawner position="0,-25,-100" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
- <pickup>
- <ShieldPickup template=mediumshieldpickup />
- </pickup>
- </PickupSpawner>
-
- <PickupSpawner position="25,-25,-100" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
- <pickup>
- <ShieldPickup template=hugeshieldpickup />
- </pickup>
- </PickupSpawner>
-
- <!-- Health pickups -->
-
- <PickupSpawner position="-25,0,-100" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
- <pickup>
- <HealthPickup template=smallhealthpickup />
- </pickup>
- </PickupSpawner>
-
- <PickupSpawner position="0,0,-100" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
- <pickup>
- <HealthPickup template=mediumhealthpickup />
- </pickup>
- </PickupSpawner>
-
- <PickupSpawner position="25,0,-100" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
- <pickup>
- <HealthPickup template=hugehealthpickup />
- </pickup>
- </PickupSpawner>
-
- <PickupSpawner position="50,0,-100" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
- <pickup>
- <HealthPickup template=crazyhealthpickup />
- </pickup>
- </PickupSpawner>
-
- <!-- Speed pickups -->
-
- <PickupSpawner position="-25,25,-100" triggerDistance="10" respawnTime="10" maxSpawnedItems="99">
- <pickup>
- <SpeedPickup template=smallspeedpickup />
- </pickup>
- </PickupSpawner>
-
- <PickupSpawner position="0,25,-100" triggerDistance="10" respawnTime="10" maxSpawnedItems="99">
- <pickup>
- <SpeedPickup template=mediumspeedpickup />
- </pickup>
- </PickupSpawner>
-
- <PickupSpawner position="25,25,-100" triggerDistance="10" respawnTime="10" maxSpawnedItems="99">
- <pickup>
- <SpeedPickup template=hugespeedpickup />
- </pickup>
- </PickupSpawner>
-
- <PickupSpawner position="50,25,-100" triggerDistance="10" respawnTime="10" maxSpawnedItems="99">
- <pickup>
- <SpeedPickup template=smalljumppickup />
- </pickup>
- </PickupSpawner>
-
- <!-- Invisible pickups -->
-
- <PickupSpawner position="-25,50,-100" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
- <pickup>
- <InvisiblePickup template=smallinvisiblepickup />
- </pickup>
- </PickupSpawner>
-
- <PickupSpawner position="0,50,-100" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
- <pickup>
- <InvisiblePickup template=mediuminvisiblepickup />
- </pickup>
- </PickupSpawner>
-
- <PickupSpawner position="25,50,-100" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
- <pickup>
- <InvisiblePickup template=hugeinvisiblepickup />
- </pickup>
- </PickupSpawner>
-
- <!-- Meta pickups -->
-
- <PickupSpawner position="-25,75,-100" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
- <pickup>
- <MetaPickup metaType="use" />
- </pickup>
- </PickupSpawner>
-
- <PickupSpawner position="0,75,-100" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
- <pickup>
- <MetaPickup metaType="drop" />
- </pickup>
- </PickupSpawner>
-
- <!-- Pickup Collection pickups -->
-
- <PickupSpawner position="0,100,-100" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
- <pickup>
- <PickupCollection template=triplehealthspeedinvisibilitypickup />
- </pickup>
- </PickupSpawner>
-
- </Scene>
-</Level>
Copied: code/branches/presentation3/data/levels/pickups.oxw (from rev 7005, code/branches/presentation3/data/levels/pickup.oxw)
===================================================================
--- code/branches/presentation3/data/levels/pickups.oxw (rev 0)
+++ code/branches/presentation3/data/levels/pickups.oxw 2010-05-29 18:41:19 UTC (rev 7007)
@@ -0,0 +1,162 @@
+<?lua
+ include("stats.oxo")
+ include("hudtemplates3.oxo")
+?>
+
+<?lua
+ include("templates/spaceship_assff.oxt")
+ include("templates/spaceship_pirate.oxt")
+ include("templates/pickup_representation_templates.oxt")
+?>
+
+<Level
+ name = "Sample"
+ description = "Just a few tests"
+>
+ <Scene
+ ambientlight = "0.8, 0.8, 0.8"
+ skybox = "Orxonox/Starbox"
+ >
+
+ <?lua
+ include("includes/pickups.oxi")
+ ?>
+
+ <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=spaceshipassff />
+
+
+ <!-- Shield pickups -->
+
+ <PickupSpawner position="-25,-25,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
+ <pickup>
+ <ShieldPickup template=smallshieldpickup />
+ </pickup>
+ </PickupSpawner>
+
+ <PickupSpawner position="0,-25,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
+ <pickup>
+ <ShieldPickup template=mediumshieldpickup />
+ </pickup>
+ </PickupSpawner>
+
+ <PickupSpawner position="25,-25,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
+ <pickup>
+ <ShieldPickup template=hugeshieldpickup />
+ </pickup>
+ </PickupSpawner>
+
+ <!-- Health pickups -->
+
+ <PickupSpawner position="-25,0,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
+ <pickup>
+ <HealthPickup template=smallhealthpickup />
+ </pickup>
+ </PickupSpawner>
+
+ <PickupSpawner position="0,0,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
+ <pickup>
+ <HealthPickup template=mediumhealthpickup />
+ </pickup>
+ </PickupSpawner>
+
+ <PickupSpawner position="25,0,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
+ <pickup>
+ <HealthPickup template=hugehealthpickup />
+ </pickup>
+ </PickupSpawner>
+
+ <PickupSpawner position="50,0,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
+ <pickup>
+ <HealthPickup template=crazyhealthpickup />
+ </pickup>
+ </PickupSpawner>
+
+ <!-- Speed pickups -->
+
+ <PickupSpawner position="-25,25,-125" triggerDistance="10" respawnTime="10" maxSpawnedItems="99">
+ <pickup>
+ <SpeedPickup template=smallspeedpickup />
+ </pickup>
+ </PickupSpawner>
+
+ <PickupSpawner position="0,25,-125" triggerDistance="10" respawnTime="10" maxSpawnedItems="99">
+ <pickup>
+ <SpeedPickup template=mediumspeedpickup />
+ </pickup>
+ </PickupSpawner>
+
+ <PickupSpawner position="25,25,-125" triggerDistance="10" respawnTime="10" maxSpawnedItems="99">
+ <pickup>
+ <SpeedPickup template=hugespeedpickup />
+ </pickup>
+ </PickupSpawner>
+
+ <PickupSpawner position="50,25,-125" triggerDistance="10" respawnTime="10" maxSpawnedItems="99">
+ <pickup>
+ <SpeedPickup template=smalljumppickup />
+ </pickup>
+ </PickupSpawner>
+
+ <!-- Invisible pickups -->
+
+ <PickupSpawner position="-25,50,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
+ <pickup>
+ <InvisiblePickup template=smallinvisiblepickup />
+ </pickup>
+ </PickupSpawner>
+
+ <PickupSpawner position="0,50,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
+ <pickup>
+ <InvisiblePickup template=mediuminvisiblepickup />
+ </pickup>
+ </PickupSpawner>
+
+ <PickupSpawner position="25,50,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
+ <pickup>
+ <InvisiblePickup template=hugeinvisiblepickup />
+ </pickup>
+ </PickupSpawner>
+
+ <!-- Meta pickups -->
+
+ <PickupSpawner position="-25,75,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
+ <pickup>
+ <MetaPickup metaType="use" />
+ </pickup>
+ </PickupSpawner>
+
+ <PickupSpawner position="0,75,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
+ <pickup>
+ <MetaPickup metaType="drop" />
+ </pickup>
+ </PickupSpawner>
+
+ <!-- Pickup Collection pickups -->
+
+ <PickupSpawner position="-50,0,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
+ <pickup>
+ <PickupCollection template=triplehealthspeedinvisibilitypickup />
+ </pickup>
+ </PickupSpawner>
+
+ <!-- PickupRepresentation for the pickup below, since it is not a standard pickup provided by pickups.oxi -->
+ <PickupRepresentation
+ pickupName = "Medium Health Pack"
+ pickupDescription = "Once used adds a medium amout of health to the ship."
+ spawnerTemplate = "mediumhealthpickupRepresentation"
+ inventoryRepresentation = "MediumHealth"
+ >
+ <pickup>
+ <HealthPickup health=50 activationType="onUse" durationType="once" />
+ </pickup>
+ </PickupRepresentation>
+
+ <PickupSpawner position="-50,25,-125" respawnTime="60" triggerDistance="20" maxSpawnedItems="5">
+ <pickup>
+ <HealthPickup health=50 activationType=onUse durationType=continuous />
+ </pickup>
+ </PickupSpawner>
+
+ </Scene>
+</Level>
Modified: code/branches/presentation3/data/levels/presentation09.oxw
===================================================================
--- code/branches/presentation3/data/levels/presentation09.oxw 2010-05-29 15:09:58 UTC (rev 7006)
+++ code/branches/presentation3/data/levels/presentation09.oxw 2010-05-29 18:41:19 UTC (rev 7007)
@@ -14,38 +14,39 @@
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" />
-<SpawnPoint position="<?lua print(math.sin(1.5) *40000) ?>,<?lua print(math.cos(1.5) *40000) ?>,<?lua print(500) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
+ <SpawnPoint position="<?lua print(math.sin(1.5) *40000) ?>,<?lua print(math.cos(1.5) *40000) ?>,<?lua print(500) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
-<?lua
-max = 20
-for i = 1, max, 1
-do
- x = math.sin(i/max*6)*40000
- y = math.cos(i/max*6)*40000
- z = i*100
+ <?lua
+ max = 20
+ for i = 1, max, 1
+ do
+ x = math.sin(i/max*6)*40000
+ y = math.cos(i/max*6)*40000
+ z = i*100
?>
-<?lua
-for k = 1, 25, 1
-do
-j = math.random()
-?>
+ <?lua
+ for k = 1, 25, 1
+ do
+ j = math.random()
+ ?>
- <MovableEntity position="<?lua print(x + math.random() * 10000-2500) ?>,<?lua print(y + math.random() * 5000-2500) ?>,<?lua print(z + math.random() * 1000-500) ?>" <?lua if i == 5 then ?> collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=<?lua print(j * 50) ?> <?lua end ?> scale=<?lua print(j * 5) ?> rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
- <attached>
- <Model position="0,0,0" scale=<?lua print(j * 10) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
- </attached>
- <?lua if i == 5 then ?><collisionShapes>
- <SphereCollisionShape radius="<?lua print(j * 70) ?>" />
- </collisionShapes> <?lua end ?>
- </MovableEntity>
-<?lua
-end
-?>
-<?lua end ?>
+ <MovableEntity position="<?lua print(x + math.random() * 10000-2500) ?>,<?lua print(y + math.random() * 5000-2500) ?>,<?lua print(z + math.random() * 1000-500) ?>" <?lua if i == 5 then ?> collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=<?lua print(j * 50) ?> <?lua end ?> scale=<?lua print(j * 5) ?> rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
+ <attached>
+ <Model position="0,0,0" scale=<?lua print(j * 10) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
+ </attached>
+ <?lua if i == 5 then ?><collisionShapes>
+ <SphereCollisionShape radius="<?lua print(j * 70) ?>" />
+ </collisionShapes> <?lua end ?>
+ </MovableEntity>
+
+ <?lua end ?>
+ <?lua end ?>
+
<Planet position="0,0,0" scale=10000 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="1,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f />
</Scene>
Modified: code/branches/presentation3/data/levels/presentation09b.oxw
===================================================================
--- code/branches/presentation3/data/levels/presentation09b.oxw 2010-05-29 15:09:58 UTC (rev 7006)
+++ code/branches/presentation3/data/levels/presentation09b.oxw 2010-05-29 18:41:19 UTC (rev 7007)
@@ -4,6 +4,7 @@
include("templates/spaceship_assff.oxt")
include("templates/spaceship_H2.oxt")
include("templates/spaceship_pirate.oxt")
+ include("templates/pickup_representation_templates.oxt")
?>
<Level
@@ -15,18 +16,13 @@
ambientlight = "0.5, 0.5, 0.5"
skybox = "Orxonox/skypanoramagen2"
>
+
+ <?lua
+ include("includes/pickups.oxi")
+ ?>
+
<Light type=directional position="0,0,0" direction="0.683, 0.289, 0.670" diffuse="1.0, 1.0, 1.0, 1.0" specular="1.0, 1.0, 1.0, 1.0" />
- <Template name="JumpItem" baseclass="Jump">
- <Jump velocity="0,0,-1000" jumpsAvailable="4" guiImage="jumpturbinepickup.jpg" guiText="Jump" />
- </Template>
- <Template name="HealthImmediateItem" baseclass="HealthImmediate">
- <HealthImmediate recoveredHealth="100" guiImage="decal.jpg" guiText="Health" />
- </Template>
- <Template name="HealthUsableItem" baseclass="HealthUsable">
- <HealthImmediate recoveredHealth="80" guiImage="goldwrenchpickup.jpg" guiText="Health" />
- </Template>
-
<SpawnPoint position="-3800, 2500, 1500" direction="-0.683, -0.289, -0.670" spawnclass=SpaceShip pawndesign=spaceshipassff />
<SpaceShip position="-3900,3000,1000">
@@ -86,25 +82,34 @@
</controller>
</SpaceShip>
- <PickupSpawner item="JumpItem" triggerDistance="20" respawnTime="10000" position="-3800, 2500, 1500">
- <attached>
- <!--<Model mesh="jumpthrust.mesh" scale="1.0" />
- <Billboard material="Examples/Flare" colour="0.5, 1.0, 0.3" scale="0.5" />-->
- </attached>
+ <PickupSpawner position="-3800, 2500, 1500" respawnTime="60" triggerDistance="20" maxSpawnedItems="5">
+ <pickup>
+ <SpeedPickup template=smalljumppickup />
+ </pickup>
</PickupSpawner>
- <PickupSpawner item="HealthUsableItem" triggerDistance="20" respawnTime="10000" position="-4150,2750,1550">
- <attached>
- <Model mesh="gwrench.mesh" scale="1.0" />
- <Billboard material="Examples/Flare" colour="0.3, 0.8, 1.0" scale="0.5" />
- </attached>
+ <!-- PickupRepresentation for the pickup below, since it is not a standard pickup provided by pickups.oxi -->
+ <PickupRepresentation
+ pickupName = "Medium Health Pack"
+ pickupDescription = "Once used adds a medium amout of health to the ship."
+ spawnerTemplate = "mediumhealthpickupRepresentation"
+ inventoryRepresentation = "MediumHealth"
+ >
+ <pickup>
+ <HealthPickup health=100 activationType="onUse" durationType="once" />
+ </pickup>
+ </PickupRepresentation>
+
+ <PickupSpawner position="-4150,2750,1550" respawnTime="60" triggerDistance="20" maxSpawnedItems="5">
+ <pickup>
+ <HealthPickup health=100 activationType=onUse durationType=once />
+ </pickup>
</PickupSpawner>
- <PickupSpawner item="HealthImmediateItem" triggerDistance="20" respawnTime="3" position="2300, 4300, 2400">
- <attached>
- <Model mesh="gwrench.mesh" scale="1.0" />
- <Billboard material="Examples/Flare" colour="0.9, 1.0, 0.1" scale="0.5" />
- </attached>
+ <PickupSpawner position="2300, 4300, 2400" respawnTime="5" triggerDistance="20">
+ <pickup>
+ <HealthPickup template=mediumhealthpickup />
+ </pickup>
</PickupSpawner>
<Billboard position="-2500, 2400, 1500" material="Examples/Flare" />
@@ -119,45 +124,39 @@
</events>
</EventDispatcher>
-<?lua
-for i = 1, 10, 1
-do
-?>
- <SpaceShip position="<?lua print(5000 + math.random() * 4000 - 2000) ?>,<?lua print(0 + math.random() * 2000 - 1000) ?>,<?lua print(math.random() * 2000 - 1000) ?>">
- <templates>
- <Template link=spaceshippirate />
- </templates>
- <controller>
- <WaypointPatrolController name=pirates alertnessradius=1000 team=1 active=false>
- <waypoints>
- <StaticEntity position="3100, 2000, 1500" />
- </waypoints>
- </WaypointPatrolController>
- </controller>
- </SpaceShip>
-<?lua
-end
-?>
+ <?lua
+ for i = 1, 10, 1 do
+ ?>
+ <SpaceShip position="<?lua print(5000 + math.random() * 4000 - 2000) ?>,<?lua print(0 + math.random() * 2000 - 1000) ?>,<?lua print(math.random() * 2000 - 1000) ?>">
+ <templates>
+ <Template link=spaceshippirate />
+ </templates>
+ <controller>
+ <WaypointPatrolController name=pirates alertnessradius=1000 team=1 active=false>
+ <waypoints>
+ <StaticEntity position="3100, 2000, 1500" />
+ </waypoints>
+ </WaypointPatrolController>
+ </controller>
+ </SpaceShip>
+ <?lua end ?>
-<?lua
-for i = 1, 12, 1
-do
-?>
- <SpaceShip position="<?lua print(2800 + math.random() * 2000 - 1000) ?>,<?lua print(2500+ math.random() * 1000 - 500) ?>,<?lua print(2500 + math.random() * 1000 - 500) ?>" >
- <templates>
- <Template link=spaceshipassff />
- </templates>
- <controller>
- <WaypointPatrolController alertnessradius=1000 team=0>
- <waypoints>
- <StaticEntity position="<?lua print(2800 + math.random() * 1000 - 500) ?>,<?lua print(2500 + math.random() * 1000 - 500) ?>,<?lua print(1500 + math.random() * 1000 - 500) ?>" />
- </waypoints>
- </WaypointPatrolController>
- </controller>
- </SpaceShip>
-<?lua
-end
-?>
+ <?lua
+ for i = 1, 12, 1 do
+ ?>
+ <SpaceShip position="<?lua print(2800 + math.random() * 2000 - 1000) ?>,<?lua print(2500+ math.random() * 1000 - 500) ?>,<?lua print(2500 + math.random() * 1000 - 500) ?>" >
+ <templates>
+ <Template link=spaceshipassff />
+ </templates>
+ <controller>
+ <WaypointPatrolController alertnessradius=1000 team=0>
+ <waypoints>
+ <StaticEntity position="<?lua print(2800 + math.random() * 1000 - 500) ?>,<?lua print(2500 + math.random() * 1000 - 500) ?>,<?lua print(1500 + math.random() * 1000 - 500) ?>" />
+ </waypoints>
+ </WaypointPatrolController>
+ </controller>
+ </SpaceShip>
+ <?lua end ?>
<Billboard position="2300, 4400, 2500" material="Examples/Flare" />
<EventDispatcher>
@@ -171,213 +170,207 @@
</events>
</EventDispatcher>
-<?lua
-for i = 1, 12, 1
-do
-?>
- <SpaceShip position="<?lua print(2500 + math.random() * 500 - 250) ?>,<?lua print(4800 + math.random() * 500 - 250) ?>,<?lua print(2500 + math.random() * 500 - 250) ?>" >
- <templates>
- <Template link=spaceshipassff />
- </templates>
- <controller>
- <WaypointPatrolController name=attacker alertnessradius=1000 team=0 active=false>
- <waypoints>
- <StaticEntity position="<?lua print(2800 + math.random() * 500 - 250) ?>,<?lua print(2500 + math.random() * 500 - 250) ?>,<?lua print(1500 + math.random() * 500 - 250) ?>" />
- <StaticEntity position="<?lua print(5000 + math.random() * 500 - 250) ?>,<?lua print(0 + math.random() * 500 - 250) ?>,<?lua print(0 + math.random() * 500 - 250) ?>" />
- <StaticEntity position="<?lua print(7500 + math.random() * 500 - 250) ?>,<?lua print(-2500 + math.random() * 500 - 250) ?>,<?lua print(-1500 + math.random() * 500 - 250) ?>" />
- </waypoints>
- </WaypointPatrolController>
- </controller>
- </SpaceShip>
-<?lua
-end
-?>
+ <?lua
+ for i = 1, 12, 1 do
+ ?>
+ <SpaceShip position="<?lua print(2500 + math.random() * 500 - 250) ?>,<?lua print(4800 + math.random() * 500 - 250) ?>,<?lua print(2500 + math.random() * 500 - 250) ?>" >
+ <templates>
+ <Template link=spaceshipassff />
+ </templates>
+ <controller>
+ <WaypointPatrolController name=attacker alertnessradius=1000 team=0 active=false>
+ <waypoints>
+ <StaticEntity position="<?lua print(2800 + math.random() * 500 - 250) ?>,<?lua print(2500 + math.random() * 500 - 250) ?>,<?lua print(1500 + math.random() * 500 - 250) ?>" />
+ <StaticEntity position="<?lua print(5000 + math.random() * 500 - 250) ?>,<?lua print(0 + math.random() * 500 - 250) ?>,<?lua print(0 + math.random() * 500 - 250) ?>" />
+ <StaticEntity position="<?lua print(7500 + math.random() * 500 - 250) ?>,<?lua print(-2500 + math.random() * 500 - 250) ?>,<?lua print(-1500 + math.random() * 500 - 250) ?>" />
+ </waypoints>
+ </WaypointPatrolController>
+ </controller>
+ </SpaceShip>
+ <?lua end ?>
<StaticEntity position="2800, 2500, 2500">
- <attached>
- <CheckPoint />
- <Model position="400, 0, 0" scale="40" mesh="DuBall2.mesh"/>
- <Model position="-400, 0, 0" scale="40" mesh="DuBall1.mesh"/>
- </attached>
+ <attached>
+ <CheckPoint />
+ <Model position="400, 0, 0" scale="40" mesh="DuBall2.mesh"/>
+ <Model position="-400, 0, 0" scale="40" mesh="DuBall1.mesh"/>
+ </attached>
</StaticEntity>
+
<!--
<Destroyer position="6500, -2000, -1000" collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=500>
- <attached>
- <CheckPoint />
- <Model position="0,0,0" scale="5" mesh="Carrier.mesh"/>
- <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"
- />
- </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>
+ <attached>
+ <CheckPoint />
+ <Model position="0,0,0" scale="5" mesh="Carrier.mesh"/>
+ <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"
+ />
+ </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>
-->
+
<Destroyer
- position = "6500,-2000,-1000"
- collisionType = dynamic
- mass = 100000
- angularDamping = 0.9999999
- health = 1000
- maxhealth = 1000
- initialhealth = 1000
+ position = "6500,-2000,-1000"
+ 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, 10, 1
-do
-?>
- <SpaceShip position="<?lua print(6200 + math.random() * 2000 - 1000) ?>,<?lua print(-1500 + math.random() * 1000 - 500) ?>,<?lua print(-700 + math.random() * 1000 - 500) ?>" >
- <templates>
- <Template link=spaceshippirate />
- </templates>
<controller>
- <WaypointPatrolController alertnessradius=1000 team=1>
- <waypoints>
- <StaticEntity position="<?lua print(6000 + math.random() * 1000 - 500) ?>,<?lua print(-2000 + math.random() * 1000 - 500) ?>,<?lua print(-1000 + math.random() * 1000 - 500) ?>" />
- </waypoints>
- </WaypointPatrolController>
+ <WaypointPatrolController team=1 />
</controller>
- </SpaceShip>
-<?lua
-end
-?>
+ <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 = 1, 200, 1
-do
-x = math.random() * 100 + (i-70) * 100
-y = math.random() * 3000 - 1500
-z = math.random() * 3000 - 1500 + (i-100) * 10
-s = math.random() * 60 + 30
-?>
+ <?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
+ />
- <MovableEntity position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 - 15) ?>">
- <attached>
- <Model position="0,0,0" scale=<?lua print(s) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
+ <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>
- </MovableEntity>
-<?lua
-end
-?>
+ <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
-elements = {"BodyDebris1.mesh", "CockpitDebris.mesh", "LightningGun.mesh", "WingDebris1.mesh", "WingDebris2.mesh", "satellitedish.mesh", "Thruster.mesh"}
-sizes = {4, 4, 4, 4, 4, 10, 20}
-elements.length = function()
- return table.getn(elements)
-end
-for i = 1, 150, 1
-do
-x = math.random() * 750 - 4500
-y = math.random() * 1000 + 2000
-z = math.random() * 500 + 1000
-e = math.floor(math.random()*elements.length()+1)
-?>
+ <?lua
+ for i = 1, 10, 1 do
+ ?>
+ <SpaceShip position="<?lua print(6200 + math.random() * 2000 - 1000) ?>,<?lua print(-1500 + math.random() * 1000 - 500) ?>,<?lua print(-700 + math.random() * 1000 - 500) ?>" >
+ <templates>
+ <Template link=spaceshippirate />
+ </templates>
+ <controller>
+ <WaypointPatrolController alertnessradius=1000 team=1>
+ <waypoints>
+ <StaticEntity position="<?lua print(6000 + math.random() * 1000 - 500) ?>,<?lua print(-2000 + math.random() * 1000 - 500) ?>,<?lua print(-1000 + math.random() * 1000 - 500) ?>" />
+ </waypoints>
+ </WaypointPatrolController>
+ </controller>
+ </SpaceShip>
+ <?lua end ?>
- <MovableEntity position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 - 15) ?>">
- <attached>
- <Model position="0,0,0" scale="<?lua print(sizes[e]) ?>" mesh="<?lua print( elements[e]) ?>" />
- </attached>
- </MovableEntity>
-<?lua
-end
-?>
+ <?lua
+ for i = 1, 200, 1 do
+ x = math.random() * 100 + (i-70) * 100
+ y = math.random() * 3000 - 1500
+ z = math.random() * 3000 - 1500 + (i-100) * 10
+ s = math.random() * 60 + 30
+ ?>
+ <MovableEntity position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 - 15) ?>">
+ <attached>
+ <Model position="0,0,0" scale=<?lua print(s) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
+ </attached>
+ </MovableEntity>
+ <?lua end ?>
+ <?lua
+ elements = {"BodyDebris1.mesh", "CockpitDebris.mesh", "LightningGun.mesh", "WingDebris1.mesh", "WingDebris2.mesh", "satellitedish.mesh", "Thruster.mesh"}
+ sizes = {4, 4, 4, 4, 4, 10, 20}
+
+ elements.length = function()
+ return table.getn(elements)
+ end
+
+ for i = 1, 150, 1 do
+ x = math.random() * 750 - 4500
+ y = math.random() * 1000 + 2000
+ z = math.random() * 500 + 1000
+ e = math.floor(math.random()*elements.length()+1)
+ ?>
+
+ <MovableEntity position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 - 15) ?>">
+ <attached>
+ <Model position="0,0,0" scale="<?lua print(sizes[e]) ?>" mesh="<?lua print( elements[e]) ?>" />
+ </attached>
+ </MovableEntity>
+ <?lua end ?>
+
</Scene>
</Level>
Modified: code/branches/presentation3/data/levels/presentationHS09.oxw
===================================================================
--- code/branches/presentation3/data/levels/presentationHS09.oxw 2010-05-29 15:09:58 UTC (rev 7006)
+++ code/branches/presentation3/data/levels/presentationHS09.oxw 2010-05-29 18:41:19 UTC (rev 7007)
@@ -4,6 +4,7 @@
include("templates/spaceship_assff.oxt")
include("templates/spaceship_H2.oxt")
include("templates/spaceship_pirate.oxt")
+ include("templates/pickup_representation_templates.oxt")
?>
<Level
@@ -16,22 +17,15 @@
ambientlight = "0.6, 0.4, 0.4"
skybox = "Orxonox/skypanoramagen2"
>
- <Light type=directional position="0,0,0" direction="0.683, 0.289, 0.670" diffuse="0.8, 0.5, 0.5, 1.0" specular="0.8, 0.4, 0.4, 1.0" />
- <Template name="JumpItem" baseclass="Jump">
- <Jump velocity="0,0,-1000" jumpsAvailable="4" guiImage="jumpturbinepickup.jpg" guiText="Jump" />
- </Template>
- <Template name="HealthImmediateItem" baseclass="HealthImmediate">
- <HealthImmediate recoveredHealth="100" guiImage="decal.jpg" guiText="Health" />
- </Template>
- <Template name="HealthUsableItem" baseclass="HealthUsable">
- <HealthImmediate recoveredHealth="80" guiImage="goldwrenchpickup.jpg" guiText="Health" />
- </Template>
+ <?lua
+ include("includes/pickups.oxi")
+ ?>
+ <Light type=directional position="0,0,0" direction="0.683, 0.289, 0.670" diffuse="0.8, 0.5, 0.5, 1.0" specular="0.8, 0.4, 0.4, 1.0" />
+
<SpawnPoint position="-3800, 2500, 1500" direction="-0.683, -0.289, -0.670" spawnclass=SpaceShip pawndesign=spaceshipassff />
-
-
<SpaceShip position="-3900,3000,1000">
<templates>
<Template link=spaceshipHtwo/>
@@ -91,25 +85,34 @@
<Billboard material="Test/Fog" position="-3800, 2500, 1500" alpha="0.1" color="1, 1, 1, 0.1" scale="0.5" />
- <PickupSpawner item="JumpItem" triggerDistance="20" respawnTime="10000" position="-3800, 2500, 1500">
- <attached>
- <!--<Model mesh="jumpthrust.mesh" scale="1.0" />
- <Billboard material="Examples/Flare" colour="0.5, 1.0, 0.3" scale="0.5" />-->
- </attached>
+ <PickupSpawner position="-3800, 2500, 1500" respawnTime="60" triggerDistance="20" maxSpawnedItems="5">
+ <pickup>
+ <SpeedPickup template=smalljumppickup />
+ </pickup>
</PickupSpawner>
- <PickupSpawner item="HealthUsableItem" triggerDistance="20" respawnTime="10000" position="-4150,2750,1550">
- <attached>
- <Model mesh="gwrench.mesh" scale="1.0" />
- <Billboard material="Examples/Flare" colour="0.3, 0.8, 1.0" scale="0.5" />
- </attached>
+ <!-- PickupRepresentation for the pickup below, since it is not a standard pickup provided by pickups.oxi -->
+ <PickupRepresentation
+ pickupName = "Medium Health Pack"
+ pickupDescription = "Once used adds a medium amout of health to the ship."
+ spawnerTemplate = "mediumhealthpickupRepresentation"
+ inventoryRepresentation = "MediumHealth"
+ >
+ <pickup>
+ <HealthPickup health=100 activationType="onUse" durationType="once" />
+ </pickup>
+ </PickupRepresentation>
+
+ <PickupSpawner position="-4150,2750,1550" respawnTime="60" triggerDistance="20" maxSpawnedItems="5">
+ <pickup>
+ <HealthPickup health=100 activationType=onUse durationType=once />
+ </pickup>
</PickupSpawner>
- <PickupSpawner item="HealthImmediateItem" triggerDistance="20" respawnTime="3" position="2300, 4300, 2400">
- <attached>
- <Model mesh="gwrench.mesh" scale="1.0" />
- <Billboard material="Examples/Flare" colour="0.9, 1.0, 0.1" scale="0.5" />
- </attached>
+ <PickupSpawner position="2300, 4300, 2400" respawnTime="5" triggerDistance="20">
+ <pickup>
+ <HealthPickup template=mediumhealthpickup />
+ </pickup>
</PickupSpawner>
<Billboard position="-2500, 2400, 1500" material="Examples/Flare" />
@@ -124,45 +127,39 @@
</events>
</EventDispatcher>
-<?lua
-for i = 1, 10, 1
-do
-?>
- <SpaceShip position="<?lua print(5000 + math.random() * 4000 - 2000) ?>,<?lua print(0 + math.random() * 2000 - 1000) ?>,<?lua print(math.random() * 2000 - 1000) ?>">
- <templates>
- <Template link=spaceshippirate />
- </templates>
- <controller>
- <WaypointPatrolController name=pirates alertnessradius=1000 team=1 active=false>
- <waypoints>
- <StaticEntity position="3100, 2000, 1500" />
- </waypoints>
- </WaypointPatrolController>
- </controller>
- </SpaceShip>
-<?lua
-end
-?>
+ <?lua
+ for i = 1, 10, 1 do
+ ?>
+ <SpaceShip position="<?lua print(5000 + math.random() * 4000 - 2000) ?>,<?lua print(0 + math.random() * 2000 - 1000) ?>,<?lua print(math.random() * 2000 - 1000) ?>">
+ <templates>
+ <Template link=spaceshippirate />
+ </templates>
+ <controller>
+ <WaypointPatrolController name=pirates alertnessradius=1000 team=1 active=false>
+ <waypoints>
+ <StaticEntity position="3100, 2000, 1500" />
+ </waypoints>
+ </WaypointPatrolController>
+ </controller>
+ </SpaceShip>
+ <?lua end ?>
-<?lua
-for i = 1, 12, 1
-do
-?>
- <SpaceShip position="<?lua print(2800 + math.random() * 2000 - 1000) ?>,<?lua print(2500+ math.random() * 1000 - 500) ?>,<?lua print(2500 + math.random() * 1000 - 500) ?>" >
- <templates>
- <Template link=spaceshipassff />
- </templates>
- <controller>
- <WaypointPatrolController alertnessradius=1000 team=0>
- <waypoints>
- <StaticEntity position="<?lua print(2800 + math.random() * 1000 - 500) ?>,<?lua print(2500 + math.random() * 1000 - 500) ?>,<?lua print(1500 + math.random() * 1000 - 500) ?>" />
- </waypoints>
- </WaypointPatrolController>
- </controller>
- </SpaceShip>
-<?lua
-end
-?>
+ <?lua
+ for i = 1, 12, 1 do
+ ?>
+ <SpaceShip position="<?lua print(2800 + math.random() * 2000 - 1000) ?>,<?lua print(2500+ math.random() * 1000 - 500) ?>,<?lua print(2500 + math.random() * 1000 - 500) ?>" >
+ <templates>
+ <Template link=spaceshipassff />
+ </templates>
+ <controller>
+ <WaypointPatrolController alertnessradius=1000 team=0>
+ <waypoints>
+ <StaticEntity position="<?lua print(2800 + math.random() * 1000 - 500) ?>,<?lua print(2500 + math.random() * 1000 - 500) ?>,<?lua print(1500 + math.random() * 1000 - 500) ?>" />
+ </waypoints>
+ </WaypointPatrolController>
+ </controller>
+ </SpaceShip>
+ <?lua end ?>
<Billboard position="2300, 4400, 2500" material="Examples/Flare" />
<EventDispatcher>
@@ -176,235 +173,229 @@
</events>
</EventDispatcher>
-<?lua
-for i = 1, 12, 1
-do
-?>
- <SpaceShip position="<?lua print(2500 + math.random() * 500 - 250) ?>,<?lua print(4800 + math.random() * 500 - 250) ?>,<?lua print(2500 + math.random() * 500 - 250) ?>" >
- <templates>
- <Template link=spaceshipassff />
- </templates>
- <controller>
- <WaypointPatrolController name=attacker alertnessradius=<?lua print(math.random() * 2000) ?> team=0 active=false>
- <waypoints>
- <StaticEntity position="<?lua print(2800 + math.random() * 500 - 250) ?>,<?lua print(2500 + math.random() * 500 - 250) ?>,<?lua print(1500 + math.random() * 500 - 250) ?>" />
- <StaticEntity position="<?lua print(5000 + math.random() * 500 - 250) ?>,<?lua print(0 + math.random() * 500 - 250) ?>,<?lua print(0 + math.random() * 500 - 250) ?>" />
- <StaticEntity position="<?lua print(7500 + math.random() * 500 - 250) ?>,<?lua print(-2500 + math.random() * 500 - 250) ?>,<?lua print(-1500 + math.random() * 500 - 250) ?>" />
- </waypoints>
- </WaypointPatrolController>
- </controller>
- </SpaceShip>
-<?lua
-end
-?>
+ <?lua
+ for i = 1, 12, 1 do
+ ?>
+ <SpaceShip position="<?lua print(2500 + math.random() * 500 - 250) ?>,<?lua print(4800 + math.random() * 500 - 250) ?>,<?lua print(2500 + math.random() * 500 - 250) ?>" >
+ <templates>
+ <Template link=spaceshipassff />
+ </templates>
+ <controller>
+ <WaypointPatrolController name=attacker alertnessradius=<?lua print(math.random() * 2000) ?> team=0 active=false>
+ <waypoints>
+ <StaticEntity position="<?lua print(2800 + math.random() * 500 - 250) ?>,<?lua print(2500 + math.random() * 500 - 250) ?>,<?lua print(1500 + math.random() * 500 - 250) ?>" />
+ <StaticEntity position="<?lua print(5000 + math.random() * 500 - 250) ?>,<?lua print(0 + math.random() * 500 - 250) ?>,<?lua print(0 + math.random() * 500 - 250) ?>" />
+ <StaticEntity position="<?lua print(7500 + math.random() * 500 - 250) ?>,<?lua print(-2500 + math.random() * 500 - 250) ?>,<?lua print(-1500 + math.random() * 500 - 250) ?>" />
+ </waypoints>
+ </WaypointPatrolController>
+ </controller>
+ </SpaceShip>
+ <?lua end ?>
<StaticEntity position="2800, 2500, 2500">
- <attached>
- <CheckPoint />
- <Model position="400, 0, 0" scale="40" mesh="DuBall2.mesh"/>
- <Model position="-400, 0, 0" scale="40" mesh="DuBall1.mesh"/>
- </attached>
+ <attached>
+ <CheckPoint />
+ <Model position="400, 0, 0" scale="40" mesh="DuBall2.mesh"/>
+ <Model position="-400, 0, 0" scale="40" mesh="DuBall1.mesh"/>
+ </attached>
</StaticEntity>
+
<!--
<Destroyer position="6500, -2000, -1000" collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=500>
- <attached>
- <CheckPoint />
- <Model position="0,0,0" scale="5" mesh="Carrier.mesh"/>
- <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"
- />
- </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>
+ <attached>
+ <CheckPoint />
+ <Model position="0,0,0" scale="5" mesh="Carrier.mesh"/>
+ <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"
+ />
+ </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>
-->
+
<Destroyer
- position = "6500,-2000,-1000"
- collisionType = dynamic
- mass = 100000
- angularDamping = 0.9999999
- health = 1000
- maxhealth = 1000
- initialhealth = 1000
+ position = "6500,-2000,-1000"
+ 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
- />
+ <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"
+ />
- <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 ?>
+ <?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
+ />
- <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>
+ <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, 10, 1
-do
-?>
- <SpaceShip position="<?lua print(6200 + math.random() * 2000 - 1000) ?>,<?lua print(-1500 + math.random() * 1000 - 500) ?>,<?lua print(-700 + math.random() * 1000 - 500) ?>" >
- <templates>
- <Template link=spaceshippirate />
- </templates>
- <controller>
- <WaypointPatrolController alertnessradius=1000 team=1>
- <waypoints>
- <StaticEntity position="<?lua print(6000 + math.random() * 1000 - 500) ?>,<?lua print(-2000 + math.random() * 1000 - 500) ?>,<?lua print(-1000 + math.random() * 1000 - 500) ?>" />
- </waypoints>
- </WaypointPatrolController>
- </controller>
- </SpaceShip>
-<?lua
-end
-?>
+ <?lua
+ for i = 1, 10, 1 do
+ ?>
+ <SpaceShip position="<?lua print(6200 + math.random() * 2000 - 1000) ?>,<?lua print(-1500 + math.random() * 1000 - 500) ?>,<?lua print(-700 + math.random() * 1000 - 500) ?>" >
+ <templates>
+ <Template link=spaceshippirate />
+ </templates>
+ <controller>
+ <WaypointPatrolController alertnessradius=1000 team=1>
+ <waypoints>
+ <StaticEntity position="<?lua print(6000 + math.random() * 1000 - 500) ?>,<?lua print(-2000 + math.random() * 1000 - 500) ?>,<?lua print(-1000 + math.random() * 1000 - 500) ?>" />
+ </waypoints>
+ </WaypointPatrolController>
+ </controller>
+ </SpaceShip>
+ <?lua end ?>
-<?lua
-elements = {"asteroid_ice.mesh", "asteroid_UV.mesh", "ast1.mesh", "ast2.mesh", "ast3.mesh", "ast4.mesh", "ast5.mesh", "ast6.mesh"}
-elements.length = function()
- return table.getn(elements)
-end
-for i = 1, 100, 1
-do
-x = math.random() * 100 + (i) * 100
-y = math.random() * 3000 - 1500
-z = math.random() * 3000 - 1500 + (i-100) * 10
-s = math.random() * 60 + 30
-e = math.floor(math.random()*elements.length()+1)
-?>
+ <?lua
+ elements = {"asteroid_ice.mesh", "asteroid_UV.mesh", "ast1.mesh", "ast2.mesh", "ast3.mesh", "ast4.mesh", "ast5.mesh", "ast6.mesh"}
- <MovableEntity mass=90000 position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 100 - 15) ?>">
- <attached>
- <Model position="0,0,0" scale=<?lua print(s) ?> mesh="<?lua print(elements[e])?>" />
- </attached>
- </MovableEntity>
-<?lua
-end
-?>
+ elements.length = function()
+ return table.getn(elements)
+ end
-<?lua
-for i = 1, 100, 1
-do
-x = math.random() * 200 + i*200
-y = math.random() * 3000 - 1500
-z = math.random() * 3000 - 1500 + (i-100) * 10
-s = math.random() * 60 + 30
-?>
- <ParticleSpawner position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" source="Orxonox/Steam" lifetime=3.0 loop=1 />
-<!-- <Billboard material="Test/Fog" position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" color="1, 1, 1, 0.01" scale="20" />
--->
-<?lua
-end
-?>
+ for i = 1, 100, 1 do
+ x = math.random() * 100 + (i) * 100
+ y = math.random() * 3000 - 1500
+ z = math.random() * 3000 - 1500 + (i-100) * 10
+ s = math.random() * 60 + 30
+ e = math.floor(math.random()*elements.length()+1)
+ ?>
+ <MovableEntity mass=90000 position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 100 - 15) ?>">
+ <attached>
+ <Model position="0,0,0" scale=<?lua print(s) ?> mesh="<?lua print(elements[e])?>" />
+ </attached>
+ </MovableEntity>
+ <?lua end ?>
-<?lua
-elements = {"BodyDebris1.mesh", "CockpitDebris.mesh", "LightningGun.mesh", "WingDebris1.mesh", "WingDebris2.mesh", "satellitedish.mesh", "Thruster.mesh"}
-sizes = {4, 4, 4, 4, 4, 10, 20}
-elements.length = function()
- return table.getn(elements)
-end
-for i = 1, 150, 1
-do
-x = math.random() * 750 - 4500
-y = math.random() * 1000 + 2000
-z = math.random() * 500 + 1000
-e = math.floor(math.random()*elements.length()+1)
-?>
+ <?lua
+ for i = 1, 100, 1 do
+ x = math.random() * 200 + i*200
+ y = math.random() * 3000 - 1500
+ z = math.random() * 3000 - 1500 + (i-100) * 10
+ s = math.random() * 60 + 30
+ ?>
+ <ParticleSpawner position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" source="Orxonox/Steam" lifetime=3.0 loop=1 />
+ <!-- Billboard material="Test/Fog" position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" color="1, 1, 1, 0.01" scale="20" /-->
+ <?lua end ?>
- <MovableEntity mass=90000 position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30- 15) ?>">
- <attached>
- <Model position="0,0,0" scale="<?lua print(sizes[e]) ?>" mesh="<?lua print( elements[e]) ?>" />
- </attached>
- </MovableEntity>
-<?lua
-end
-?>
+ <?lua
+ elements = {"BodyDebris1.mesh", "CockpitDebris.mesh", "LightningGun.mesh", "WingDebris1.mesh", "WingDebris2.mesh", "satellitedish.mesh", "Thruster.mesh"}
+ sizes = {4, 4, 4, 4, 4, 10, 20}
+
+ elements.length = function()
+ return table.getn(elements)
+ end
+
+ for i = 1, 150, 1 do
+ x = math.random() * 750 - 4500
+ y = math.random() * 1000 + 2000
+ z = math.random() * 500 + 1000
+ e = math.floor(math.random()*elements.length()+1)
+ ?>
+ <MovableEntity mass=90000 position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30- 15) ?>">
+ <attached>
+ <Model position="0,0,0" scale="<?lua print(sizes[e]) ?>" mesh="<?lua print( elements[e]) ?>" />
+ </attached>
+ </MovableEntity>
+ <?lua end ?>
+
<!--
<Planet position="1000,0,0" mass=900000 scale=1000 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="1,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f />
-->
-</Scene>
+
+ </Scene>
</Level>
Modified: code/branches/presentation3/data/levels/presentationHS09b.oxw
===================================================================
--- code/branches/presentation3/data/levels/presentationHS09b.oxw 2010-05-29 15:09:58 UTC (rev 7006)
+++ code/branches/presentation3/data/levels/presentationHS09b.oxw 2010-05-29 18:41:19 UTC (rev 7007)
@@ -23,75 +23,68 @@
skybox = "Orxonox/Starbox"
>
+ <AmbientSound ambientSource="Mars.ogg" looping="true" playOnLoad="true" />
-<AmbientSound ambientSource="Mars.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" />
-<?lua
- for i = 1, 50, 1
- do
- x = math.random() * 2000 + 4000
- y = math.random() * 4000 - 2000
- z = math.random() * 2000 - 1000
- s = math.random() * 100
- ?>
+
+ <?lua
+ for i = 1, 50, 1 do
+ x = math.random() * 2000 + 4000
+ y = math.random() * 4000 - 2000
+ z = math.random() * 2000 - 1000
+ s = math.random() * 100
+ ?>
+ <MovableEntity collisiontype=dynamic mass=<?lua print(s*10)?> position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.01 angularDamping=0 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 100 - 15) ?>">
+ <attached>
+ <Model position="0,0,0" scale=<?lua print(s) ?> mesh="asteroid_UV.mesh" />
+ </attached>
+ <collisionShapes>
+ <SphereCollisionShape radius="<?lua print(s*0.9) ?>" />
+ </collisionShapes>
+ </MovableEntity>
+ <ParticleSpawner position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" source="Orxonox/Steam" lifetime=3.0 loop=1 />
+ <?lua end ?>
- <MovableEntity collisiontype=dynamic mass=<?lua print(s*10)?> position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.01 angularDamping=0 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 100 - 15) ?>">
- <attached>
- <Model position="0,0,0" scale=<?lua print(s) ?> mesh="asteroid_UV.mesh" />
- </attached>
- <collisionShapes>
- <SphereCollisionShape radius="<?lua print(s*0.9) ?>" />
- </collisionShapes>
- </MovableEntity>
- <ParticleSpawner position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" source="Orxonox/Steam" lifetime=3.0 loop=1 />
-<?lua
-end
-?>
+ <?lua
+ elements = {"BodyDebris1.mesh", "CockpitDebris.mesh", "LightningGun.mesh", "WingDebris1.mesh", "WingDebris2.mesh", "satellitedish.mesh", "Thruster.mesh"}
+ sizes = {4, 4, 4, 4, 4, 10, 20}
+
+ elements.length = function()
+ return table.getn(elements)
+ end
+
+ for i = 1, 100, 1 do
+ x = math.random() * 750 - 4500
+ y = math.random() * 1000 + 2000
+ z = math.random() * 500 + 1000
+ e = math.floor(math.random()*elements.length()+1)
+ ?>
+ <MovableEntity mass=90000 position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30- 15) ?>">
+ <attached>
+ <Model position="0,0,0" scale="<?lua print(sizes[e]) ?>" mesh="<?lua print( elements[e]) ?>" />
+ </attached>
+ </MovableEntity>
+ <?lua end ?>
-<?lua
-elements = {"BodyDebris1.mesh", "CockpitDebris.mesh", "LightningGun.mesh", "WingDebris1.mesh", "WingDebris2.mesh", "satellitedish.mesh", "Thruster.mesh"}
-sizes = {4, 4, 4, 4, 4, 10, 20}
-elements.length = function()
- return table.getn(elements)
-end
-for i = 1, 100, 1
-do
-x = math.random() * 750 - 4500
-y = math.random() * 1000 + 2000
-z = math.random() * 500 + 1000
-e = math.floor(math.random()*elements.length()+1)
-?>
+ <?lua
+ for i = 1,12, 1 do
+ ?>
+ <SpaceShip position="<?lua print(math.random()*500 + 4500) ?>,<?lua print(-(math.random()*500 -250)) ?>,<?lua print(i*50 - 150) ?>" >
+ <templates>
+ <Template link=spaceshipHXYSL />
+ </templates>
+ <controller>
+ <WaypointPatrolController alertnessradius=4000 team=0 active=true>
+ <waypoints>
+ <StaticEntity position="5000,<?lua print(math.random()*50)?> ,<?lua print(i*50 -150) ?>" />
+ </waypoints>
+ </WaypointPatrolController>
+ </controller>
+ </SpaceShip>
+ <?lua end ?>
- <MovableEntity mass=90000 position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30- 15) ?>">
- <attached>
- <Model position="0,0,0" scale="<?lua print(sizes[e]) ?>" mesh="<?lua print( elements[e]) ?>" />
- </attached>
- </MovableEntity>
-<?lua
-end
-?>
-<?lua
-for i = 1,12, 1
-do
-?>
- <SpaceShip position="<?lua print(math.random()*500 + 4500) ?>,<?lua print(-(math.random()*500 -250)) ?>,<?lua print(i*50 - 150) ?>" >
+ <SpaceShip position="5000,100,100" >
<templates>
- <Template link=spaceshipHXYSL />
- </templates>
- <controller>
- <WaypointPatrolController alertnessradius=4000 team=0 active=true>
- <waypoints>
- <StaticEntity position="5000,<?lua print(math.random()*50)?> ,<?lua print(i*50 -150) ?>" />
- </waypoints>
- </WaypointPatrolController>
- </controller>
- </SpaceShip>
-<?lua
-end
-?>
-<SpaceShip position="5000,100,100" >
- <templates>
<Template link=spaceshipTransporterSL />
</templates>
<controller>
@@ -101,114 +94,115 @@
</waypoints>
</WaypointPatrolController>
</controller>
-</SpaceShip>
+ </SpaceShip>
+
<Destroyer
- position = "-5000,100 ,100"
- collisionType = dynamic
- mass = 100000
- angularDamping = 0.9999999
- health = 1000
- maxhealth = 1000
- initialhealth = 1000
+ 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
- />
+ <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 ?>
+ <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" />
+ <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, 50, 1 do
+ x = -(math.random() * 2000 + 4000)
+ y = math.random() * 4000 - 2000
+ z = math.random() * 2000 - 1000
+ s = math.random() * 100
+ ?>
+ <MovableEntity collisiontype=dynamic mass=<?lua print(s*10)?> position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.01 angularDamping=0 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 100 - 15) ?>">
+ <attached>
+ <Model position="0,0,0" scale=<?lua print(s) ?> mesh="asteroid_ice.mesh" />
</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" />
+ <SphereCollisionShape radius="<?lua print(s*0.9)?>" />
</collisionShapes>
- </Destroyer>
+ </MovableEntity>
+ <ParticleSpawner position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" source="Orxonox/Steam" lifetime=3.0 loop=1 />
+ <?lua end ?>
- <?lua
- for i = 1, 50, 1
- do
- x = -(math.random() * 2000 + 4000)
- y = math.random() * 4000 - 2000
- z = math.random() * 2000 - 1000
- s = math.random() * 100
- ?>
-
- <MovableEntity collisiontype=dynamic mass=<?lua print(s*10)?> position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.01 angularDamping=0 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 100 - 15) ?>">
- <attached>
- <Model position="0,0,0" scale=<?lua print(s) ?> mesh="asteroid_ice.mesh" />
- </attached>
- <collisionShapes>
- <SphereCollisionShape radius="<?lua print(s*0.9)?>" />
- </collisionShapes>
- </MovableEntity>
- <ParticleSpawner position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" source="Orxonox/Steam" lifetime=3.0 loop=1 />
-<?lua
-end
-?>
-<!--<EventDispatcher>
+ <!-- EventDispatcher>
<targets>
<EventTarget target=attack />
<EventTarget target=wait />
@@ -218,9 +212,9 @@
<DistanceTrigger position="0, 0, 4500" distance=100 target="SpaceShip" stayactive=true />
</activity>
</events>
-</EventDispatcher>
+ </EventDispatcher>
-<EventDispatcher>
+ <EventDispatcher>
<targets>
<EventTarget target=wait />
</targets>
@@ -229,34 +223,27 @@
<DistanceTrigger position="0, 0, 4500" distance=100 target="SpaceShip" stayactive=false />
</activity>
</events>
-</EventDispatcher>-->
+ </EventDispatcher -->
-<?lua
-for i = 1,25, 1
-do
-?>
-<SpaceShip position="<?lua print(-(math.random()*500 + 4500)) ?>,<?lua print(-(math.random()*500 -250)) ?>,<?lua print(i*50 - 150) ?>" >
- <templates>
- <Template link=spaceshipghost />
- </templates>
- <controller>
-
+ <?lua
+ for i = 1,25, 1 do
+ ?>
+ <SpaceShip position="<?lua print(-(math.random()*500 + 4500)) ?>,<?lua print(-(math.random()*500 -250)) ?>,<?lua print(i*50 - 150) ?>" >
+ <templates>
+ <Template link=spaceshipghost />
+ </templates>
+ <controller>
<WaypointPatrolController name=attack alertnessradius=15000 team=1 active=false>
- <events>
- <activity>
- <DistanceTrigger position="-5000, 100, 100" distance=2000 target="Camera" stayactive=true />
- </activity>
- </events>
+ <events>
+ <activity>
+ <DistanceTrigger position="-5000, 100, 100" distance=2000 target="Camera" stayactive=true />
+ </activity>
+ </events>
</WaypointPatrolController>
+ </controller>
+ </SpaceShip>
+ <?lua end ?>
- </controller>
- </SpaceShip>
-<?lua
-end
-?>
-
-
-
<AmbientSound ambientSource="Earth.ogg" looping="true" playOnLoad="false">
<events>
<activity>
@@ -265,6 +252,7 @@
</events>
</AmbientSound>
- <SpawnPoint position="5000,0,2000" spawnclass=SpaceShip pawndesign=spaceshipassff team=0/>
+ <SpawnPoint position="5000,0,2000" spawnclass=SpaceShip pawndesign=spaceshipassff team=0 />
+
</Scene>
</Level>
Modified: code/branches/presentation3/data/levels/presentationLOD.oxw
===================================================================
--- code/branches/presentation3/data/levels/presentationLOD.oxw 2010-05-29 15:09:58 UTC (rev 7006)
+++ code/branches/presentation3/data/levels/presentationLOD.oxw 2010-05-29 18:41:19 UTC (rev 7007)
@@ -16,9 +16,13 @@
ambientlight = "0.8, 0.8, 0.8"
skybox = "Orxonox/Starbox"
>
+
+ <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,100" spawnclass=SpaceShip pawndesign=spaceshipassff />
+
<Model position="0,10,0" scale=3 mesh="ast3.mesh"/>
<Model position="0,-10,0" scale=3 mesh="ast3.mesh"/>
- <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,100" spawnclass=SpaceShip pawndesign=spaceshipassff />
+
</Scene>
</Level>
Modified: code/branches/presentation3/data/levels/presentationLODdif.oxw
===================================================================
--- code/branches/presentation3/data/levels/presentationLODdif.oxw 2010-05-29 15:09:58 UTC (rev 7006)
+++ code/branches/presentation3/data/levels/presentationLODdif.oxw 2010-05-29 18:41:19 UTC (rev 7007)
@@ -1,35 +1,39 @@
<?lua
include("stats.oxo")
include("hudtemplates3.oxo")
- include("lodinformation.oxt")
?>
<?lua
include("templates/spaceship_assff.oxt")
include("templates/spaceship_pirate.oxt")
+ include("templates/lodinformation.oxt")
?>
<Level
name = "Sample"
description = "Just a few tests"
>
+
<lodinformation>
- <MeshLodInformation mesh=ast1.mesh lodQuality=4 />
+ <MeshLodInformation mesh=ast1.mesh lodQuality=4 />
</lodinformation>
+
<Scene
ambientlight = "0.8, 0.8, 0.8"
skybox = "Orxonox/Starbox"
>
- <Model position="0,10,0" scale=3 mesh="ast3.mesh"/>
- <Model position="0,-10,0" scale=3 mesh="ast3.mesh" lodLevel="1"/>
+
<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,100" spawnclass=SpaceShip pawndesign=spaceshipassff />
-
+
+ <Model position="0,10,0" scale=3 mesh="ast3.mesh"/>
+ <Model position="0,-10,0" scale=3 mesh="ast3.mesh" lodLevel="1"/>
+
</Scene>
<templates>
- <Template link=lodtemplate_default />
+ <Template link=lodtemplate_default />
</templates>
+
</Level>
-
-
\ No newline at end of file
Modified: code/branches/presentation3/data/levels/presentation_dm.oxw
===================================================================
--- code/branches/presentation3/data/levels/presentation_dm.oxw 2010-05-29 15:09:58 UTC (rev 7006)
+++ code/branches/presentation3/data/levels/presentation_dm.oxw 2010-05-29 18:41:19 UTC (rev 7007)
@@ -16,13 +16,11 @@
<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
-?>
+ <?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 ?>
<GlobalShader compositor="Bloom" visible=false>
<events>
@@ -32,64 +30,58 @@
</events>
</GlobalShader>
+ <?lua
+ for i = 1, 100, 1 do
+ j = math.random()
+ ?>
+ <MovableEntity position="<?lua print(math.random() * 5000-2000) ?>,<?lua print(math.random() * 5000-2000) ?>,<?lua print(math.random() * 5000 - 2000) ?>" collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=<?lua print(j * 50) ?> scale=<?lua print(j * 5) ?> rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
+ <attached>
+ <Model position="0,0,0" scale=<?lua print(j * 10) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
+ </attached>
+ <collisionShapes>
+ <SphereCollisionShape radius="<?lua print(j * 70) ?>" />
+ </collisionShapes>
+ </MovableEntity>
+ <?lua end ?>
-<?lua
-for i = 1, 100, 1
-do
-j = math.random()
-?>
-
- <MovableEntity position="<?lua print(math.random() * 5000-2000) ?>,<?lua print(math.random() * 5000-2000) ?>,<?lua print(math.random() * 5000 - 2000) ?>" collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=<?lua print(j * 50) ?> scale=<?lua print(j * 5) ?> rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
- <attached>
- <Model position="0,0,0" scale=<?lua print(j * 10) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
- </attached>
- <collisionShapes>
- <SphereCollisionShape radius="<?lua print(j * 70) ?>" />
- </collisionShapes>
- </MovableEntity>
-<?lua
-end
-?>
-
<!--
-<?lua
-for i = 1, 70, 1
-do ?>
- <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 1000 + 3000) ?>" 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() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
- </attached>
- </MovableEntity>
- <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * -1000 - 3000) ?>" 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() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
- </attached>
- </MovableEntity>
+ <?lua
+ for i = 1, 70, 1 do
+ ?>
+ <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 1000 + 3000) ?>" 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() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
+ </attached>
+ </MovableEntity>
+ <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * -1000 - 3000) ?>" 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() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
+ </attached>
+ </MovableEntity>
- <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 1000 + 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" 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() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
- </attached>
- </MovableEntity>
- <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * -1000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" 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() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
- </attached>
- </MovableEntity>
+ <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 1000 + 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" 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() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
+ </attached>
+ </MovableEntity>
+ <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * -1000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" 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() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
+ </attached>
+ </MovableEntity>
- <MovableEntity position="<?lua print(math.random() * 1000 + 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" 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() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
- </attached>
- </MovableEntity>
- <MovableEntity position="<?lua print(math.random() * -1000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" 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() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
- </attached>
- </MovableEntity>
-<?lua
-end
-?>
+ <MovableEntity position="<?lua print(math.random() * 1000 + 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" 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() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
+ </attached>
+ </MovableEntity>
+ <MovableEntity position="<?lua print(math.random() * -1000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" 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() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
+ </attached>
+ </MovableEntity>
+ <?lua end ?>
-->
+
</Scene>
</Level>
Modified: code/branches/presentation3/data/levels/presentation_pong.oxw
===================================================================
--- code/branches/presentation3/data/levels/presentation_pong.oxw 2010-05-29 15:09:58 UTC (rev 7006)
+++ code/branches/presentation3/data/levels/presentation_pong.oxw 2010-05-29 18:41:19 UTC (rev 7007)
@@ -53,180 +53,174 @@
>
<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" />
-<?lua
-end
-?>
+ <?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" />
+ <?lua end ?>
- <MovableEntity rotationrate=5 rotationaxis="0,0,1">
- <attached>
- <PongCenterpoint name=pongcenter dimension="200,120" balltemplate=pongball battemplate=pongbat ballspeed=200 ballaccfactor=1.0 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" />
+ <MovableEntity rotationrate=5 rotationaxis="0,0,1">
+ <attached>
+ <PongCenterpoint name=pongcenter dimension="200,120" balltemplate=pongball battemplate=pongbat ballspeed=200 ballaccfactor=1.0 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" />
- <ParticleSpawner name=scoreeffect_right position="120,0, 45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
- <ParticleSpawner name=scoreeffect_right position="120,0, 30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 />
- <ParticleSpawner name=scoreeffect_right position="120,0, 15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
- <ParticleSpawner name=scoreeffect_right position="120,0, 0" source="Orxonox/BigExplosion1part2" lifetime=0.1 autostart=0 />
- <ParticleSpawner name=scoreeffect_right position="120,0,-15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
- <ParticleSpawner name=scoreeffect_right position="120,0,-30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 />
- <ParticleSpawner name=scoreeffect_right position="120,0,-45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
+ <ParticleSpawner name=scoreeffect_right position="120,0, 45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
+ <ParticleSpawner name=scoreeffect_right position="120,0, 30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 />
+ <ParticleSpawner name=scoreeffect_right position="120,0, 15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
+ <ParticleSpawner name=scoreeffect_right position="120,0, 0" source="Orxonox/BigExplosion1part2" lifetime=0.1 autostart=0 />
+ <ParticleSpawner name=scoreeffect_right position="120,0,-15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
+ <ParticleSpawner name=scoreeffect_right position="120,0,-30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 />
+ <ParticleSpawner name=scoreeffect_right position="120,0,-45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
- <ParticleSpawner name=scoreeffect_left position="-120,0, 45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
- <ParticleSpawner name=scoreeffect_left position="-120,0, 30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 />
- <ParticleSpawner name=scoreeffect_left position="-120,0, 15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
- <ParticleSpawner name=scoreeffect_left position="-120,0, 0" source="Orxonox/BigExplosion1part2" lifetime=0.1 autostart=0 />
- <ParticleSpawner name=scoreeffect_left position="-120,0,-15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
- <ParticleSpawner name=scoreeffect_left position="-120,0,-30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 />
- <ParticleSpawner name=scoreeffect_left position="-120,0,-45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
+ <ParticleSpawner name=scoreeffect_left position="-120,0, 45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
+ <ParticleSpawner name=scoreeffect_left position="-120,0, 30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 />
+ <ParticleSpawner name=scoreeffect_left position="-120,0, 15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
+ <ParticleSpawner name=scoreeffect_left position="-120,0, 0" source="Orxonox/BigExplosion1part2" lifetime=0.1 autostart=0 />
+ <ParticleSpawner name=scoreeffect_left position="-120,0,-15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
+ <ParticleSpawner name=scoreeffect_left position="-120,0,-30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 />
+ <ParticleSpawner name=scoreeffect_left position="-120,0,-45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
- <WorldSound name="scoreSound" position="0,0,0" source="sounds/pong_score.wav" >
- <events>
- <play>
- <EventListener event=pongcenter />
- </play>
- </events>
- </WorldSound>
+ <WorldSound name="scoreSound" position="0,0,0" source="sounds/pong_score.wav" >
+ <events>
+ <play>
+ <EventListener event=pongcenter />
+ </play>
+ </events>
+ </WorldSound>
-<?lua
-for i = 1, 15, 1
-do ?>
- <ParticleSpawner name=scoreeffect_center position="<?lua print(math.random() * 200 - 100) ?>,0,<?lua print(math.random() * 120 - 60) ?>" source="Orxonox/sparks2" lifetime=0.02 autostart=0 startdelay=<?lua print(math.random() * 0.7) ?> />
-<?lua
-end
-?>
+ <?lua
+ for i = 1, 15, 1 do
+ ?>
+ <ParticleSpawner name=scoreeffect_center position="<?lua print(math.random() * 200 - 100) ?>,0,<?lua print(math.random() * 120 - 60) ?>" source="Orxonox/sparks2" lifetime=0.02 autostart=0 startdelay=<?lua print(math.random() * 0.7) ?> />
+ <?lua end ?>
- </attached>
- </PongCenterpoint>
- </attached>
- </MovableEntity>
+ </attached>
+ </PongCenterpoint>
+ </attached>
+ </MovableEntity>
- <EventDispatcher>
- <targets>
- <EventTarget target=scoreeffect_right />
- <EventTarget target=scoreeffect_center />
- </targets>
- <events>
- <spawn>
- <EventFilter>
- <names>
- <EventName name=right />
- </names>
- <EventListener event=pongcenter />
- </EventFilter>
- </spawn>
- </events>
- </EventDispatcher>
- <EventDispatcher>
- <targets>
- <EventTarget target=scoreeffect_left />
- <EventTarget target=scoreeffect_center />
- </targets>
- <events>
- <spawn>
- <EventFilter>
- <names>
- <EventName name=left />
- </names>
- <EventListener event=pongcenter />
- </EventFilter>
- </spawn>
- </events>
- </EventDispatcher>
+ <EventDispatcher>
+ <targets>
+ <EventTarget target=scoreeffect_right />
+ <EventTarget target=scoreeffect_center />
+ </targets>
+ <events>
+ <spawn>
+ <EventFilter>
+ <names>
+ <EventName name=right />
+ </names>
+ <EventListener event=pongcenter />
+ </EventFilter>
+ </spawn>
+ </events>
+ </EventDispatcher>
+ <EventDispatcher>
+ <targets>
+ <EventTarget target=scoreeffect_left />
+ <EventTarget target=scoreeffect_center />
+ </targets>
+ <events>
+ <spawn>
+ <EventFilter>
+ <names>
+ <EventName name=left />
+ </names>
+ <EventListener event=pongcenter />
+ </EventFilter>
+ </spawn>
+ </events>
+ </EventDispatcher>
- <?lua
- dofile("includes/CuboidSpaceStation.lua")
- ?>
+ <?lua
+ dofile("includes/CuboidSpaceStation.lua")
+ ?>
- <StaticEntity pitch=15>
- <attached>
- <MovableEntity rotationrate="-4.15786" rotationaxis="0,0,1">
+ <StaticEntity pitch=15>
+ <attached>
+ <MovableEntity rotationrate="-4.15786" rotationaxis="0,0,1">
+ <attached>
+ <StaticEntity position="-2500,0,0" yaw=90 pitch=90>
+ <attached>
+ <?lua
+ createSpaceStationPar(0,2,1,2,1,4,1,50)
+ ?>
+ </attached>
+ </StaticEntity>
+ </attached>
+ </MovableEntity>
+ </attached>
+ </StaticEntity>
+
+ <StaticEntity position="0,1200,-200" yaw=50 pitch=60 roll=45>
+ <attached>
+ <Model 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>
+ </StaticEntity>
+
+ <StaticEntity pitch=70>
+ <attached>
+ <MovableEntity rotationaxis="0,0,1" rotationrate=8.5974>
+ <attached>
+ <StaticEntity yaw=-90 pitch=0 roll=90 position="800,0,0">
+ <attached>
+ <Model position="0,0,0" scale=10 mesh="satellite.mesh" />
+ <MovableEntity position="-4,0,20" velocity="0,0,0" rotationaxis="0,0,1" rotationrate=50>
+ <attached>
+ <Model position="0,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>
+ </StaticEntity>
+ </attached>
+ </MovableEntity>
+ </attached>
+ </StaticEntity>
+
+ <?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>
- <StaticEntity position="-2500,0,0" yaw=90 pitch=90>
- <attached>
- <?lua
- createSpaceStationPar(0,2,1,2,1,4,1,50)
- ?>
- </attached>
- </StaticEntity>
+ <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
</attached>
</MovableEntity>
- </attached>
- </StaticEntity>
+ <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>
- <StaticEntity position="0,1200,-200" yaw=50 pitch=60 roll=45>
- <attached>
- <Model 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>
- </StaticEntity>
+ <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>
- <StaticEntity pitch=70>
- <attached>
- <MovableEntity rotationaxis="0,0,1" rotationrate=8.5974>
+ <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>
- <StaticEntity yaw=-90 pitch=0 roll=90 position="800,0,0">
- <attached>
- <Model position="0,0,0" scale=10 mesh="satellite.mesh" />
- <MovableEntity position="-4,0,20" velocity="0,0,0" rotationaxis="0,0,1" rotationrate=50>
- <attached>
- <Model position="0,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>
- </StaticEntity>
+ <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
</attached>
</MovableEntity>
- </attached>
- </StaticEntity>
+ <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 ?>
-<?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>
Modified: code/branches/presentation3/data/levels/princessaeryn.oxw
===================================================================
--- code/branches/presentation3/data/levels/princessaeryn.oxw 2010-05-29 15:09:58 UTC (rev 7006)
+++ code/branches/presentation3/data/levels/princessaeryn.oxw 2010-05-29 18:41:19 UTC (rev 7007)
@@ -5,275 +5,269 @@
?>
<?lua
- dofile("includes/CuboidSpaceStation.lua")
+ dofile("includes/CuboidSpaceStation.lua")
?>
<Level
- name = "The Tale of Princess Aeryn"
+ name = "The Tale of Princess Aeryn"
description = "The Tale of Princess Aeryn"
>
- <NotificationQueue
- name = "notification"
- position = "0.55, 0.05"
- font = "VeraMono"
- textsize = 0.020
- length = 3
- width = 50
- />
+ <NotificationQueue
+ name = "notification"
+ position = "0.55, 0.05"
+ font = "VeraMono"
+ textsize = 0.020
+ length = 3
+ width = 50
+ />
- <Scene
- ambientlight = "0.3, 0.3, 0.3"
- 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" />
+ <Scene
+ ambientlight = "0.3, 0.3, 0.3"
+ 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" />
- <!-- Quest: -->
- <GlobalQuest id="b80c2c60-e62c-4637-80f8-5aa18dc93b34">
- <QuestDescription title="The Tale of Princess Aeryn" description="Princess Aeryn has been kidnapped by evil Mr. M and you were just a little too late to save her.\nYou have to find and save her from her captors." failMessage="You cannot fail, how did you?" completeMessage="You did it John. You're a hero. Princess Aeryn however will still not marry you." />
- <subquests>
- <GlobalQuest id="43766602-7e2f-4d24-976a-3f9de1474d5b">
- <QuestDescription title="Find Aeryn's S.H.O.E.S." description="Oh, the kidnappers must have been in a hurry because they overlooked princess Aeryns S.H.O.E.S. (Super Heavily Organized Escape Ship) hidden in the asteroid field over there.\nFind it and look there for clues to Princess Aeryns whereabouts." completeMessage="You did it, Looking through her stuff you find an odd looking device - Could this be the receiver of Princess Aeryns locator beacon? - But it must be broken, the screen remains blank." />
- <complete-effects>
- <AddQuest questId="50845552-c8af-4091-947c-76bd850b224e" />
- </complete-effects>
- </GlobalQuest>
- <GlobalQuest id="50845552-c8af-4091-947c-76bd850b224e">
- <QuestDescription title="Repair the receiver." description="There is a space station called 'Serenity Station' near here. An engineer called Nathan Stark who shoud be able to help you lives there." completeMessage="'Yeah Nathan lives here, he'll shurely help you.'\nAnd he does, apparenty the device was just low on batteries so you're now able to locate your beloved Princess Aeryn." />
- <hints>
- <QuestHint id="b9b10841-b045-4797-b1d3-cfce760e1de6">
- <QuestDescription title="The Katratzi Station" description="'We ain't buying!'\n'What do you want?'\n'No there lives no Nathan here.'\n'Fuck off.''" />
- </QuestHint>
- <QuestHint id="1ee785f8-b71d-4b51-b080-42cec5be8e3c">
- <QuestDescription title="The Pegasus Station" description="'Hello friend.'\n'How can we help you?'\n'A Mr. Stark you say? Sorry no man with such a name lives here.'" />
- </QuestHint>
- </hints>
- <complete-effects>
- <AddQuest questId="97628524-b243-492c-b7b6-498f325b21d4" />
- </complete-effects>
- </GlobalQuest>
- <GlobalQuest id="97628524-b243-492c-b7b6-498f325b21d4">
- <QuestDescription title="Follow the dots" description="Just follow the dots, they'll lead you right to her." completeMessage="You found Princess Aeryn. Her captors give up at the shere sight ou you." />
- <complete-effects>
- <CompleteQuest questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" />
- </complete-effects>
- </GlobalQuest>
- </subquests>
+ <!-- Quest: -->
+ <GlobalQuest id="b80c2c60-e62c-4637-80f8-5aa18dc93b34">
+ <QuestDescription title="The Tale of Princess Aeryn" description="Princess Aeryn has been kidnapped by evil Mr. M and you were just a little too late to save her.\nYou have to find and save her from her captors." failMessage="You cannot fail, how did you?" completeMessage="You did it John. You're a hero. Princess Aeryn however will still not marry you." />
+ <subquests>
+ <GlobalQuest id="43766602-7e2f-4d24-976a-3f9de1474d5b">
+ <QuestDescription title="Find Aeryn's S.H.O.E.S." description="Oh, the kidnappers must have been in a hurry because they overlooked princess Aeryns S.H.O.E.S. (Super Heavily Organized Escape Ship) hidden in the asteroid field over there.\nFind it and look there for clues to Princess Aeryns whereabouts." completeMessage="You did it, Looking through her stuff you find an odd looking device - Could this be the receiver of Princess Aeryns locator beacon? - But it must be broken, the screen remains blank." />
+ <complete-effects>
+ <AddQuest questId="50845552-c8af-4091-947c-76bd850b224e" />
+ </complete-effects>
</GlobalQuest>
+ <GlobalQuest id="50845552-c8af-4091-947c-76bd850b224e">
+ <QuestDescription title="Repair the receiver." description="There is a space station called 'Serenity Station' near here. An engineer called Nathan Stark who shoud be able to help you lives there." completeMessage="'Yeah Nathan lives here, he'll shurely help you.'\nAnd he does, apparenty the device was just low on batteries so you're now able to locate your beloved Princess Aeryn." />
+ <hints>
+ <QuestHint id="b9b10841-b045-4797-b1d3-cfce760e1de6">
+ <QuestDescription title="The Katratzi Station" description="'We ain't buying!'\n'What do you want?'\n'No there lives no Nathan here.'\n'Fuck off.''" />
+ </QuestHint>
+ <QuestHint id="1ee785f8-b71d-4b51-b080-42cec5be8e3c">
+ <QuestDescription title="The Pegasus Station" description="'Hello friend.'\n'How can we help you?'\n'A Mr. Stark you say? Sorry no man with such a name lives here.'" />
+ </QuestHint>
+ </hints>
+ <complete-effects>
+ <AddQuest questId="97628524-b243-492c-b7b6-498f325b21d4" />
+ </complete-effects>
+ </GlobalQuest>
+ <GlobalQuest id="97628524-b243-492c-b7b6-498f325b21d4">
+ <QuestDescription title="Follow the dots" description="Just follow the dots, they'll lead you right to her." completeMessage="You found Princess Aeryn. Her captors give up at the shere sight ou you." />
+ <complete-effects>
+ <CompleteQuest questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" />
+ </complete-effects>
+ </GlobalQuest>
+ </subquests>
+ </GlobalQuest>
- <!-- Create spaceship spawner: -->
- <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>
- <attached>
- <QuestEffectBeacon position="0,0,0" times=1>
+ <!-- Create spaceship spawner: -->
+ <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>
+ <attached>
+ <QuestEffectBeacon position="0,0,0" times=1>
+ <effects>
+ <AddQuest questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" />
+ <AddQuest questId="43766602-7e2f-4d24-976a-3f9de1474d5b" />
+ </effects>
+ <events>
+ <execute>
+ <EventListener event=questbeacon1 />
+ </execute>
+ </events>
+ <attached>
+ <DistanceTrigger name=questbeacon1 position="0,0,0" distance=10 target="Pawn" />
+ </attached>
+ </QuestEffectBeacon>
+ </attached>
+ </ParticleSpawner>
+
+ <!-- Create world -->
+
+ <!-- Kidnapper flying away -->
+ <MovableEntity position="200,0,0" velocity="-140,0,-140" yaw=45>
+ <attached>
+ <Model position="0,0,0" scale=4 yaw=180 pitch=-90 roll=-90 mesh="pirate.mesh" />
+ <ParticleSpawner position="0,0,10" source="Orxonox/fire3" lifetime=2.0 loop=0 autostart=1 />
+ <QuestEffectBeacon position="0,0,0" times=1 active=false name=trail >
+ <effects>
+ <CompleteQuest questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" />
+ </effects>
+ <events>
+ <execute>
+ <EventListener event=questbeacon7 />
+ </execute>
+ </events>
+ <attached>
+ <DistanceTrigger name=questbeacon7 position="0,0,0" distance=10 target="Pawn" />
+ </attached>
+ </QuestEffectBeacon>
+ </attached>
+ </MovableEntity>
+
+ <!-- Asteroid field -->
+ <StaticEntity position="-500,0,-3000">
+ <attached>
+ <?lua
+ for i = 1, 200 do
+ ?>
+ <MovableEntity position="<?lua print(math.random() * 2000 - 1000)?>, <?lua print(math.random() * 2000 - 1000) ?>, <?lua print(math.random() * 2000 - 1000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.abs(math.random() * 30 -10)) ?>">
+ <attached>
+ <Model scale="<?lua print(math.random() * 50) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
+ </attached>
+ </MovableEntity>
+ <?lua end ?>
+ <!-- S.H.O.E.S -->
+ <StaticEntity position="-300,0,0">
+ <attached>
+ <Model position="0,0,0" scale=4 yaw=180 pitch=-90 roll=-90 mesh="assff.mesh" />
+ <QuestEffectBeacon position="0,0,0" times=-1>
<effects>
- <AddQuest questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" />
- <AddQuest questId="43766602-7e2f-4d24-976a-3f9de1474d5b" />
+ <CompleteQuest questId="43766602-7e2f-4d24-976a-3f9de1474d5b" />
</effects>
<events>
- <execute>
- <EventListener event=questbeacon1 />
- </execute>
+ <execute>
+ <EventListener event=questbeacon2 />
+ </execute>
</events>
<attached>
- <DistanceTrigger name=questbeacon1 position="0,0,0" distance=10 target="Pawn" />
+ <DistanceTrigger name=questbeacon2 position="0,0,0" distance=50 target="Pawn" />
</attached>
- </QuestEffectBeacon>
- </attached>
- </ParticleSpawner>
+ </QuestEffectBeacon>
+ </attached>
+ </StaticEntity>
+ </attached>
+ </StaticEntity>
- <!-- Create world -->
- <!-- Kidnapper flying away -->
- <MovableEntity position="200,0,0" velocity="-140,0,-140" yaw=45>
- <attached>
- <Model position="0,0,0" scale=4 yaw=180 pitch=-90 roll=-90 mesh="pirate.mesh" />
- <ParticleSpawner position="0,0,10" source="Orxonox/fire3" lifetime=2.0 loop=0 autostart=1 />
- <QuestEffectBeacon position="0,0,0" times=1 active=false name=trail >
- <effects>
- <CompleteQuest questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" />
- </effects>
- <events>
- <execute>
- <EventListener event=questbeacon7 />
- </execute>
- </events>
- <attached>
- <DistanceTrigger name=questbeacon7 position="0,0,0" distance=10 target="Pawn" />
- </attached>
- </QuestEffectBeacon>
- </attached>
- </MovableEntity>
- <!-- Asteroid field -->
- <StaticEntity position="-500,0,-3000">
- <attached>
- <?lua
- for i = 1, 200
- do ?>
- <MovableEntity position="<?lua print(math.random() * 2000 - 1000)?>, <?lua print(math.random() * 2000 - 1000) ?>, <?lua print(math.random() * 2000 - 1000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.abs(math.random() * 30 -10)) ?>">
- <attached>
- <Model scale="<?lua print(math.random() * 50) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
- </attached>
- </MovableEntity>
- <?lua
- end
- ?>
- <!-- S.H.O.E.S -->
- <StaticEntity position="-300,0,0">
- <attached>
- <Model position="0,0,0" scale=4 yaw=180 pitch=-90 roll=-90 mesh="assff.mesh" />
- <QuestEffectBeacon position="0,0,0" times=-1>
- <effects>
- <CompleteQuest questId="43766602-7e2f-4d24-976a-3f9de1474d5b" />
- </effects>
- <events>
- <execute>
- <EventListener event=questbeacon2 />
- </execute>
- </events>
- <attached>
- <DistanceTrigger name=questbeacon2 position="0,0,0" distance=50 target="Pawn" />
- </attached>
- </QuestEffectBeacon>
- </attached>
- </StaticEntity>
- </attached>
- </StaticEntity>
+ <!-- Spacestations -->
+ <!-- Serenity Station -->
+ <StaticEntity scale=1 position="0,0,5000" yaw=30>
+ <attached>
+ <?lua
+ createSpaceStationPar(65461,2,1,2,1,2,1,100)
+ ?>
+ <QuestEffectBeacon position="0,450,0" times=1>
+ <effects>
+ <CompleteQuest questId="50845552-c8af-4091-947c-76bd850b224e" />
+ </effects>
+ <events>
+ <execute>
+ <EventListener event=questbeacon3 />
+ </execute>
+ </events>
+ <attached>
+ <Billboard position="0,0,0" colour="1.0,1.0,0" material="Examples/Flare" />
+ <DistanceTrigger name=questbeacon3 position="0,0,0" distance=100 target="Pawn" />
+ </attached>
+ </QuestEffectBeacon>
+ </attached>
+ </StaticEntity>
+ <!-- Katratzi Station -->
+ <StaticEntity scale=1 position="0,5000,300" yaw=60>
+ <attached>
+ <?lua
+ createSpaceStationPar(9851,2,1,2,1,2,1,100)
+ ?>
+ <QuestEffectBeacon position="0,450,0" times=1>
+ <effects>
+ <AddQuestHint hintId="b9b10841-b045-4797-b1d3-cfce760e1de6" />
+ </effects>
+ <events>
+ <execute>
+ <EventListener event=questbeacon4 />
+ </execute>
+ </events>
+ <attached>
+ <Billboard position="0,0,0" colour="1.0,1.0,0" material="Examples/Flare" />
+ <DistanceTrigger name=questbeacon4 position="0,0,0" distance=100 target="Pawn" />
+ </attached>
+ </QuestEffectBeacon>
+ </attached>
+ </StaticEntity>
- <!-- Spacestations -->
+ <!-- Pegasus Station -->
+ <StaticEntity scale=1 position="-5000,100,1000" roll=30>
+ <attached>
+ <?lua
+ createSpaceStationPar(3574,2,1,2,1,2,1,100)
+ ?>
+ <QuestEffectBeacon position="200,450,0" times=1>
+ <effects>
+ <AddQuestHint hintId="1ee785f8-b71d-4b51-b080-42cec5be8e3c" />
+ </effects>
+ <events>
+ <execute>
+ <EventListener event=questbeacon5 />
+ </execute>
+ </events>
+ <attached>
+ <Billboard position="0,0,0" colour="1.0,1.0,0" material="Examples/Flare" />
+ <DistanceTrigger name=questbeacon5 position="0,0,0" distance=100 target="Pawn" />
+ </attached>
+ </QuestEffectBeacon>
+ </attached>
+ </StaticEntity>
- <!-- Serenity Station -->
- <StaticEntity scale=1 position="0,0,5000" yaw=30>
- <attached>
- <?lua
- createSpaceStationPar(65461,2,1,2,1,2,1,100)
- ?>
- <QuestEffectBeacon position="0,450,0" times=1>
- <effects>
- <CompleteQuest questId="50845552-c8af-4091-947c-76bd850b224e" />
- </effects>
- <events>
- <execute>
- <EventListener event=questbeacon3 />
- </execute>
- </events>
- <attached>
- <Billboard position="0,0,0" colour="1.0,1.0,0" material="Examples/Flare" />
- <DistanceTrigger name=questbeacon3 position="0,0,0" distance=100 target="Pawn" />
- </attached>
- </QuestEffectBeacon>
- </attached>
- </StaticEntity>
+ <!-- Trail -->
+ <EventDispatcher>
+ <targets>
+ <EventTarget target=trail />
+ </targets>
+ <events>
+ <visibility>
+ <QuestListener questId="50845552-c8af-4091-947c-76bd850b224e" mode="complete" />
+ </visibility>
+ <activity>
+ <QuestListener questId="50845552-c8af-4091-947c-76bd850b224e" mode="complete" />
+ </activity>
+ </events>
+ </EventDispatcher>
- <!-- Katratzi Station -->
- <StaticEntity scale=1 position="0,5000,300" yaw=60>
- <attached>
- <?lua
- createSpaceStationPar(9851,2,1,2,1,2,1,100)
- ?>
- <QuestEffectBeacon position="0,450,0" times=1>
- <effects>
- <AddQuestHint hintId="b9b10841-b045-4797-b1d3-cfce760e1de6" />
- </effects>
- <events>
- <execute>
- <EventListener event=questbeacon4 />
- </execute>
- </events>
- <attached>
- <Billboard position="0,0,0" colour="1.0,1.0,0" material="Examples/Flare" />
- <DistanceTrigger name=questbeacon4 position="0,0,0" distance=100 target="Pawn" />
- </attached>
- </QuestEffectBeacon>
- </attached>
- </StaticEntity>
+ <?lua
+ for i = 1, 25 do
+ ?>
+ <Billboard position="<?lua print(i*5000/25) ?>,<?lua print(450+i*(5000-450)/25) ?>,5000" colour="1.0,0,0" material="Examples/Flare" name=trail visible=false/>
+ <?lua end ?>
- <!-- Pegasus Station -->
- <StaticEntity scale=1 position="-5000,100,1000" roll=30>
- <attached>
- <?lua
- createSpaceStationPar(3574,2,1,2,1,2,1,100)
- ?>
- <QuestEffectBeacon position="200,450,0" times=1>
- <effects>
- <AddQuestHint hintId="1ee785f8-b71d-4b51-b080-42cec5be8e3c" />
- </effects>
- <events>
- <execute>
- <EventListener event=questbeacon5 />
- </execute>
- </events>
- <attached>
- <Billboard position="0,0,0" colour="1.0,1.0,0" material="Examples/Flare" />
- <DistanceTrigger name=questbeacon5 position="0,0,0" distance=100 target="Pawn" />
- </attached>
- </QuestEffectBeacon>
- </attached>
- </StaticEntity>
+ <!-- Hideout -->
+ <StaticEntity position="5000,5000,5000" >
+ <attached>
+ <Model scale="100" mesh="ast2.mesh" shadow=false />
+ </attached>
+ </StaticEntity>
- <!-- Trail -->
- <EventDispatcher>
- <targets>
- <EventTarget target=trail />
- </targets>
- <events>
- <visibility>
- <QuestListener questId="50845552-c8af-4091-947c-76bd850b224e" mode="complete" />
- </visibility>
- <activity>
- <QuestListener questId="50845552-c8af-4091-947c-76bd850b224e" mode="complete" />
- </activity>
- </events>
- </EventDispatcher>
+ <StaticEntity position="5400,5400,5000" visible=false name=trail >
+ <attached>
+ <Model position="0,0,0" scale=4 yaw=180 pitch=-90 roll=-90 mesh="pirate.mesh" visible=false name=trail />
+ <QuestEffectBeacon position="0,0,0" times=1 active=false name=trail >
+ <effects>
+ <CompleteQuest questId="97628524-b243-492c-b7b6-498f325b21d4" />
+ </effects>
+ <events>
+ <execute>
+ <EventListener event=questbeacon6 />
+ </execute>
+ </events>
+ <attached>
+ <DistanceTrigger name=questbeacon6 position="0,0,0" distance=100 target="Pawn" />
+ </attached>
+ </QuestEffectBeacon>
+ </attached>
+ </StaticEntity>
- <?lua
- for i = 1, 25
- do
- ?>
- <Billboard position="<?lua print(i*5000/25) ?>,<?lua print(450+i*(5000-450)/25) ?>,5000" colour="1.0,0,0" material="Examples/Flare" name=trail visible=false/>
- <?lua
- end
- ?>
-
- <!-- Hideout -->
- <StaticEntity position="5000,5000,5000" >
- <attached>
- <Model scale="100" mesh="ast2.mesh" shadow=false />
- </attached>
- </StaticEntity>
-
- <StaticEntity position="5400,5400,5000" visible=false name=trail >
- <attached>
- <Model position="0,0,0" scale=4 yaw=180 pitch=-90 roll=-90 mesh="pirate.mesh" visible=false name=trail />
- <QuestEffectBeacon position="0,0,0" times=1 active=false name=trail >
- <effects>
- <CompleteQuest questId="97628524-b243-492c-b7b6-498f325b21d4" />
- </effects>
- <events>
- <execute>
- <EventListener event=questbeacon6 />
- </execute>
- </events>
- <attached>
- <DistanceTrigger name=questbeacon6 position="0,0,0" distance=100 target="Pawn" />
- </attached>
- </QuestEffectBeacon>
- </attached>
- </StaticEntity>
-
- </Scene>
+ </Scene>
</Level>
-
Deleted: code/branches/presentation3/data/levels/questsystem2.oxw
===================================================================
--- code/branches/presentation3/data/levels/questsystem2.oxw 2010-05-29 15:09:58 UTC (rev 7006)
+++ code/branches/presentation3/data/levels/questsystem2.oxw 2010-05-29 18:41:19 UTC (rev 7007)
@@ -1,244 +0,0 @@
-<?lua
- include("hudtemplates3.oxo")
- include("stats.oxo")
- include("templates/spaceship_assff.oxt")
-?>
-
-<Level
- name = "QuestSystem2"
- description = "Test level for Questsystem-Features"
-
->
-
- <NotificationQueue
- name = "notification"
- position = "0.55, 0.05"
- font = "VeraMono"
- textsize = 0.020
- length = 3
- width = 50
- />
-
- <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" />
-
- <GlobalQuest id="b80c2c60-e62c-4637-80f8-5aa18dc93b34">
- <QuestDescription title="The Main QUest" description="This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! " failMessage="You fail. Looser." completeMessage="You Win." />
- <hints>
- <QuestHint id="022a859d-08dd-4eac-a085-c28c29c06d48">
- <QuestDescription title="The super Hint." description="Be proud of yourself." />
- </QuestHint>
- <QuestHint id="aa19e785-f110-4f3a-abc4-b5e76556e71">
- <QuestDescription title="The super Hint.2" description="Be proud of yourself.2" />
- </QuestHint>
- <QuestHint id="93d0bdcb-9ce1-4f96-bc69-8d04e659fb31">
- <QuestDescription title="The super Hint.3" description="Be proud of yourself.3" />
- </QuestHint>
- </hints>
- <subquests>
- <GlobalQuest id="e17f5245-f95b-44a8-b6cf-402274435ed4">
- <QuestDescription title="The Main QUest2" description="This is the main quest hooray. Solve it!" failMessage="You fail. Looser." completeMessage="You Win." />
- <subquests>
- <GlobalQuest id="cff6c1ae-fae7-4e55-8af0-56c939911679">
- <QuestDescription title="The Main QUest2.1" description="This is the main quest hooray. Solve it!" failMessage="You fail. Looser." completeMessage="You Win." />
- </GlobalQuest>
- <GlobalQuest id="c04016a3-1e43-4797-885f-75ababa22e07">
- <QuestDescription title="The Main QUest2.2" description="This is the main quest hooray. Solve it!" failMessage="You fail. Looser." completeMessage="You Win." />
- </GlobalQuest>
- </subquests>
- </GlobalQuest>
- <GlobalQuest id="71becf91-1456-4763-a2c9-5d575fbcf087">
- <QuestDescription title="The Main QUest3" description="This is the main quest hooray. Solve it!" failMessage="You fail. Looser." completeMessage="You Win." />
- </GlobalQuest>
- <GlobalQuest id="ca3198a2-ea9d-48d0-b07a-e30f9aa8e241">
- <QuestDescription title="The Main QUest4" description="This is the main quest hooray. Solve it!" failMessage="You fail. Looser." completeMessage="You Win." />
- </GlobalQuest>
- </subquests>
- </GlobalQuest>
- <GlobalQuest id="d7b9526e-b369-43ca-a377-163007cd0577">
- <QuestDescription title="Mup" description="" />
- </GlobalQuest>
- <GlobalQuest id="41f729ed-892d-499a-a977-fd3ade3232c2">
- <QuestDescription title="Mup" description="" />
- </GlobalQuest>
- <GlobalQuest id="efc6af59-2a49-4220-8486-dce649350d85">
- <QuestDescription title="Mup" description="" />
- </GlobalQuest>
- <GlobalQuest id="c0bb8864-78a4-4984-b33e-19ca703cf022">
- <QuestDescription title="Mup" description="" />
- </GlobalQuest>
- <GlobalQuest id="7b1d7fce-b5f2-45e8-9e42-7fda78410892">
- <QuestDescription title="Mup" description="" />
- </GlobalQuest>
- <GlobalQuest id="ae4287e4-7a65-4fc2-912b-aebd033fcfb7">
- <QuestDescription title="Mup" description="" />
- </GlobalQuest>
- <GlobalQuest id="9312ee34-650b-494b-bf12-12394f94d248">
- <QuestDescription title="Mup" description="" />
- </GlobalQuest>
- <GlobalQuest id="d0b610db-aa09-4590-a7a8-1fad9be72bd9">
- <QuestDescription title="Mup" description="" />
- </GlobalQuest>
- <GlobalQuest id="3106c2d5-3f90-42fb-a164-bde993b13e20">
- <QuestDescription title="Mup" description="" />
- </GlobalQuest>
- <GlobalQuest id="a7a82d75-ebc5-487a-8f20-33fa79bc911d">
- <QuestDescription title="Mup" description="" />
- </GlobalQuest>
- <GlobalQuest id="32b2da07-882f-4e8b-8c32-ea548c11d91d">
- <QuestDescription title="Mup" description="" />
- </GlobalQuest>
- <GlobalQuest id="8945258e-56ea-45d3-b873-e237e2709866">
- <QuestDescription title="Mup" description="" />
- </GlobalQuest>
- <GlobalQuest id="9108702d-f3cd-400f-9c13-b2743886dddb">
- <QuestDescription title="Mup" description="" />
- </GlobalQuest>
- <GlobalQuest id="03a4bf9f-57ba-4676-97c8-6197086eff16">
- <QuestDescription title="Mup" description="" />
- </GlobalQuest>
- <GlobalQuest id="89311e30-2938-4bcb-ba93-23ca3037cdda">
- <QuestDescription title="Mup" description="" />
- </GlobalQuest>
- <GlobalQuest id="5ca628bb-cb62-4c54-9e0e-18139a8c5f02">
- <QuestDescription title="Mup" description="" />
- </GlobalQuest>
- <GlobalQuest id="e73aed96-02ca-452a-bdd0-61a3a549cf61">
- <QuestDescription title="Mup" description="" />
- </GlobalQuest>
- <GlobalQuest id="694cf67f-3579-41cf-ba52-11d4b311327c">
- <QuestDescription title="Mup" description="" />
- </GlobalQuest>
- <GlobalQuest id="540ab003-ea02-4556-b95a-053ce191ea7f">
- <QuestDescription title="Mup" description="" />
- </GlobalQuest>
-
-<SpawnPoint position="0,0,100" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
-
- <QuestEffectBeacon position="0,0,100" times=-1>
- <effects>
- <AddQuest questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" />
- <AddQuest questId="e17f5245-f95b-44a8-b6cf-402274435ed4" />
- <AddQuest questId="cff6c1ae-fae7-4e55-8af0-56c939911679" />
- <AddQuest questId="c04016a3-1e43-4797-885f-75ababa22e07" />
- <AddQuest questId="71becf91-1456-4763-a2c9-5d575fbcf087" />
- <AddQuest questId="ca3198a2-ea9d-48d0-b07a-e30f9aa8e241" />
- <AddQuest questId="d7b9526e-b369-43ca-a377-163007cd0577" />
- <AddQuest questId="41f729ed-892d-499a-a977-fd3ade3232c2" />
- <AddQuest questId="efc6af59-2a49-4220-8486-dce649350d85" />
- <AddQuest questId="c0bb8864-78a4-4984-b33e-19ca703cf022" />
- <AddQuest questId="7b1d7fce-b5f2-45e8-9e42-7fda78410892" />
- <AddQuest questId="ae4287e4-7a65-4fc2-912b-aebd033fcfb7" />
- <AddQuest questId="9312ee34-650b-494b-bf12-12394f94d248" />
- <AddQuest questId="d0b610db-aa09-4590-a7a8-1fad9be72bd9" />
- <AddQuest questId="3106c2d5-3f90-42fb-a164-bde993b13e20" />
- <AddQuest questId="a7a82d75-ebc5-487a-8f20-33fa79bc911d" />
- <AddQuest questId="32b2da07-882f-4e8b-8c32-ea548c11d91d" />
- <AddQuest questId="8945258e-56ea-45d3-b873-e237e2709866" />
- <AddQuest questId="9108702d-f3cd-400f-9c13-b2743886dddb" />
- <AddQuest questId="03a4bf9f-57ba-4676-97c8-6197086eff16" />
- <AddQuest questId="89311e30-2938-4bcb-ba93-23ca3037cdda" />
- <AddQuest questId="5ca628bb-cb62-4c54-9e0e-18139a8c5f02" />
- <AddQuest questId="e73aed96-02ca-452a-bdd0-61a3a549cf61" />
- <AddQuest questId="694cf67f-3579-41cf-ba52-11d4b311327c" />
- <AddQuest questId="540ab003-ea02-4556-b95a-053ce191ea7f" />
- </effects>
- <events>
- <execute>
- <EventListener event=qebdt1 />
- </execute>
- </events>
- <attached>
- <Billboard position="0,0,0" colour="1.0,1.0,1.0" material="Examples/Flare" />
- <DistanceTrigger name=qebdt1 position="0,0,0" distance=10 target="ControllableEntity" />
- </attached>
- </QuestEffectBeacon>
-
- <QuestEffectBeacon position="-100,0,0" times=-1>
- <effects>
- <FailQuest questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" />
- </effects>
- <events>
- <execute>
- <EventListener event=qebdt2 />
- </execute>
- </events>
- <attached>
- <Billboard position="0,0,0" colour="1.0,0,0" material="Examples/Flare" />
- <DistanceTrigger name=qebdt2 position="0,0,0" distance=10 target="ControllableEntity" />
- </attached>
- </QuestEffectBeacon>
-
- <QuestEffectBeacon position="100,0,0" times=-1>
- <effects>
- <CompleteQuest questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" />
- </effects>
- <events>
- <execute>
- <EventListener event=qebdt3 />
- </execute>
- </events>
- <attached>
- <Billboard position="0,0,0" colour="0,1.0,0" material="Examples/Flare" />
- <DistanceTrigger name=qebdt3 position="0,0,0" distance=10 target="ControllableEntity" />
- </attached>
- </QuestEffectBeacon>
-
- <QuestEffectBeacon position="0,100,0" times=-1>
- <effects>
- <AddQuestHint hintId="022a859d-08dd-4eac-a085-c28c29c06d48" />
- <AddQuestHint hintId="aa19e785-f110-4f3a-abc4-b5e76556e71" />
- <AddQuestHint hintId="93d0bdcb-9ce1-4f96-bc69-8d04e659fb31" />
- </effects>
- <events>
- <execute>
- <EventListener event=qebdt4 />
- </execute>
- </events>
- <attached>
- <Billboard position="0,0,0" colour="0,0,1.0" material="Examples/Flare" />
- <DistanceTrigger name=qebdt4 position="0,0,0" distance=10 target="ControllableEntity" />
- </attached>
- </QuestEffectBeacon>
-
- <ParticleEmitter name=firecenter position="0,0,0" source="Orxonox/fire3" active=false>
- <events>
- <activity>
- <QuestListener questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" mode="complete" />
- </activity>
- </events>
- </ParticleEmitter>
-
-<?lua
-max = 20
-for i = 1, max, 1
-do
- x = math.sin(i/max*6)*40000
- y = math.cos(i/max*6)*40000
- z = i*100
- ?>
-<?lua
-for k = 1, 25, 1
-do
-j = math.random()
-?>
-
- <MovableEntity position="<?lua print(x + math.random() * 10000-2500) ?>,<?lua print(y + math.random() * 5000-2500) ?>,<?lua print(z + math.random() * 1000-500) ?>" <?lua if i == 5 then ?> collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=<?lua print(j * 50) ?> <?lua end ?> scale=<?lua print(j * 5) ?> rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
- <attached>
- <Model position="0,0,0" scale=<?lua print(j * 10) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
- </attached>
- <?lua if i == 5 then ?><collisionShapes>
- <SphereCollisionShape radius="<?lua print(j * 70) ?>" />
- </collisionShapes> <?lua end ?>
- </MovableEntity>
-<?lua
-end
-?>
-<?lua end ?>
- <Planet position="0,0,0" scale=10000 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="1,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f />
-
- </Scene>
-</Level>
Modified: code/branches/presentation3/data/levels/sound.oxw
===================================================================
--- code/branches/presentation3/data/levels/sound.oxw 2010-05-29 15:09:58 UTC (rev 7006)
+++ code/branches/presentation3/data/levels/sound.oxw 2010-05-29 18:41:19 UTC (rev 7007)
@@ -20,29 +20,30 @@
<AmbientSound ambientSource="Earth.ogg" looping="true" playOnLoad="true" />
<AmbientSound ambientSource="Mars.ogg" looping="true">
<events>
- <activity>
- <DistanceTrigger position="400,0,0" distance=200 target="Camera">
- <attached>
- <ParticleSpawner position="0,0,0" source="Orxonox/fire3" lifetime=0 loop=0 autostart=1 />
- </attached>
- </DistanceTrigger>
- </activity>
+ <activity>
+ <DistanceTrigger position="400,0,0" distance=200 target="Camera">
+ <attached>
+ <ParticleSpawner position="0,0,0" source="Orxonox/fire3" lifetime=0 loop=0 autostart=1 />
+ </attached>
+ </DistanceTrigger>
+ </activity>
</events>
</AmbientSound>
<AmbientSound ambientSource="Jupiter.ogg" looping="true">
<events>
- <activity>
- <DistanceTrigger position="400,150,0" distance=200 target="Camera">
- <attached>
- <ParticleSpawner position="0,0,0" source="Orxonox/fire3" lifetime=0 loop=0 autostart=1 />
- </attached>
- </DistanceTrigger>
- </activity>
+ <activity>
+ <DistanceTrigger position="400,150,0" distance=200 target="Camera">
+ <attached>
+ <ParticleSpawner position="0,0,0" source="Orxonox/fire3" lifetime=0 loop=0 autostart=1 />
+ </attached>
+ </DistanceTrigger>
+ </activity>
</events>
</AmbientSound>
<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=spaceshipassff />
+
</Scene>
</Level>
Modified: code/branches/presentation3/data/levels/teambasematchlevel.oxw
===================================================================
--- code/branches/presentation3/data/levels/teambasematchlevel.oxw 2010-05-29 15:09:58 UTC (rev 7006)
+++ code/branches/presentation3/data/levels/teambasematchlevel.oxw 2010-05-29 18:41:19 UTC (rev 7007)
@@ -12,6 +12,7 @@
description = "A simple testlevel"
gametype = TeamBaseMatch
>
+
<templates>
<Template link=lodtemplate_default />
</templates>
@@ -44,15 +45,19 @@
<Model scale=10 mesh="DuBall2.mesh" position = "100,0,0"/>
<Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "-100,0,0"/>
<Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "100,0,0"/>
-<?lua
-for i = 1, 10, 1
-do ?>
- <ParticleSpawner position="<?lua print(math.random() * 400 - 200) ?>,<?lua print(math.random() * 200 - 100) ?>,<?lua print(math.random() * 200 - 100) ?>" startdelay=<?lua print(math.random()) ?> source="Orxonox/BigExplosion1part1" lifetime=2.0 loop=0 autostart=0>
- <events><spawn><EventListener event="base 1" /></spawn></events>
- </ParticleSpawner>
-<?lua
-end
-?>
+
+ <?lua
+ for i = 1, 10, 1 do
+ ?>
+ <ParticleSpawner position="<?lua print(math.random() * 400 - 200) ?>,<?lua print(math.random() * 200 - 100) ?>,<?lua print(math.random() * 200 - 100) ?>" startdelay=<?lua print(math.random()) ?> source="Orxonox/BigExplosion1part1" lifetime=2.0 loop=0 autostart=0>
+ <events>
+ <spawn>
+ <EventListener event="base 1" />
+ </spawn>
+ </events>
+ </ParticleSpawner>
+ <?lua end ?>
+
</attached>
<collisionShapes>
<SphereCollisionShape radius="80" position = "-100,0,0" />
@@ -81,15 +86,19 @@
<Model scale=10 mesh="DuBall2.mesh" position = "100,0,0"/>
<Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "-100,0,0"/>
<Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "100,0,0"/>
-<?lua
-for i = 1, 10, 1
-do ?>
- <ParticleSpawner position="<?lua print(math.random() * 400 - 200) ?>,<?lua print(math.random() * 200 - 100) ?>,<?lua print(math.random() * 200 - 100) ?>" startdelay=<?lua print(math.random()) ?> source="Orxonox/BigExplosion1part1" lifetime=2.0 loop=0 autostart=0>
- <events><spawn><EventListener event="base 2" /></spawn></events>
- </ParticleSpawner>
-<?lua
-end
-?>
+
+ <?lua
+ for i = 1, 10, 1 do
+ ?>
+ <ParticleSpawner position="<?lua print(math.random() * 400 - 200) ?>,<?lua print(math.random() * 200 - 100) ?>,<?lua print(math.random() * 200 - 100) ?>" startdelay=<?lua print(math.random()) ?> source="Orxonox/BigExplosion1part1" lifetime=2.0 loop=0 autostart=0>
+ <events>
+ <spawn>
+ <EventListener event="base 2" />
+ </spawn>
+ </events>
+ </ParticleSpawner>
+ <?lua end ?>
+
</attached>
<collisionShapes>
<SphereCollisionShape radius="80" position = "-100,0,0" />
@@ -118,15 +127,19 @@
<Model scale=10 mesh="DuBall2.mesh" position = "100,0,0"/>
<Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "-100,0,0"/>
<Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "100,0,0"/>
-<?lua
-for i = 1, 10, 1
-do ?>
- <ParticleSpawner position="<?lua print(math.random() * 400 - 200) ?>,<?lua print(math.random() * 200 - 100) ?>,<?lua print(math.random() * 200 - 100) ?>" startdelay=<?lua print(math.random()) ?> source="Orxonox/BigExplosion1part1" lifetime=2.0 loop=0 autostart=0>
- <events><spawn><EventListener event="base 3" /></spawn></events>
- </ParticleSpawner>
-<?lua
-end
-?>
+
+ <?lua
+ for i = 1, 10, 1 do
+ ?>
+ <ParticleSpawner position="<?lua print(math.random() * 400 - 200) ?>,<?lua print(math.random() * 200 - 100) ?>,<?lua print(math.random() * 200 - 100) ?>" startdelay=<?lua print(math.random()) ?> source="Orxonox/BigExplosion1part1" lifetime=2.0 loop=0 autostart=0>
+ <events>
+ <spawn>
+ <EventListener event="base 3" />
+ </spawn>
+ </events>
+ </ParticleSpawner>
+ <?lua end ?>
+
</attached>
<collisionShapes>
<SphereCollisionShape radius="80" position = "-100,0,0" />
@@ -154,15 +167,19 @@
<Model scale=10 mesh="DuBall2.mesh" position = "100,0,0"/>
<Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "-100,0,0"/>
<Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "100,0,0"/>
-<?lua
-for i = 1, 10, 1
-do ?>
- <ParticleSpawner position="<?lua print(math.random() * 400 - 200) ?>,<?lua print(math.random() * 200 - 100) ?>,<?lua print(math.random() * 200 - 100) ?>" startdelay=<?lua print(math.random()) ?> source="Orxonox/BigExplosion1part1" lifetime=2.0 loop=0 autostart=0>
- <events><spawn><EventListener event="base 4" /></spawn></events>
- </ParticleSpawner>
-<?lua
-end
-?>
+
+ <?lua
+ for i = 1, 10, 1 do
+ ?>
+ <ParticleSpawner position="<?lua print(math.random() * 400 - 200) ?>,<?lua print(math.random() * 200 - 100) ?>,<?lua print(math.random() * 200 - 100) ?>" startdelay=<?lua print(math.random()) ?> source="Orxonox/BigExplosion1part1" lifetime=2.0 loop=0 autostart=0>
+ <events>
+ <spawn>
+ <EventListener event="base 4" />
+ </spawn>
+ </events>
+ </ParticleSpawner>
+ <?lua end ?>
+
</attached>
<collisionShapes>
<SphereCollisionShape radius="80" position = "-100,0,0" />
@@ -191,15 +208,19 @@
<Model scale=10 mesh="DuBall2.mesh" position = "100,0,0"/>
<Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "-100,0,0"/>
<Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "100,0,0"/>
-<?lua
-for i = 1, 10, 1
-do ?>
- <ParticleSpawner position="<?lua print(math.random() * 400 - 200) ?>,<?lua print(math.random() * 200 - 100) ?>,<?lua print(math.random() * 200 - 100) ?>" startdelay=<?lua print(math.random()) ?> source="Orxonox/BigExplosion1part1" lifetime=2.0 loop=0 autostart=0>
- <events><spawn><EventListener event="base 5" /></spawn></events>
- </ParticleSpawner>
-<?lua
-end
-?>
+
+ <?lua
+ for i = 1, 10, 1 do
+ ?>
+ <ParticleSpawner position="<?lua print(math.random() * 400 - 200) ?>,<?lua print(math.random() * 200 - 100) ?>,<?lua print(math.random() * 200 - 100) ?>" startdelay=<?lua print(math.random()) ?> source="Orxonox/BigExplosion1part1" lifetime=2.0 loop=0 autostart=0>
+ <events>
+ <spawn>
+ <EventListener event="base 5" />
+ </spawn>
+ </events>
+ </ParticleSpawner>
+ <?lua end ?>
+
</attached>
<collisionShapes>
<SphereCollisionShape radius="80" position = "-100,0,0" />
@@ -208,13 +229,12 @@
</collisionShapes>
</TeamBaseMatchBase>
-
-
<!--Model position="0,0,0" scale=8 mesh="ast1.mesh" />
<StaticEntity position="0,0,0" collisionType=static>
<collisionShapes>
<SphereCollisionShape radius="20" />
</collisionShapes>
</StaticEntity-->
+
</Scene>
</Level>
Modified: code/branches/presentation3/data/levels/teamdeathmatch.oxw
===================================================================
--- code/branches/presentation3/data/levels/teamdeathmatch.oxw 2010-05-29 15:09:58 UTC (rev 7006)
+++ code/branches/presentation3/data/levels/teamdeathmatch.oxw 2010-05-29 18:41:19 UTC (rev 7007)
@@ -38,44 +38,42 @@
<TeamSpawnPoint team=2 position="1000,150,1500" direction="0,0,-1" spawnclass=SpaceShip pawndesign=spaceshipHtwo />
-<?lua
-for i = 1, 70, 1
-do ?>
- <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 1000 + 3000) ?>" 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() * 50 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
- </attached>
- </MovableEntity>
- <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * -1000 - 3000) ?>" 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() * 50 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
- </attached>
- </MovableEntity>
+ <?lua
+ for i = 1, 70, 1 do
+ ?>
+ <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 1000 + 3000) ?>" 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() * 50 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
+ </attached>
+ </MovableEntity>
+ <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * -1000 - 3000) ?>" 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() * 50 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
+ </attached>
+ </MovableEntity>
- <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 1000 + 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" 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() * 50 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
- </attached>
- </MovableEntity>
- <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * -1000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" 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() * 50 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
- </attached>
- </MovableEntity>
+ <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 1000 + 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" 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() * 50 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
+ </attached>
+ </MovableEntity>
+ <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * -1000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" 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() * 50 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
+ </attached>
+ </MovableEntity>
- <MovableEntity position="<?lua print(math.random() * 1000 + 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" 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() * 50 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
- </attached>
- </MovableEntity>
- <MovableEntity position="<?lua print(math.random() * -1000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" 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() * 50 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
- </attached>
- </MovableEntity>
-<?lua
-end
-?>
+ <MovableEntity position="<?lua print(math.random() * 1000 + 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" 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() * 50 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
+ </attached>
+ </MovableEntity>
+ <MovableEntity position="<?lua print(math.random() * -1000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" 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() * 50 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
+ </attached>
+ </MovableEntity>
+ <?lua end ?>
</Scene>
</Level>
Modified: code/branches/presentation3/data/levels/test_ghost.oxw
===================================================================
--- code/branches/presentation3/data/levels/test_ghost.oxw 2010-05-29 15:09:58 UTC (rev 7006)
+++ code/branches/presentation3/data/levels/test_ghost.oxw 2010-05-29 18:41:19 UTC (rev 7007)
@@ -14,38 +14,33 @@
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" />
+ <SpawnPoint position="<?lua print(math.sin(1.5) *40000) ?>,<?lua print(math.cos(1.5) *40000) ?>,<?lua print(500) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipghost />
-<SpawnPoint position="<?lua print(math.sin(1.5) *40000) ?>,<?lua print(math.cos(1.5) *40000) ?>,<?lua print(500) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipghost />
-
-
-<?lua
-max = 20
-for i = 1, max, 1
-do
- x = math.sin(i/max*6)*40000
- y = math.cos(i/max*6)*40000
- z = i*100
+ <?lua
+ max = 20
+ for i = 1, max, 1 do
+ x = math.sin(i/max*6)*40000
+ y = math.cos(i/max*6)*40000
+ z = i*100
+ for k = 1, 25, 1 do
+ j = math.random()
?>
-<?lua
-for k = 1, 25, 1
-do
-j = math.random()
-?>
-
- <MovableEntity position="<?lua print(x + math.random() * 10000-2500) ?>,<?lua print(y + math.random() * 5000-2500) ?>,<?lua print(z + math.random() * 1000-500) ?>" <?lua if i == 5 then ?> collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=<?lua print(j * 50) ?> <?lua end ?> scale=<?lua print(j * 5) ?> rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
- <attached>
- <Model position="0,0,0" scale=<?lua print(j * 10) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
- </attached>
- <?lua if i == 5 then ?><collisionShapes>
- <SphereCollisionShape radius="<?lua print(j * 70) ?>" />
- </collisionShapes> <?lua end ?>
- </MovableEntity>
-<?lua
-end
-?>
-<?lua end ?>
+ <MovableEntity position="<?lua print(x + math.random() * 10000-2500) ?>,<?lua print(y + math.random() * 5000-2500) ?>,<?lua print(z + math.random() * 1000-500) ?>" <?lua if i == 5 then ?> collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=<?lua print(j * 50) ?> <?lua end ?> scale=<?lua print(j * 5) ?> rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
+ <attached>
+ <Model position="0,0,0" scale=<?lua print(j * 10) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
+ </attached>
+ <?lua if i == 5 then ?><collisionShapes>
+ <SphereCollisionShape radius="<?lua print(j * 70) ?>" />
+ </collisionShapes> <?lua end ?>
+ </MovableEntity>
+ <?lua
+ end
+ end
+ ?>
+
<Planet position="0,0,0" scale=10000 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="1,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f />
</Scene>
Modified: code/branches/presentation3/data/levels/tutorial.oxw
===================================================================
--- code/branches/presentation3/data/levels/tutorial.oxw 2010-05-29 15:09:58 UTC (rev 7006)
+++ code/branches/presentation3/data/levels/tutorial.oxw 2010-05-29 18:41:19 UTC (rev 7007)
@@ -13,36 +13,34 @@
skybox = "Orxonox/skypanoramagen1"
>
-<Drone name="meineDrohne" primarythrust="80" auxilarythrust="10" rotationthrust="10" mass= "50" linearDamping = "0.9" angularDamping = "0.7">
- <attached>
- <Model scale="1" mesh="drone.mesh"/>
- </attached>
- <collisionShapes>
- <BoxCollisionShape position="0,0,0" halfExtents="10, 10, 10" />
- </collisionShapes>
-</Drone>
+ <Drone name="meineDrohne" primarythrust="80" auxilarythrust="10" rotationthrust="10" mass= "50" linearDamping = "0.9" angularDamping = "0.7">
+ <attached>
+ <Model scale="1" mesh="drone.mesh"/>
+ </attached>
+ <collisionShapes>
+ <BoxCollisionShape position="0,0,0" halfExtents="10, 10, 10" />
+ </collisionShapes>
+ </Drone>
-<Drone name="meineDrohne" primarythrust="80" auxilarythrust="10" rotationthrust="10" mass= "50" linearDamping = "0.9" angularDamping = "0.7">
- <attached>
- <Model scale="1" mesh="rocket.mesh"/>
- </attached>
- <collisionShapes>
- <BoxCollisionShape position="0,0,0" halfExtents="10, 10, 10" />
- </collisionShapes>
-</Drone>
+ <Drone name="meineDrohne" primarythrust="80" auxilarythrust="10" rotationthrust="10" mass= "50" linearDamping = "0.9" angularDamping = "0.7">
+ <attached>
+ <Model scale="1" mesh="rocket.mesh"/>
+ </attached>
+ <collisionShapes>
+ <BoxCollisionShape position="0,0,0" halfExtents="10, 10, 10" />
+ </collisionShapes>
+ </Drone>
<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" />
-<Model mesh="hs-w01.mesh" scale=10 position="0,0,-100" />
-<Model mesh="hs-w01s.mesh" scale=10 position="0,0,-100" />
+ <Model mesh="hs-w01.mesh" scale=10 position="0,0,-100" />
+ <Model mesh="hs-w01s.mesh" scale=10 position="0,0,-100" />
-<?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
-?>
+ <?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 ?>
<GlobalShader compositor="Bloom" visible=false>
<events>
@@ -57,45 +55,45 @@
<SphereCollisionShape radius="20" />
</collisionShapes>
</StaticEntity>
+
<!--
-<?lua
-for i = 1, 70, 1
-do ?>
- <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 1000 + 3000) ?>" 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() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
- </attached>
- </MovableEntity>
- <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * -1000 - 3000) ?>" 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() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
- </attached>
- </MovableEntity>
+ <?lua
+ for i = 1, 70, 1 do
+ ?>
+ <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 1000 + 3000) ?>" 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() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
+ </attached>
+ </MovableEntity>
+ <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * -1000 - 3000) ?>" 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() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
+ </attached>
+ </MovableEntity>
- <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 1000 + 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" 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() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
- </attached>
- </MovableEntity>
- <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * -1000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" 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() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
- </attached>
- </MovableEntity>
+ <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 1000 + 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" 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() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
+ </attached>
+ </MovableEntity>
+ <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * -1000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" 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() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
+ </attached>
+ </MovableEntity>
- <MovableEntity position="<?lua print(math.random() * 1000 + 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" 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() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
- </attached>
- </MovableEntity>
- <MovableEntity position="<?lua print(math.random() * -1000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" 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() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
- </attached>
- </MovableEntity>
-<?lua
-end
-?>
+ <MovableEntity position="<?lua print(math.random() * 1000 + 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" 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() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
+ </attached>
+ </MovableEntity>
+ <MovableEntity position="<?lua print(math.random() * -1000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" 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() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
+ </attached>
+ </MovableEntity>
+ <?lua end ?>
-->
+
</Scene>
</Level>
Modified: code/branches/presentation3/data/levels/waypoints.oxw
===================================================================
--- code/branches/presentation3/data/levels/waypoints.oxw 2010-05-29 15:09:58 UTC (rev 7006)
+++ code/branches/presentation3/data/levels/waypoints.oxw 2010-05-29 18:41:19 UTC (rev 7007)
@@ -84,26 +84,23 @@
</controller>
</SpaceShip>
-<?lua
-for i = 1, 5, 1
-do ?>
- <SpaceShip position="1500,<?lua print(-2000 + 50*i) ?>,200" lookat="0,0,0" name=polonaise<?lua print(i+1) ?> >
- <templates>
- <Template link=spaceshipassff />
- </templates>
- <controller>
- <WaypointPatrolController alertnessradius=1000 team=12>
- <waypoints>
- <Attacher target=polonaise<?lua print(i) ?> deletewithparent=false />
- </waypoints>
- </WaypointPatrolController>
- </controller>
- </SpaceShip>
-<?lua
-end
-?>
+ <?lua
+ for i = 1, 5, 1 do
+ ?>
+ <SpaceShip position="1500,<?lua print(-2000 + 50*i) ?>,200" lookat="0,0,0" name=polonaise<?lua print(i+1) ?> >
+ <templates>
+ <Template link=spaceshipassff />
+ </templates>
+ <controller>
+ <WaypointPatrolController alertnessradius=1000 team=12>
+ <waypoints>
+ <Attacher target=polonaise<?lua print(i) ?> deletewithparent=false />
+ </waypoints>
+ </WaypointPatrolController>
+ </controller>
+ </SpaceShip>
+ <?lua end ?>
-
<SpaceShip position="-1500,-2000,200" lookat="0,0,0" name=attack1>
<templates>
<Template link=spaceshipassff />
@@ -117,40 +114,36 @@
</controller>
</SpaceShip>
-<?lua
-for i = 1, 5, 1
-do ?>
- <SpaceShip position="-1500,<?lua print(-2000 + 50*i) ?>,200" lookat="0,0,0" name=attack<?lua print(i+1) ?> >
- <templates>
- <Template link=spaceshipassff />
- </templates>
- <controller>
- <WaypointPatrolController alertnessradius=1000 team=13>
- <waypoints>
- <Attacher target=attack<?lua print(i) ?> deletewithparent=false />
- </waypoints>
- </WaypointPatrolController>
- </controller>
- </SpaceShip>
-<?lua
-end
-?>
+ <?lua
+ for i = 1, 5, 1 do
+ ?>
+ <SpaceShip position="-1500,<?lua print(-2000 + 50*i) ?>,200" lookat="0,0,0" name=attack<?lua print(i+1) ?> >
+ <templates>
+ <Template link=spaceshipassff />
+ </templates>
+ <controller>
+ <WaypointPatrolController alertnessradius=1000 team=13>
+ <waypoints>
+ <Attacher target=attack<?lua print(i) ?> deletewithparent=false />
+ </waypoints>
+ </WaypointPatrolController>
+ </controller>
+ </SpaceShip>
+ <?lua end ?>
<!--
-<?lua
-for i = 1, 50, 1
-do ?>
- <SpaceShip position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" >
- <templates>
- <Template link=spaceshipassff />
- </templates>
- <controller>
- <AIController />
- </controller>
- </SpaceShip>
-<?lua
-end
-?>
+ <?lua
+ for i = 1, 50, 1 do
+ ?>
+ <SpaceShip position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" >
+ <templates>
+ <Template link=spaceshipassff />
+ </templates>
+ <controller>
+ <AIController />
+ </controller>
+ </SpaceShip>
+ <?lua end ?>
-->
</Scene>
Modified: code/branches/presentation3/src/modules/pickup/Pickup.cc
===================================================================
--- code/branches/presentation3/src/modules/pickup/Pickup.cc 2010-05-29 15:09:58 UTC (rev 7006)
+++ code/branches/presentation3/src/modules/pickup/Pickup.cc 2010-05-29 18:41:19 UTC (rev 7007)
@@ -145,11 +145,11 @@
*/
void Pickup::setActivationType(const std::string& type)
{
- if(type == activationTypeImmediate_s)
+ if(Pickup::activationTypeImmediate_s.compare(type))
{
this->activationType_ = pickupActivationType::immediate;
}
- else if(type == activationTypeOnUse_s)
+ else if(Pickup::activationTypeOnUse_s.compare(type))
{
this->activationType_ = pickupActivationType::onUse;
}
@@ -167,11 +167,11 @@
*/
void Pickup::setDurationType(const std::string& type)
{
- if(type == durationTypeOnce_s)
+ if(Pickup::durationTypeOnce_s.compare(type) == 0)
{
this->durationType_ = pickupDurationType::once;
}
- else if(type == durationTypeContinuous_s)
+ else if(Pickup::durationTypeContinuous_s.compare(type) == 0)
{
this->durationType_ = pickupDurationType::continuous;
}
More information about the Orxonox-commit
mailing list