Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5516


Ignore:
Timestamp:
May 17, 2009, 9:24:58 PM (15 years ago)
Author:
Aurelian
Message:

nice forcefield particles, level file is not really working, work is ongoing

Location:
data/media
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • data/media/levels/gametype_asteroids.oxw

    r5505 r5516  
    2525for i = 1, 100, 1
    2626do ?>
    27     <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) ?>">
    28 
     27  <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) ?>">
     28   
    2929</Model>
    3030<?lua
     
    3434
    3535
    36 <ForceField position="0,-500,0" direction="0,1,1" diameter=1000 velocity=50>
     36<ForceField position="0,-300,0" direction="0,-1,0" diameter=500 velocity=70>
    3737  <attached>
    38     <ParticleEmitter source="Orxonox/forcefield" lifetime=10000 startdelay=0 />
     38    <ParticleEmitter source="Orxonox/forcefield" startdelay=0 />
    3939  </attached>         
    4040 </ForceField>
    4141 
    42 <ForceField position="1000,-100,0" direction="0,1,1" diameter=1500 velocity=100/>
    43 <ForceField position="1800,300,-500" direction="0,0,1" diameter=800 velocity=50/>
     42 <!--
     43 <ForceField position="1000,-100,0" direction="0,1,1" diameter=500 velocity=30>
     44  <attached>
     45    <ParticleEmitter source="Orxonox/forcefield" startdelay=0 />
     46  </attached>         
     47 </ForceField>
     48 
     49 <ForceField position="1800,300,-300" direction="0,0,1" diameter=800 velocity=100>
     50  <attached>
     51    <ParticleEmitter source="Orxonox/forcefield" startdelay=0 />
     52  </attached>         
     53 </ForceField>
     54-->
     55
     56
     57<CheckPoint name=trigger1 position="-200,300,0" scale=5 isdestination=false isfirst=true stayactive=true distance=50 addtime=20>
     58  <attached>
     59    <Billboard position="0,0,0" scale=1 material="Flares/lensflare" colour="1,0,0">
     60    </Billboard>
     61  </attached>
     62</CheckPoint>
     63
     64
     65<CheckPoint name=trigger2 position="1000,300,0" scale=5 isdestination=false stayactive=true distance=100 addtime=5>
     66  <events>
     67    <activity>
     68      <EventListener event=trigger1 />
     69    </activity>
     70  </events>
     71  <attached>
     72    <Billboard position="0,0,0" scale=1 material="Flares/lensflare" colour="1,0,0" />
     73  </attached>
     74  <attached>
     75    <BlinkingBillboard frequency=0.2 amplitude=1 position="0,0,1" scale=1 material="Flares/lensflare" colour="1,1,0">
     76      <events>
     77        <visibility>
     78          <EventListener event=trigger1 />
     79        </visibility>
     80      </events>
     81    </BlinkingBillboard>
     82  </attached>
     83  <attached>
     84    <Billboard position="0,0,0" scale=1 material="Flares/lensflare" colour="0,1,0">
     85      <events>
     86        <visibility>
     87          <EventListener event=trigger2 />
     88        </visibility>
     89      </events>
     90    </Billboard>
     91  </attached>
     92</CheckPoint>
     93
     94
     95<CheckPoint name=trigger3 position="1800,300,800" stayactive=true distance=100 addtime=5>
     96  <events>
     97    <activity>
     98      <EventListener event=trigger2 />
     99    </activity>
     100  </events>
     101  <attached>
     102    <BlinkingBillboard frequency=0.2 amplitude=1 position="0,0,0" scale=1 material="Flares/lensflare" colour="1,1,0">
     103      <events>
     104        <visibility>
     105          <EventListener event=trigger2 />
     106        </visibility>
     107      </events>
     108    </BlinkingBillboard>
     109  </attached>
     110  <attached>
     111    <Billboard position="0,0,0" scale=1 material="Flares/lensflare" colour="1,0,0" />
     112  </attached>
     113</CheckPoint>
    44114
    45115
    46116
    47 <CheckPoint name=trigger1 position="-300,300,0" scale=5 isdestination=false isfirst=true stayactive=true distance=50 addtime=5 visibility=false />
    48117
    49118
    50 <CheckPoint name=trigger2 position="1000,300,600" scale=5 isdestination=false stayactive=true distance=50 addtime=5>
     119<!--
     120<CheckPoint name=trigger1 position="-300,300,0" scale=5 isdestination=false isfirst=true stayactive=true distance=50 addtime=5 visibillity=false />
     121
     122
     123<CheckPoint name=trigger2 position="1000,300,0" scale=5 isdestination=false stayactive=true distance=100 addtime=5>
    51124  <events>
    52125    <activity>
     
    57130
    58131
    59 <CheckPoint name=trigger3 position="1800,300,800" stayactive=true distance=50 addtime=5>
     132<CheckPoint name=trigger3 position="1800,300,800" stayactive=true distance=100 addtime=5>
    60133  <events>
    61134    <activity>
     
    68141
    69142
    70 <CheckPoint name=trigger4 position="2600,400,1100" stayactive=true distance=10 addtime=25>
     143<CheckPoint name=trigger4 position="2600,400,1100" stayactive=true distance=100 addtime=25>
    71144  <events>
    72145    <activity>
     
    78151
    79152
    80 <Model position="3600,300,1400" scale=10 mesh="Carrier.mesh">
     153<Model position="3800,400,1800" scale=10 mesh="Carrier.mesh" pitch=180>
    81154  <attached>
    82     <CheckPoint position="0,0,0" name=trigger5 stayactive=true distance=50 isdestination=true>
     155    <CheckPoint position="-10,0,0" name=trigger5 stayactive=true distance=80 isdestination=true scal=1>
    83156      <events>
    84157        <activity>
     
    89162  </attached>
    90163</Model>
    91 
     164-->
    92165
    93166
  • data/media/particle/forcefield.particle

    r5505 r5516  
    33{
    44        quota   10000
    5         material        PE/lensflare
    6         particle_width  30
    7         particle_height 30
    8         cull_each       false
     5        material        PE/smoke
     6        particle_width  20
     7        particle_height 250
     8        cull_each       true
    99        renderer        billboard
    10         billboard_type  point
     10        sorted          false
     11        local_space     false
     12        iteration_interval      0
     13        nonvisible_update_timeout       0
     14        billboard_type  oriented_self
     15        billboard_origin        center
     16        billboard_rotation_type texcoord
     17        common_up_vector        1 0 0
     18        point_rendering false
     19        accurate_facing false
    1120
    12         emitter Ring
     21        emitter Cylinder
    1322        {
    1423                angle   0
    15                 colour  1 1 1 0.5
    16                 colour_range_start      0 0.2 0.3 0
    17                 colour_range_end        0 0.4 1 0.1
    18                 direction       0 1 0
    19                 emission_rate   100
    20                 position        0 0 0
    21                 velocity        100
    22                 velocity_min    50
    23                 velocity_max    100
    24                 time_to_live    20
     24                colour  0.744444 0 1 0.05
     25                colour_range_start      0.744444 0 1 0.05
     26                colour_range_end        0.533333 0 1 0.05
     27                emission_rate   60
     28                velocity        87.1
     29                velocity_min    87.1
     30                velocity_max    87.1
     31                time_to_live    30
     32                time_to_live_min        20
     33                time_to_live_max        20
    2534                duration        0
    2635                duration_min    0
     
    2938                repeat_delay_min        0
    3039                repeat_delay_max        0
    31                 width   500
    32                 height  500
    33                 depth   400
    34                 inner_width     0.1
    35                 inner_height    0.1
     40                depth   1
     41                width 300
     42                height 300
    3643        }
    3744
     45        emitter Cylinder
     46        {
     47                angle   0
     48                colour  1 0.455556 0 0.05
     49                colour_range_start      1 0.455556 0 0.05
     50                colour_range_end        0 0 1 0.05
     51                emission_rate   60
     52                velocity        77.42
     53                velocity_min    77.42
     54                velocity_max    77.42
     55                time_to_live    30
     56                time_to_live_min        20
     57                time_to_live_max        20
     58                duration        0
     59                duration_min    0
     60                duration_max    0
     61                repeat_delay    0
     62                repeat_delay_min        0
     63                repeat_delay_max        0
     64                depth   0
     65                width 300
     66                height 300
     67        }
    3868}
Note: See TracChangeset for help on using the changeset viewer.