[Orxonox-commit 349] r2122 - in media: levels particle

Aurelian at orxonox.net Aurelian at orxonox.net
Sun May 10 22:45:53 CEST 2009


Author: Aurelian
Date: 2009-05-10 22:45:52 +0200 (Sun, 10 May 2009)
New Revision: 2122

Added:
   media/particle/forcefield.particle
Modified:
   media/levels/gametype_asteroids.oxw
Log:
New Particle Effect for ForceField, not realy working jet

Modified: media/levels/gametype_asteroids.oxw
===================================================================
--- media/levels/gametype_asteroids.oxw	2009-05-09 20:10:10 UTC (rev 2121)
+++ media/levels/gametype_asteroids.oxw	2009-05-10 20:45:52 UTC (rev 2122)
@@ -20,24 +20,34 @@
 <SpawnPoint position="-300,300,0" lookat="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
 
 
-<!--
+
 <?lua
-for i = 1, 50, 1 
+for i = 1, 100, 1 
 do ?>
-    <Model scale="<?lua print(math.random() * 50 + 3) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" position="<?lua print(math.random() * 10000 + 5000) ?>,<?lua print(math.random() * 10000 + 5000) ?>,<?lua print(math.random() * 10000 + 5000) ?>" />
+    <Model scale="<?lua print(math.random() * 150 + 30) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" position="<?lua print(math.random() * 10000 ) ?>,<?lua print(math.random() * 10000 - 5000) ?>,<?lua print(math.random() * 10000 - 5000) ?>">
+
+</Model>
 <?lua 
 end
 ?>
--->
 
 
-<ForceField position="0,-500,0" direction="0,1,0" />
 
+<ForceField position="0,-500,0" direction="0,1,0" diameter=1000 velocity=50>
+  <attached>
+    <ParticleEmitter source="Orxonox/forcefield" lifetime=10000 startdelay=0 />
+  </attached>         
+ </ForceField>
+ 
+<ForceField position="1000,-100,0" direction="0,1,1" diameter=1500 velocity=100/>
+<ForceField position="1800,300,-500" direction="0,0,1" diameter=800 velocity=50/>
 
-<CheckPoint name=trigger1 position="-200,300,0" isdestination=false stayactive=true distance=20 />
 
 
-<CheckPoint name=trigger2 position="0,250,0" isdestination=false stayactive=true distance=20 >
+<CheckPoint name=trigger1 position="600,300,0" isdestination=false stayactive=true distance=20 />
+
+
+<CheckPoint name=trigger2 position="1000,300,600" isdestination=false stayactive=true distance=20 >
   <events>
     <activity>
       <EventListener event=trigger1 />
@@ -46,7 +56,7 @@
 </CheckPoint>
 
 
-<CheckPoint name=trigger3 position="200,350,0" stayactive=true distance=20 >
+<CheckPoint name=trigger3 position="1800,300,800" stayactive=true distance=20 >
   <events>
     <activity>
       <EventListener event=trigger2 />
@@ -54,7 +64,7 @@
   </events>
 </CheckPoint>
 
-<CheckPoint name=trigger4 position="600,150,0" stayactive=true distance=20 >
+<CheckPoint name=trigger4 position="2600,400,1100" stayactive=true distance=20 >
   <events>
     <activity>
       <EventListener event=trigger3 />
@@ -62,7 +72,7 @@
   </events>
 </CheckPoint>
 
-<CheckPoint name=trigger5 position="1000,200,0" isdestination=true stayactive=true distance=20 >
+<CheckPoint name=trigger5 position="3600,300,1400" isdestination=true stayactive=true distance=20 >
   <events>
     <activity>
       <EventListener event=trigger4 />

Added: media/particle/forcefield.particle
===================================================================
--- media/particle/forcefield.particle	                        (rev 0)
+++ media/particle/forcefield.particle	2009-05-10 20:45:52 UTC (rev 2122)
@@ -0,0 +1,38 @@
+
+Orxonox/forcefield
+{
+	quota	1200
+	material	PE/lensflare
+	particle_width	30
+	particle_height	30
+	cull_each	false
+	renderer	billboard
+	billboard_type	point
+
+	emitter Ring
+	{
+		angle	0
+		colour	1 1 1 1
+		colour_range_start	0 0.2 0.3 0
+		colour_range_end	0 0.4 1 0.1
+		direction	0 1 0
+		emission_rate	200
+		position	0 0 0
+		velocity	100
+		velocity_min	50
+		velocity_max	100
+		time_to_live	30
+		duration	0
+		duration_min	0
+		duration_max	0
+		repeat_delay	0
+		repeat_delay_min	0
+		repeat_delay_max	0
+		width	500
+		height	500
+		depth	400
+		inner_width	0.5
+		inner_height	0.5
+	}
+
+}




More information about the Orxonox-commit mailing list