Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7007 for code/branches


Ignore:
Timestamp:
May 29, 2010, 8:41:19 PM (14 years ago)
Author:
dafrick
Message:

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.

Location:
code/branches/presentation3
Files:
1 deleted
20 edited
1 moved

Legend:

Unmodified
Added
Removed
  • code/branches/presentation3/data/levels/empty_level.oxw

    r6926 r7007  
    2222    skybox       = "Orxonox/Starbox"
    2323  >
    24    
     24
    2525    <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" />
    2626    <SpawnPoint position="0,0,100" spawnclass=SpaceShip pawndesign=spaceshipassff />
     27
    2728  </Scene>
    2829</Level>
  • code/branches/presentation3/data/levels/gametype_asteroids.oxw

    r6926 r7007  
    1515  </templates>
    1616
    17 <Scene
    18  ambientlight = "0.5, 0.5, 0.5"
    19  skybox       = "Orxonox/Starbox"
    20 >
    21 
    22 <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" />
    23 
    24 
    25 
    26 <SpawnPoint position="-300,300,0" name="playerstart" direction="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
    27 
    28 
    29 <?lua
    30 for i = 1, 250, 1
    31 do
    32 j = math.random()
    33 ?>
     17  <Scene
     18    ambientlight = "0.5, 0.5, 0.5"
     19    skybox       = "Orxonox/Starbox"
     20  >
     21
     22    <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" />
     23
     24    <SpawnPoint position="-300,300,0" name="playerstart" direction="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
     25
     26    <?lua
     27      for i = 1, 250, 1
     28      do
     29      j = math.random()
     30    ?>
    3431
    3532    <MovableEntity
    36      position="<?lua print(math.random()* 15000 - 1000) ?>,<?lua print(math.random() * 12000 - 4000) ?>,<?lua print(math.random() * 12000 - 4000) ?>"        collisionType=dynamic
    37      linearDamping=0.8
    38      angularDamping=0
    39      scale=<?lua print(j * 150)?>
    40      collisiondamage=1
    41      enablecollisiondamage=true>
     33      position = "<?lua print(math.random()* 15000 - 1000) ?>,<?lua print(math.random() * 12000 - 4000) ?>,<?lua print(math.random() * 12000 - 4000) ?>"
     34      collisionType = dynamic
     35      linearDamping = 0.8
     36      angularDamping = 0
     37      scale = <?lua print(j * 150)?>
     38      collisiondamage = 1
     39      enablecollisiondamage = true
     40    >
    4241      <attached>
    4342        <Model mass=<?lua print(j * 1000) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
     
    4746      </collisionShapes>
    4847    </MovableEntity>
    49 <?lua
    50 end
    51 ?>
     48
     49    <?lua
     50      end
     51    ?>
    5252
    5353<!--
    54 <MovableEntity position="0,0,0" collisionType=dynamic scale=5 linearDamping=0.8 angularDamping=0  collisiondamage=0.005 enablecollisiondamage=true>
    55   <attached>
    56     <Model mass=100 mesh="ast1.mesh" />
    57   </attached>
    58     <collisionShapes>
    59       <SphereCollisionShape radius=11.75 />
    60     </collisionShapes>
    61 </MovableEntity>
    62 
    63 
    64 <MovableEntity position="0,300,0" scale=10 collisionType=dynamic linearDamping=0.8 angularDamping=0  collisiondamage=0.005 enablecollisiondamage=true>
    65   <attached>
    66     <Model mass=100 mesh="ast1.mesh" />
    67   </attached>
    68     <collisionShapes>
    69       <SphereCollisionShape radius=22.5 />
    70     </collisionShapes>
    71 </MovableEntity>
    72 
    73 
    74 <MovableEntity position="0,600,0"  scale=34  collisionType=dynamic linearDamping=0.8 angularDamping=0 collisiondamage=0.005 enablecollisiondamage=true>
    75   <attached>
    76     <Model mass=100 mesh="ast1.mesh" />
    77   </attached>
    78     <collisionShapes>
    79       <SphereCollisionShape radius=76.5 />
    80     </collisionShapes>
    81 </MovableEntity>
    82 
    83 <MovableEntity position="0,1200,0" scale=80 collisionType=dynamic linearDamping=0.8 angularDamping=0  collisiondamage=0.005 enablecollisiondamage=true>
    84   <attached>
    85     <Model mass=100 mesh="ast1.mesh" />
    86   </attached>
    87     <collisionShapes>
    88       <SphereCollisionShape radius=200 />
    89     </collisionShapes>
    90 </MovableEntity>
     54    <MovableEntity position="0,0,0" collisionType=dynamic scale=5 linearDamping=0.8 angularDamping=0  collisiondamage=0.005 enablecollisiondamage=true>
     55      <attached>
     56        <Model mass=100 mesh="ast1.mesh" />
     57      </attached>
     58      <collisionShapes>
     59        <SphereCollisionShape radius=11.75 />
     60      </collisionShapes>
     61    </MovableEntity>
     62
     63
     64    <MovableEntity position="0,300,0" scale=10 collisionType=dynamic linearDamping=0.8 angularDamping=0  collisiondamage=0.005 enablecollisiondamage=true>
     65      <attached>
     66        <Model mass=100 mesh="ast1.mesh" />
     67      </attached>
     68      <collisionShapes>
     69        <SphereCollisionShape radius=22.5 />
     70      </collisionShapes>
     71    </MovableEntity>
     72
     73
     74    <MovableEntity position="0,600,0"  scale=34  collisionType=dynamic linearDamping=0.8 angularDamping=0 collisiondamage=0.005 enablecollisiondamage=true>
     75      <attached>
     76        <Model mass=100 mesh="ast1.mesh" />
     77      </attached>
     78      <collisionShapes>
     79        <SphereCollisionShape radius=76.5 />
     80      </collisionShapes>
     81    </MovableEntity>
     82
     83    <MovableEntity position="0,1200,0" scale=80 collisionType=dynamic linearDamping=0.8 angularDamping=0  collisiondamage=0.005 enablecollisiondamage=true>
     84      <attached>
     85        <Model mass=100 mesh="ast1.mesh" />
     86      </attached>
     87      <collisionShapes>
     88        <SphereCollisionShape radius=200 />
     89      </collisionShapes>
     90    </MovableEntity>
    9191-->
    9292
    93 <SpaceShip position="2000,200,0" lookat="0,0,0" >
    94   <templates>
    95     <Template link=spaceshipassff />
    96   </templates>
    97   <controller>
    98     <AIController />
    99   </controller>
    100 </SpaceShip>
    101 
    102 <SpaceShip position="8000,300,700" lookat="0,0,0" >
    103   <templates>
    104     <Template link=spaceshipassff />
    105   </templates>
    106   <controller>
    107     <AIController />
    108   </controller>
    109 </SpaceShip>
    110 
    111 <SpaceShip position="10200,400,-600" lookat="0,0,0" >
    112   <templates>
    113     <Template link=spaceshipassff />
    114   </templates>
    115   <controller>
    116     <AIController />
    117   </controller>
    118 </SpaceShip>
    119 
    120 <ForceField position="200,300,-500" direction="0,0,1" diameter=500 velocity=120>
    121   <attached>
    122     <ParticleEmitter source="Orxonox/ForceFieldPurpleSmall" startdelay=0 />
    123   </attached>
    124 </ForceField>
    125 
    126  <ForceField position="2200,-300,1200" direction="1,0.3,-0.7" diameter=800 velocity=200>
    127   <attached>
    128     <ParticleEmitter source="Orxonox/ForceFieldBlueBig" startdelay=0 />
    129   </attached>
    130 </ForceField>
    131 
    132  <ForceField position="8600,1400,500" direction="-1,-1,-1" diameter=500 velocity=400>
    133   <attached>
    134     <ParticleEmitter source="Orxonox/ForceFieldGreenSmall" startdelay=0 />
    135   </attached>
    136 </ForceField>
    137 
    138   <ForceField position="11800,500,-2600" direction="-1,0,1" diameter=900 velocity=300>
    139   <attached>
    140     <ParticleEmitter source="Orxonox/ForceFieldPurpleBig" startdelay=0 />
    141   </attached>
    142 </ForceField>
    143 
    144 
    145 <CheckPoint name=trigger1 position="-300,300,0" scale=1 isdestination=false isfirst=true stayactive=true distance=10 addtime=13 />
    146 
    147 
    148 <CheckPoint name=trigger2 position="2200,600,0" scale=3 isdestination=false stayactive=true distance=100 addtime=10>
    149   <events>
    150     <activity>
    151       <EventListener event=trigger1 />
    152     </activity>
    153   </events>
    154   <attached>
    155     <Billboard material="Flares/lensflare" colour="1,0,0">
     93    <SpaceShip position="2000,200,0" lookat="0,0,0" >
     94      <templates>
     95        <Template link=spaceshipassff />
     96      </templates>
     97      <controller>
     98        <AIController />
     99      </controller>
     100    </SpaceShip>
     101
     102    <SpaceShip position="8000,300,700" lookat="0,0,0" >
     103      <templates>
     104        <Template link=spaceshipassff />
     105      </templates>
     106      <controller>
     107        <AIController />
     108      </controller>
     109    </SpaceShip>
     110
     111    <SpaceShip position="10200,400,-600" lookat="0,0,0" >
     112      <templates>
     113        <Template link=spaceshipassff />
     114      </templates>
     115      <controller>
     116        <AIController />
     117      </controller>
     118    </SpaceShip>
     119
     120    <ForceField position="200,300,-500" direction="0,0,1" diameter=500 velocity=120>
     121      <attached>
     122        <ParticleEmitter source="Orxonox/ForceFieldPurpleSmall" startdelay=0 />
     123      </attached>
     124    </ForceField>
     125
     126    <ForceField position="2200,-300,1200" direction="1,0.3,-0.7" diameter=800 velocity=200>
     127      <attached>
     128        <ParticleEmitter source="Orxonox/ForceFieldBlueBig" startdelay=0 />
     129      </attached>
     130    </ForceField>
     131
     132    <ForceField position="8600,1400,500" direction="-1,-1,-1" diameter=500 velocity=400>
     133      <attached>
     134        <ParticleEmitter source="Orxonox/ForceFieldGreenSmall" startdelay=0 />
     135      </attached>
     136    </ForceField>
     137
     138    <ForceField position="11800,500,-2600" direction="-1,0,1" diameter=900 velocity=300>
     139      <attached>
     140        <ParticleEmitter source="Orxonox/ForceFieldPurpleBig" startdelay=0 />
     141      </attached>
     142    </ForceField>
     143
     144
     145    <CheckPoint name=trigger1 position="-300,300,0" scale=1 isdestination=false isfirst=true stayactive=true distance=10 addtime=13 />
     146
     147
     148    <CheckPoint name=trigger2 position="2200,600,0" scale=3 isdestination=false stayactive=true distance=100 addtime=10>
    156149      <events>
    157         <visibility>
    158           <EventTrigger invert=true>
    159             <events>
    160               <trigger>
    161                 <EventListener event=trigger1 />
    162               </trigger>
    163             </events>
    164           </EventTrigger>
    165         </visibility>
     150        <activity>
     151          <EventListener event=trigger1 />
     152        </activity>
    166153      </events>
    167     </Billboard>
    168     <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0">
     154      <attached>
     155        <Billboard material="Flares/lensflare" colour="1,0,0">
     156          <events>
     157            <visibility>
     158              <EventTrigger invert=true>
     159                <events>
     160                  <trigger>
     161                    <EventListener event=trigger1 />
     162                  </trigger>
     163                </events>
     164              </EventTrigger>
     165            </visibility>
     166          </events>
     167        </Billboard>
     168        <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0">
     169          <events>
     170            <visibility>
     171              <EventTrigger>
     172                <events>
     173                  <trigger>
     174                    <EventListener event=trigger1 />
     175                  </trigger>
     176                </events>
     177                <EventTrigger invert=true>
     178                  <events>
     179                    <trigger>
     180                      <EventListener event=trigger2 />
     181                    </trigger>
     182                  </events>
     183                </EventTrigger>
     184              </EventTrigger>
     185            </visibility>
     186          </events>
     187        </BlinkingBillboard>
     188        <Billboard material="Flares/lensflare" colour="0,1,0">
     189          <events>
     190            <visibility>
     191              <EventListener event=trigger2 />
     192            </visibility>
     193          </events>
     194        </Billboard>
     195      </attached>
     196    </CheckPoint>
     197
     198
     199    <CheckPoint name=trigger3 position="4100,0,400" scale=3 isdestination=false stayactive=true distance=100 addtime=9>
    169200      <events>
    170         <visibility>
    171           <EventTrigger>
    172             <events>
    173               <trigger>
    174                 <EventListener event=trigger1 />
    175               </trigger>
    176             </events>
    177             <EventTrigger invert=true>
     201        <activity>
     202          <EventListener event=trigger2 />
     203        </activity>
     204      </events>
     205      <attached>
     206        <Billboard material="Flares/lensflare" colour="1,0,0">
     207          <events>
     208            <visibility>
     209              <EventTrigger invert=true>
     210                <events>
     211                  <trigger>
     212                    <EventListener event=trigger2 />
     213                  </trigger>
     214                </events>
     215              </EventTrigger>
     216            </visibility>
     217          </events>
     218        </Billboard>
     219        <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0">
     220          <events>
     221            <visibility>
     222              <EventTrigger>
     223                <events>
     224                  <trigger>
     225                    <EventListener event=trigger2 />
     226                  </trigger>
     227                </events>
     228                <EventTrigger invert=true>
     229                  <events>
     230                    <trigger>
     231                      <EventListener event=trigger3 />
     232                    </trigger>
     233                  </events>
     234                </EventTrigger>
     235              </EventTrigger>
     236            </visibility>
     237          </events>
     238        </BlinkingBillboard>
     239        <Billboard material="Flares/lensflare" colour="0,1,0">
     240          <events>
     241            <visibility>
     242              <EventListener event=trigger3 />
     243            </visibility>
     244          </events>
     245        </Billboard>
     246      </attached>
     247    </CheckPoint>
     248
     249
     250    <CheckPoint name=trigger4 position="5600,400,0" scale=3 isdestination=false stayactive=true distance=100 addtime=9>
     251      <events>
     252        <activity>
     253          <EventListener event=trigger3 />
     254        </activity>
     255      </events>
     256      <attached>
     257        <Billboard material="Flares/lensflare" colour="1,0,0">
     258          <events>
     259            <visibility>
     260              <EventTrigger invert=true>
     261                <events>
     262                  <trigger>
     263                    <EventListener event=trigger3 />
     264                  </trigger>
     265                </events>
     266              </EventTrigger>
     267            </visibility>
     268          </events>
     269        </Billboard>
     270        <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0">
     271          <events>
     272            <visibility>
     273              <EventTrigger>
     274                <events>
     275                  <trigger>
     276                    <EventListener event=trigger3 />
     277                  </trigger>
     278                </events>
     279                <EventTrigger invert=true>
     280                  <events>
     281                    <trigger>
     282                      <EventListener event=trigger4 />
     283                    </trigger>
     284                  </events>
     285                </EventTrigger>
     286              </EventTrigger>
     287            </visibility>
     288          </events>
     289        </BlinkingBillboard>
     290        <Billboard material="Flares/lensflare" colour="0,1,0">
     291          <events>
     292            <visibility>
     293              <EventListener event=trigger4 />
     294            </visibility>
     295          </events>
     296        </Billboard>
     297      </attached>
     298    </CheckPoint>
     299
     300
     301    <CheckPoint name=trigger5 position="7200,600,-200" scale=3 isdestination=false stayactive=true distance=100 addtime=8>
     302      <events>
     303        <activity>
     304          <EventListener event=trigger4 />
     305        </activity>
     306      </events>
     307      <attached>
     308        <Billboard material="Flares/lensflare" colour="1,0,0">
     309          <events>
     310            <visibility>
     311              <EventTrigger invert=true>
     312                <events>
     313                  <trigger>
     314                    <EventListener event=trigger4 />
     315                  </trigger>
     316                </events>
     317              </EventTrigger>
     318            </visibility>
     319          </events>
     320        </Billboard>
     321        <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0">
     322          <events>
     323            <visibility>
     324              <EventTrigger>
     325                <events>
     326                  <trigger>
     327                    <EventListener event=trigger4 />
     328                  </trigger>
     329                </events>
     330                <EventTrigger invert=true>
     331                  <events>
     332                    <trigger>
     333                      <EventListener event=trigger5 />
     334                    </trigger>
     335                  </events>
     336                </EventTrigger>
     337              </EventTrigger>
     338            </visibility>
     339          </events>
     340        </BlinkingBillboard>
     341        <Billboard material="Flares/lensflare" colour="0,1,0">
     342          <events>
     343            <visibility>
     344              <EventListener event=trigger5 />
     345            </visibility>
     346          </events>
     347        </Billboard>
     348      </attached>
     349    </CheckPoint>
     350
     351
     352    <CheckPoint name=trigger6 position="9200, 800,-800" scale=3 isdestination=false stayactive=true distance=100 addtime=10>
     353      <events>
     354        <activity>
     355          <EventListener event=trigger5 />
     356        </activity>
     357      </events>
     358      <attached>
     359        <Billboard material="Flares/lensflare" colour="1,0,0">
     360          <events>
     361            <visibility>
     362              <EventTrigger invert=true>
     363                <events>
     364                  <trigger>
     365                    <EventListener event=trigger5 />
     366                  </trigger>
     367                </events>
     368              </EventTrigger>
     369            </visibility>
     370          </events>
     371        </Billboard>
     372        <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0">
     373          <events>
     374            <visibility>
     375              <EventTrigger>
     376                <events>
     377                  <trigger>
     378                    <EventListener event=trigger5 />
     379                  </trigger>
     380                </events>
     381                <EventTrigger invert=true>
     382                  <events>
     383                    <trigger>
     384                      <EventListener event=trigger6 />
     385                    </trigger>
     386                  </events>
     387                </EventTrigger>
     388              </EventTrigger>
     389            </visibility>
     390          </events>
     391        </BlinkingBillboard>
     392        <Billboard material="Flares/lensflare" colour="0,1,0">
     393          <events>
     394            <visibility>
     395              <EventListener event=trigger6 />
     396            </visibility>
     397          </events>
     398        </Billboard>
     399      </attached>
     400    </CheckPoint>
     401
     402
     403    <Model position="11200,400,-1800" scale=10 pitch=-90  mesh="Carrier.mesh">
     404      <attached>
     405        <CheckPoint position="-10,0,0" name=trigger7 scale=0.6 isdestination=true stayactive=true distance=100>
     406          <events>
     407            <activity>
     408              <EventListener event=trigger6 />
     409            </activity>
     410          </events>
     411          <attached>
     412            <Billboard material="Flares/lensflare" colour="1,0,0">
    178413              <events>
    179                 <trigger>
    180                   <EventListener event=trigger2 />
    181                 </trigger>
     414                <visibility>
     415                  <EventTrigger invert=true>
     416                    <events>
     417                      <trigger>
     418                        <EventListener event=trigger6 />
     419                      </trigger>
     420                    </events>
     421                  </EventTrigger>
     422                </visibility>
    182423              </events>
    183             </EventTrigger>
    184           </EventTrigger>
    185         </visibility>
    186       </events>
    187     </BlinkingBillboard>
    188     <Billboard material="Flares/lensflare" colour="0,1,0">
    189       <events>
    190         <visibility>
    191           <EventListener event=trigger2 />
    192         </visibility>
    193       </events>
    194     </Billboard>
    195   </attached>
    196 </CheckPoint>
    197 
    198 
    199 <CheckPoint name=trigger3 position="4100,0,400" scale=3 isdestination=false stayactive=true distance=100 addtime=9>
    200   <events>
    201     <activity>
    202       <EventListener event=trigger2 />
    203     </activity>
    204   </events>
    205   <attached>
    206     <Billboard material="Flares/lensflare" colour="1,0,0">
    207       <events>
    208         <visibility>
    209           <EventTrigger invert=true>
    210             <events>
    211               <trigger>
    212                 <EventListener event=trigger2 />
    213               </trigger>
    214             </events>
    215           </EventTrigger>
    216         </visibility>
    217       </events>
    218     </Billboard>
    219     <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0">
    220       <events>
    221         <visibility>
    222           <EventTrigger>
    223             <events>
    224               <trigger>
    225                 <EventListener event=trigger2 />
    226               </trigger>
    227             </events>
    228             <EventTrigger invert=true>
     424            </Billboard>
     425            <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0">
    229426              <events>
    230                 <trigger>
    231                   <EventListener event=trigger3 />
    232                 </trigger>
     427                <visibility>
     428                  <EventTrigger>
     429                    <events>
     430                      <trigger>
     431                        <EventListener event=trigger6 />
     432                      </trigger>
     433                    </events>
     434                    <EventTrigger invert=true>
     435                      <events>
     436                        <trigger>
     437                          <EventListener event=trigger7 />
     438                        </trigger>
     439                      </events>
     440                    </EventTrigger>
     441                  </EventTrigger>
     442                </visibility>
    233443              </events>
    234             </EventTrigger>
    235           </EventTrigger>
    236         </visibility>
    237       </events>
    238     </BlinkingBillboard>
    239     <Billboard material="Flares/lensflare" colour="0,1,0">
    240       <events>
    241         <visibility>
    242           <EventListener event=trigger3 />
    243         </visibility>
    244       </events>
    245     </Billboard>
    246   </attached>
    247 </CheckPoint>
    248 
    249 
    250 <CheckPoint name=trigger4 position="5600,400,0" scale=3 isdestination=false stayactive=true distance=100 addtime=9>
    251   <events>
    252     <activity>
    253       <EventListener event=trigger3 />
    254     </activity>
    255   </events>
    256   <attached>
    257     <Billboard material="Flares/lensflare" colour="1,0,0">
    258       <events>
    259         <visibility>
    260           <EventTrigger invert=true>
    261             <events>
    262               <trigger>
    263                 <EventListener event=trigger3 />
    264               </trigger>
    265             </events>
    266           </EventTrigger>
    267         </visibility>
    268       </events>
    269     </Billboard>
    270     <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0">
    271       <events>
    272         <visibility>
    273           <EventTrigger>
    274             <events>
    275               <trigger>
    276                 <EventListener event=trigger3 />
    277               </trigger>
    278             </events>
    279             <EventTrigger invert=true>
     444            </BlinkingBillboard>
     445            <Billboard material="Flares/lensflare" colour="0,1,0">
    280446              <events>
    281                 <trigger>
    282                   <EventListener event=trigger4 />
    283                 </trigger>
     447                <visibility>
     448                  <EventListener event=trigger7 />
     449                </visibility>
    284450              </events>
    285             </EventTrigger>
    286           </EventTrigger>
    287         </visibility>
    288       </events>
    289     </BlinkingBillboard>
    290     <Billboard material="Flares/lensflare" colour="0,1,0">
    291       <events>
    292         <visibility>
    293           <EventListener event=trigger4 />
    294         </visibility>
    295       </events>
    296     </Billboard>
    297   </attached>
    298 </CheckPoint>
    299 
    300 
    301 <CheckPoint name=trigger5 position="7200,600,-200" scale=3 isdestination=false stayactive=true distance=100 addtime=8>
    302   <events>
    303     <activity>
    304       <EventListener event=trigger4 />
    305     </activity>
    306   </events>
    307   <attached>
    308     <Billboard material="Flares/lensflare" colour="1,0,0">
    309       <events>
    310         <visibility>
    311           <EventTrigger invert=true>
    312             <events>
    313               <trigger>
    314                 <EventListener event=trigger4 />
    315               </trigger>
    316             </events>
    317           </EventTrigger>
    318         </visibility>
    319       </events>
    320     </Billboard>
    321     <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0">
    322       <events>
    323         <visibility>
    324           <EventTrigger>
    325             <events>
    326               <trigger>
    327                 <EventListener event=trigger4 />
    328               </trigger>
    329             </events>
    330             <EventTrigger invert=true>
    331               <events>
    332                 <trigger>
    333                   <EventListener event=trigger5 />
    334                 </trigger>
    335               </events>
    336             </EventTrigger>
    337           </EventTrigger>
    338         </visibility>
    339       </events>
    340     </BlinkingBillboard>
    341     <Billboard material="Flares/lensflare" colour="0,1,0">
    342       <events>
    343         <visibility>
    344           <EventListener event=trigger5 />
    345         </visibility>
    346       </events>
    347     </Billboard>
    348   </attached>
    349 </CheckPoint>
    350 
    351 
    352 <CheckPoint name=trigger6 position="9200, 800,-800" scale=3 isdestination=false stayactive=true distance=100 addtime=10>
    353   <events>
    354     <activity>
    355       <EventListener event=trigger5 />
    356     </activity>
    357   </events>
    358   <attached>
    359     <Billboard material="Flares/lensflare" colour="1,0,0">
    360       <events>
    361         <visibility>
    362           <EventTrigger invert=true>
    363             <events>
    364               <trigger>
    365                 <EventListener event=trigger5 />
    366               </trigger>
    367             </events>
    368           </EventTrigger>
    369         </visibility>
    370       </events>
    371     </Billboard>
    372     <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0">
    373       <events>
    374         <visibility>
    375           <EventTrigger>
    376             <events>
    377               <trigger>
    378                 <EventListener event=trigger5 />
    379               </trigger>
    380             </events>
    381             <EventTrigger invert=true>
    382               <events>
    383                 <trigger>
    384                   <EventListener event=trigger6 />
    385                 </trigger>
    386               </events>
    387             </EventTrigger>
    388           </EventTrigger>
    389         </visibility>
    390       </events>
    391     </BlinkingBillboard>
    392     <Billboard material="Flares/lensflare" colour="0,1,0">
    393       <events>
    394         <visibility>
    395           <EventListener event=trigger6 />
    396         </visibility>
    397       </events>
    398     </Billboard>
    399   </attached>
    400 </CheckPoint>
    401 
    402 
    403 <Model position="11200,400,-1800" scale=10 pitch=-90  mesh="Carrier.mesh">
    404   <attached>
    405     <CheckPoint position="-10,0,0" name=trigger7 scale=0.6 isdestination=true stayactive=true distance=100>
    406   <events>
    407     <activity>
    408       <EventListener event=trigger6 />
    409     </activity>
    410   </events>
    411   <attached>
    412     <Billboard material="Flares/lensflare" colour="1,0,0">
    413       <events>
    414         <visibility>
    415           <EventTrigger invert=true>
    416             <events>
    417               <trigger>
    418                 <EventListener event=trigger6 />
    419               </trigger>
    420             </events>
    421           </EventTrigger>
    422         </visibility>
    423       </events>
    424     </Billboard>
    425     <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0">
    426       <events>
    427         <visibility>
    428           <EventTrigger>
    429             <events>
    430               <trigger>
    431                 <EventListener event=trigger6 />
    432               </trigger>
    433             </events>
    434             <EventTrigger invert=true>
    435               <events>
    436                 <trigger>
    437                   <EventListener event=trigger7 />
    438                 </trigger>
    439               </events>
    440             </EventTrigger>
    441           </EventTrigger>
    442         </visibility>
    443       </events>
    444     </BlinkingBillboard>
    445     <Billboard material="Flares/lensflare" colour="0,1,0">
    446       <events>
    447         <visibility>
    448           <EventListener event=trigger7 />
    449         </visibility>
    450       </events>
    451     </Billboard>
    452   </attached>
    453 </CheckPoint>
    454   </attached>
    455 </Model>
     451            </Billboard>
     452          </attached>
     453        </CheckPoint>
     454      </attached>
     455    </Model>
    456456
    457457  </Scene>
  • code/branches/presentation3/data/levels/gametype_underattack.oxw

    r6926 r7007  
    2323
    2424    <?lua for i = 1, 30, 1 do ?>
    25         <MovableEntity
    26             position="<?lua print(math.random() * 10000 - 5000) ?>, <?lua print(math.random() * 10000 - 5000) ?>, <?lua print(math.random() * 10000 - 5000) ?>"
    27             velocity="<?lua print(math.random() * 500 - 250) ?>, <?lua print(math.random() * 500 - 250) ?>, <?lua print(math.random() * 500 - 250) ?>"
    28         >
    29             <attached>
    30                 <Model
    31                     <?lua x = math.random() * 150 + 30 ?>
    32                     scale="<?lua print(x) ?>"
    33                     mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh"
    34                     position="0,0,0"
    35                 />
    36             </attached>
    37             <collisionShapes>
    38                 <SphereCollisionShape radius=<?lua print(x) ?> position="0,0,0" />
    39             </collisionShapes>
    40         </MovableEntity>
     25      <MovableEntity
     26          position="<?lua print(math.random() * 10000 - 5000) ?>, <?lua print(math.random() * 10000 - 5000) ?>, <?lua print(math.random() * 10000 - 5000) ?>"
     27          velocity="<?lua print(math.random() * 500 - 250) ?>, <?lua print(math.random() * 500 - 250) ?>, <?lua print(math.random() * 500 - 250) ?>"
     28      >
     29        <attached>
     30          <Model
     31              <?lua x = math.random() * 150 + 30 ?>
     32              scale="<?lua print(x) ?>"
     33              mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh"
     34              position="0,0,0"
     35          />
     36        </attached>
     37          <collisionShapes>
     38            <SphereCollisionShape radius=<?lua print(x) ?> position="0,0,0" />
     39          </collisionShapes>
     40      </MovableEntity>
    4141    <?lua end ?>
    4242
    4343    <Destroyer
    44         position          = "100,150,0"
    45         collisionType     = dynamic
    46         mass              = 100000
    47         velocity          = "-35,0,0"
    48         angularDamping    = 0.9999999
    49         health            = 10000
    50         maxhealth         = 10000
    51         initialhealth     = 10000
     44      position          = "100,150,0"
     45      collisionType     = dynamic
     46      mass              = 100000
     47      velocity          = "-35,0,0"
     48      angularDamping    = 0.9999999
     49      health            = 10000
     50      maxhealth         = 10000
     51      initialhealth     = 10000
    5252    >
    5353
    54         <attached>
    55             <TeamSpawnPoint team=1 position="150,0,7" direction="-1,0,0" roll=90 yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
    56             <TeamSpawnPoint team=1 position="0,0,7" lookat="-1,0,0" roll="90"  yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
    57             <TeamSpawnPoint team=1 position="-50,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
    58             <TeamSpawnPoint team=1 position="100,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
    59             <TeamSpawnPoint team=1 position="50,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
    60             <?lua for i = 1, 100, 1 do ?>
    61                 <TeamSpawnPoint
    62                     team=0
    63                     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)) ?>"
    64                     lookat="0,0,0"
    65                     spawnclass=SpaceShip
    66                     pawndesign=spaceshipassff
    67                 />
     54      <attached>
     55        <TeamSpawnPoint team=1 position="150,0,7" direction="-1,0,0" roll=90 yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
     56        <TeamSpawnPoint team=1 position="0,0,7" lookat="-1,0,0" roll="90"  yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
     57        <TeamSpawnPoint team=1 position="-50,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
     58        <TeamSpawnPoint team=1 position="100,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
     59        <TeamSpawnPoint team=1 position="50,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
     60        <?lua for i = 1, 100, 1 do ?>
     61          <TeamSpawnPoint
     62            team=0
     63            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)) ?>"
     64            lookat="0,0,0"
     65            spawnclass=SpaceShip
     66            pawndesign=spaceshipassff
     67          />
    6868
    69                 <!--more spawnpoints for team1-->
    70                 <!--
    71                 <TeamSpawnPoint
    72                     team=1 position="<?lua print((math.random() * 500 + 500)) ?>,<?lua print((math.random() * 500 + 500) ) ?>,<?lua print((math.random() * 500 + 500)) ?>"
    73                     lookat="0,0,0"
    74                     spawnclass=SpaceShip
    75                     pawndesign=spaceshipassff
    76                 />-->
    77             <?lua end ?>
     69          <!--more spawnpoints for team1-->
     70          <!--
     71          <TeamSpawnPoint
     72            team=1 position="<?lua print((math.random() * 500 + 500)) ?>,<?lua print((math.random() * 500 + 500) ) ?>,<?lua print((math.random() * 500 + 500)) ?>"
     73            lookat="0,0,0"
     74            spawnclass=SpaceShip
     75            pawndesign=spaceshipassff
     76          />-->
     77        <?lua end ?>
    7878
    79             <Model mesh="Carrier.mesh" scale="5" />
    80             <Backlight
    81                 mainstate=activity
    82                 active=false
    83                 scale=0.4
    84                 name=bltest
    85                 position=" 7.6, 0, 6"
    86                 colour="0.2, 0.65, 1.0, 1.0"
    87                 width=15
    88                 length=1500
    89                 lifetime=2
    90                 elements=50
    91                 trailmaterial="Trail/backlighttrail"
    92                 turnontime=1
    93                 turnofftime=1
    94                 material="Flares/ThrusterFlare1"
    95             />
    96             <?lua for i=0,8,1 do ?>
    97                 <BlinkingBillboard
    98                     position="<?lua print(200-270/8*i)?> ,15,2"
    99                     material="Examples/Flare"
    100                     colour="1.0, 0.5, 0.3"
    101                     phase=<?lua print(-360/8*i)?>
    102                     amplitude=0.1
    103                     frequency=0.5
    104                     quadratic=1
    105                 />
     79        <Model mesh="Carrier.mesh" scale="5" />
     80        <Backlight
     81          mainstate=activity
     82          active=false
     83          scale=0.4
     84          name=bltest
     85          position=" 7.6, 0, 6"
     86          colour="0.2, 0.65, 1.0, 1.0"
     87          width=15
     88          length=1500
     89          lifetime=2
     90          elements=50
     91          trailmaterial="Trail/backlighttrail"
     92          turnontime=1
     93          turnofftime=1
     94          material="Flares/ThrusterFlare1"
     95        />
     96        <?lua for i=0,8,1 do ?>
     97          <BlinkingBillboard
     98            position="<?lua print(200-270/8*i)?> ,15,2"
     99            material="Examples/Flare"
     100            colour="1.0, 0.5, 0.3"
     101            phase=<?lua print(-360/8*i)?>
     102            amplitude=0.1
     103            frequency=0.5
     104            quadratic=1
     105          />
    106106
    107                 <BlinkingBillboard
    108                     position="<?lua print(200-270/8*i)?>,-15,2"
    109                     material="Examples/Flare"
    110                     colour="1.0, 0.5, 0.3"
    111                     phase=<?lua print(-360/8*i)?>
    112                     amplitude=0.1
    113                     frequency=0.5
    114                     quadratic=1
    115                 />
    116             <?lua end ?>
     107          <BlinkingBillboard
     108            position="<?lua print(200-270/8*i)?>,-15,2"
     109            material="Examples/Flare"
     110            colour="1.0, 0.5, 0.3"
     111            phase=<?lua print(-360/8*i)?>
     112            amplitude=0.1
     113            frequency=0.5
     114            quadratic=1
     115          />
     116        <?lua end ?>
    117117
    118             <Backlight
    119                 scale=1
    120                 position=" 169, 75, -15"
    121                 colour="1, 0.85, 0.5, 0.5"
    122                 width=40
    123                 length=1000
    124                 lifetime=5
    125                 elements=15
    126                 trailmaterial="Trail/backlighttrail"
    127                 material="Examples/Flare"
    128             />
    129             <Backlight
    130                 scale=1
    131                 position=" 169, -75, -15"
    132                 colour="1, 0.85, 0.5, 0.5"
    133                 width=40
    134                 length=1000
    135                 lifetime=5
    136                 elements=15
    137                 trailmaterial="Trail/backlighttrail"
    138                 material="Examples/Flare" />
    139         </attached>
    140         <collisionShapes>
    141             <BoxCollisionShape position="70,0,-25"      halfExtents="150, 50, 25" />
    142             <BoxCollisionShape position="95,75,-16"     halfExtents="70, 10, 12" />
    143             <BoxCollisionShape position="95,-75,-16"    halfExtents="70, 10, 12" />
    144             <BoxCollisionShape position="77,47,30"      halfExtents="110, 2, 30" />
    145             <BoxCollisionShape position="77,-47,30"     halfExtents="110, 2, 30" />
    146             <BoxCollisionShape position="77,0,50"       halfExtents="110, 45, 6" />
    147             <BoxCollisionShape position="167,0,70"      halfExtents="17, 20, 20" />
    148         </collisionShapes>
     118        <Backlight
     119          scale=1
     120          position=" 169, 75, -15"
     121          colour="1, 0.85, 0.5, 0.5"
     122          width=40
     123          length=1000
     124          lifetime=5
     125          elements=15
     126          trailmaterial="Trail/backlighttrail"
     127          material="Examples/Flare"
     128        />
     129        <Backlight
     130          scale=1
     131          position=" 169, -75, -15"
     132          colour="1, 0.85, 0.5, 0.5"
     133          width=40
     134          length=1000
     135          lifetime=5
     136          elements=15
     137          trailmaterial="Trail/backlighttrail"
     138          material="Examples/Flare" />
     139      </attached>
     140      <collisionShapes>
     141        <BoxCollisionShape position="70,0,-25"      halfExtents="150, 50, 25" />
     142        <BoxCollisionShape position="95,75,-16"     halfExtents="70, 10, 12" />
     143        <BoxCollisionShape position="95,-75,-16"    halfExtents="70, 10, 12" />
     144        <BoxCollisionShape position="77,47,30"      halfExtents="110, 2, 30" />
     145        <BoxCollisionShape position="77,-47,30"     halfExtents="110, 2, 30" />
     146        <BoxCollisionShape position="77,0,50"       halfExtents="110, 45, 6" />
     147        <BoxCollisionShape position="167,0,70"      halfExtents="17, 20, 20" />
     148      </collisionShapes>
    149149    </Destroyer>
    150150
     
    163163      </collisionShapes>
    164164    </StaticEntity>
     165   
    165166  </Scene>
    166167</Level>
  • code/branches/presentation3/data/levels/mylevel.oxw

    r6920 r7007  
    11<?lua
    2         include("stats.oxo")
    3         include("hudtemplates3.oxo")
    4         include("underattackhud.oxo")
    5         include("templates/spaceship_assff.oxt")
    6         include("templates/spaceship_pirate.oxt")
    7         include("templates/spaceship_Transporter.oxt")
     2  include("stats.oxo")
     3  include("hudtemplates3.oxo")
     4  include("underattackhud.oxo")
     5  include("templates/spaceship_assff.oxt")
     6  include("templates/spaceship_pirate.oxt")
     7  include("templates/spaceship_Transporter.oxt")
    88?>
    99
     
    4444      <BoxCollisionShape position="0,0.1,-19"  halfExtents="1.4, 1, 2" />
    4545    </collisionShapes>
    46 <?lua
    47   include("includes/weaponsettings3.oxi")
    48 ?>
     46
     47    <?lua
     48      include("includes/weaponsettings3.oxi")
     49    ?>
    4950  </SpaceShip>
    5051</Template>
     
    5758>
    5859
    59         <!-- Ausgang: Szene ===> ambientlight/skybox -->
    60         <Scene
    61           ambientlight="0.8,0.8,0.8"
    62           skybox="Orxonox/skypanoramagen1"
    63         >
     60  <!-- Ausgang: Szene ===> ambientlight/skybox -->
     61  <Scene
     62    ambientlight="0.8,0.8,0.8"
     63    skybox="Orxonox/skypanoramagen1"
     64  >
    6465
    65                 <!--Light: noch zu aendern -->
    66                 <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" />
     66    <!--Light: noch zu aendern -->
     67    <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" />
    6768
    68 
    69                 <SpawnPoint position="0,0,0" direction="1000,0,0" spawnclass=SpaceShip pawndesign=spaceshipassffplayer team=0/>
     69    <SpawnPoint position="0,0,0" direction="1000,0,0" spawnclass=SpaceShip pawndesign=spaceshipassffplayer team=0/>
    7070
    7171<!--
    72                 <EventTrigger name="testdestroy" activations=1 stayactive="true">
    73                         <events>
    74                                 <trigger>
    75                                         <SpaceShip position="2000,0,3000" lookat="0,0,0" team=1>
    76                                                 <templates>
    77                                                         <Template link=spaceshippirate/>
    78                                                 </templates>
    79                                                 <controller>
    80                                                         <AIController activity="false"/>
    81                                                 </controller>
    82                                         </SpaceShip>
    83                                 </trigger>
    84                         </events>
    85                 </EventTrigger>
     72    <EventTrigger name="testdestroy" activations=1 stayactive="true">
     73      <events>
     74        <trigger>
     75          <SpaceShip position="2000,0,3000" lookat="0,0,0" team=1>
     76            <templates>
     77              <Template link=spaceshippirate/>
     78            </templates>
     79            <controller>
     80              <AIController activity="false"/>
     81            </controller>
     82          </SpaceShip>
     83        </trigger>
     84      </events>
     85    </EventTrigger>
    8686-->
    8787
    88                                         <SpaceShip position="1000,0,200" lookat="0,0,0">
    89                                                 <templates>
    90                                                         <Template link=spaceshipassff/>
    91                                                 </templates>
    92                                                 <controller>
    93                                                         <AIController active="false"/>
    94                                                 </controller>
    95                                         </SpaceShip>
     88    <SpaceShip position="1000,0,200" lookat="0,0,0">
     89      <templates>
     90        <Template link=spaceshipassff/>
     91      </templates>
     92      <controller>
     93        <AIController active="false"/>
     94      </controller>
     95    </SpaceShip>
    9696
    97 <DistanceTrigger name="triggername" position="1000,0,0" distance="500" target="DistanceTriggerBeacon" targetname="test" activations=1 stayactive="true" />
     97    <DistanceTrigger name="triggername" position="1000,0,0" distance="500" target="DistanceTriggerBeacon" targetname="test" activations=1 stayactive="true" />
    9898
    99                 <SpaceShip position="1000,0,0" lookat="2000,0,0" >
    100                         <templates>
    101                                 <Template link=spaceshipassff />
    102                         </templates>
    103                         <controller>
    104                                 <WaypointPatrolController alertnessradius=5000 team=0 active="false" >
    105                                         <waypoints>
    106                                                 <Model mesh="cube.mesh" scale=0 position="2000,0,0" />
    107                                         </waypoints>
    108                                         <events>
    109                                                 <activity>
    110                                                         <EventListener event="triggername" />
    111                                                 </activity>
    112                                         </events>
    113                                 </WaypointPatrolController>
    114                         </controller>
    115                 </SpaceShip>
    116         </Scene>
    117 </Level>
    118 
    119 
     99    <SpaceShip position="1000,0,0" lookat="2000,0,0" >
     100      <templates>
     101        <Template link=spaceshipassff />
     102      </templates>
     103      <controller>
     104        <WaypointPatrolController alertnessradius=5000 team=0 active="false" >
     105          <waypoints>
     106            <Model mesh="cube.mesh" scale=0 position="2000,0,0" />
     107          </waypoints>
     108          <events>
     109            <activity>
     110              <EventListener event="triggername" />
     111            </activity>
     112          </events>
     113        </WaypointPatrolController>
     114      </controller>
     115    </SpaceShip>
    120116
    121117<!-- ZUM ERSTELLEN DER DESTROYTRIGGER
    122 <EventTrigger name="triggername" activations=1 stayactive=true >
    123         <events>
    124                 <trigger>
    125                         <Spaceship />
    126                 </trigger>
    127         </events>
    128 </EventTrigger>
     118    <EventTrigger name="triggername" activations=1 stayactive=true >
     119      <events>
     120        <trigger>
     121          <Spaceship />
     122        </trigger>
     123      </events>
     124    </EventTrigger>
    129125
    130 <Spaceship>
    131         <controller>
    132                 <SomeController activity="false">
    133                         <events>
    134                                 <activity>
    135                                         <EventListener event="triggername" />
    136                                 </activity>
    137                         </events>
    138                 </SomeController>
    139         </controller>
    140 </Spacehip>
     126    <Spaceship>
     127      <controller>
     128        <SomeController activity="false">
     129          <events>
     130            <activity>
     131              <EventListener event="triggername" />
     132            </activity>
     133          </events>
     134        </SomeController>
     135      </controller>
     136    </Spacehip>
     137-->
    141138
    142 -->
     139  </Scene>
     140</Level>
  • code/branches/presentation3/data/levels/pickups.oxw

    r7005 r7007  
    1919  >
    2020
    21 <?lua
    22   include("includes/pickups.oxi")
    23 ?>
    24    
     21    <?lua
     22      include("includes/pickups.oxi")
     23    ?>
     24
    2525    <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" />
    2626    <SpawnPoint position="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
     
    2828
    2929    <!-- Shield pickups -->
    30    
    31     <PickupSpawner position="-25,-25,-100" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
    32         <pickup>
    33             <ShieldPickup template=smallshieldpickup />
    34         </pickup>
     30
     31    <PickupSpawner position="-25,-25,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
     32      <pickup>
     33        <ShieldPickup template=smallshieldpickup />
     34      </pickup>
    3535    </PickupSpawner>
    3636
    37     <PickupSpawner position="0,-25,-100" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
    38         <pickup>
    39             <ShieldPickup template=mediumshieldpickup />
    40         </pickup>
     37    <PickupSpawner position="0,-25,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
     38      <pickup>
     39        <ShieldPickup template=mediumshieldpickup />
     40      </pickup>
    4141    </PickupSpawner>
    4242
    43     <PickupSpawner position="25,-25,-100" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
    44         <pickup>
    45             <ShieldPickup template=hugeshieldpickup />
    46         </pickup>
    47     </PickupSpawner>
    48    
    49     <!-- Health pickups -->
    50    
    51     <PickupSpawner position="-25,0,-100" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
    52         <pickup>
    53             <HealthPickup template=smallhealthpickup />
    54         </pickup>
    55     </PickupSpawner>
    56    
    57     <PickupSpawner position="0,0,-100" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
    58         <pickup>
    59             <HealthPickup template=mediumhealthpickup />
    60         </pickup>
    61     </PickupSpawner>
    62    
    63     <PickupSpawner position="25,0,-100" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
    64         <pickup>
    65             <HealthPickup template=hugehealthpickup />
    66         </pickup>
    67     </PickupSpawner>
    68    
    69     <PickupSpawner position="50,0,-100" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
    70         <pickup>
    71             <HealthPickup template=crazyhealthpickup />
    72         </pickup>
    73     </PickupSpawner>
    74    
    75     <!-- Speed pickups -->
    76    
    77     <PickupSpawner position="-25,25,-100" triggerDistance="10" respawnTime="10" maxSpawnedItems="99">
    78         <pickup>
    79             <SpeedPickup template=smallspeedpickup />
    80         </pickup>
     43    <PickupSpawner position="25,-25,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
     44      <pickup>
     45        <ShieldPickup template=hugeshieldpickup />
     46      </pickup>
    8147    </PickupSpawner>
    8248
    83     <PickupSpawner position="0,25,-100" triggerDistance="10" respawnTime="10" maxSpawnedItems="99">
    84         <pickup>
    85             <SpeedPickup template=mediumspeedpickup />
    86         </pickup>
     49    <!-- Health pickups -->
     50
     51    <PickupSpawner position="-25,0,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
     52      <pickup>
     53        <HealthPickup template=smallhealthpickup />
     54      </pickup>
    8755    </PickupSpawner>
    8856
    89     <PickupSpawner position="25,25,-100" triggerDistance="10" respawnTime="10" maxSpawnedItems="99">
    90         <pickup>
    91             <SpeedPickup template=hugespeedpickup />
    92         </pickup>
     57    <PickupSpawner position="0,0,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
     58      <pickup>
     59        <HealthPickup template=mediumhealthpickup />
     60      </pickup>
    9361    </PickupSpawner>
    9462
    95     <PickupSpawner position="50,25,-100" triggerDistance="10" respawnTime="10" maxSpawnedItems="99">
    96         <pickup>
    97             <SpeedPickup template=smalljumppickup />
    98         </pickup>
    99     </PickupSpawner>
    100    
    101     <!-- Invisible pickups -->
    102    
    103     <PickupSpawner position="-25,50,-100" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
    104         <pickup>
    105             <InvisiblePickup template=smallinvisiblepickup />
    106         </pickup>
     63    <PickupSpawner position="25,0,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
     64      <pickup>
     65        <HealthPickup template=hugehealthpickup />
     66      </pickup>
    10767    </PickupSpawner>
    10868
    109     <PickupSpawner position="0,50,-100" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
    110         <pickup>
    111             <InvisiblePickup template=mediuminvisiblepickup />
    112         </pickup>
     69    <PickupSpawner position="50,0,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
     70      <pickup>
     71        <HealthPickup template=crazyhealthpickup />
     72      </pickup>
    11373    </PickupSpawner>
    11474
    115     <PickupSpawner position="25,50,-100" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
    116         <pickup>
    117             <InvisiblePickup template=hugeinvisiblepickup />
    118         </pickup>
    119     </PickupSpawner>
    120    
    121     <!-- Meta pickups -->
    122    
    123     <PickupSpawner position="-25,75,-100" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
    124         <pickup>
    125             <MetaPickup metaType="use" />
    126         </pickup>
     75    <!-- Speed pickups -->
     76
     77    <PickupSpawner position="-25,25,-125" triggerDistance="10" respawnTime="10" maxSpawnedItems="99">
     78      <pickup>
     79        <SpeedPickup template=smallspeedpickup />
     80      </pickup>
    12781    </PickupSpawner>
    12882
    129     <PickupSpawner position="0,75,-100" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
    130         <pickup>
    131             <MetaPickup metaType="drop" />
    132         </pickup>
     83    <PickupSpawner position="0,25,-125" triggerDistance="10" respawnTime="10" maxSpawnedItems="99">
     84      <pickup>
     85        <SpeedPickup template=mediumspeedpickup />
     86      </pickup>
    13387    </PickupSpawner>
    134    
     88
     89    <PickupSpawner position="25,25,-125" triggerDistance="10" respawnTime="10" maxSpawnedItems="99">
     90      <pickup>
     91        <SpeedPickup template=hugespeedpickup />
     92      </pickup>
     93    </PickupSpawner>
     94
     95    <PickupSpawner position="50,25,-125" triggerDistance="10" respawnTime="10" maxSpawnedItems="99">
     96      <pickup>
     97        <SpeedPickup template=smalljumppickup />
     98      </pickup>
     99    </PickupSpawner>
     100
     101    <!-- Invisible pickups -->
     102
     103    <PickupSpawner position="-25,50,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
     104      <pickup>
     105        <InvisiblePickup template=smallinvisiblepickup />
     106      </pickup>
     107    </PickupSpawner>
     108
     109    <PickupSpawner position="0,50,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
     110      <pickup>
     111        <InvisiblePickup template=mediuminvisiblepickup />
     112      </pickup>
     113    </PickupSpawner>
     114
     115    <PickupSpawner position="25,50,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
     116      <pickup>
     117        <InvisiblePickup template=hugeinvisiblepickup />
     118      </pickup>
     119    </PickupSpawner>
     120
     121    <!-- Meta pickups -->
     122
     123    <PickupSpawner position="-25,75,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
     124      <pickup>
     125        <MetaPickup metaType="use" />
     126      </pickup>
     127    </PickupSpawner>
     128
     129    <PickupSpawner position="0,75,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
     130      <pickup>
     131        <MetaPickup metaType="drop" />
     132      </pickup>
     133    </PickupSpawner>
     134
    135135    <!-- Pickup Collection pickups -->
    136    
    137     <PickupSpawner position="0,100,-100" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
    138         <pickup>
    139             <PickupCollection template=triplehealthspeedinvisibilitypickup />
    140         </pickup>
     136
     137    <PickupSpawner position="-50,0,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
     138      <pickup>
     139        <PickupCollection template=triplehealthspeedinvisibilitypickup />
     140      </pickup>
    141141    </PickupSpawner>
    142    
     142
     143        <!-- PickupRepresentation for the pickup below, since it is not a standard pickup provided by pickups.oxi -->
     144    <PickupRepresentation
     145      pickupName = "Medium Health Pack"
     146      pickupDescription = "Once used adds a medium amout of health to the ship."
     147      spawnerTemplate = "mediumhealthpickupRepresentation"
     148      inventoryRepresentation = "MediumHealth"
     149    >
     150      <pickup>
     151        <HealthPickup health=50 activationType="onUse" durationType="once" />
     152      </pickup>
     153    </PickupRepresentation>
     154
     155    <PickupSpawner position="-50,25,-125" respawnTime="60" triggerDistance="20" maxSpawnedItems="5">
     156      <pickup>
     157        <HealthPickup health=50 activationType=onUse durationType=continuous />
     158      </pickup>
     159    </PickupSpawner>
     160
    143161  </Scene>
    144162</Level>
  • code/branches/presentation3/data/levels/presentation09.oxw

    r6417 r7007  
    1515   skybox       = "Orxonox/skypanoramagen1"
    1616  >
     17 
    1718    <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" />
    1819
    1920
    20 <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 />
     21    <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 />
    2122
    2223
    23 <?lua
    24 max = 20
    25 for i = 1, max, 1
    26 do
    27     x = math.sin(i/max*6)*40000
    28     y = math.cos(i/max*6)*40000
    29     z = i*100
     24    <?lua
     25      max = 20
     26      for i = 1, max, 1
     27      do
     28        x = math.sin(i/max*6)*40000
     29        y = math.cos(i/max*6)*40000
     30        z = i*100
    3031    ?>
    31 <?lua
    32 for k = 1, 25, 1
    33 do
    34 j = math.random()
    35 ?>
     32      <?lua
     33        for k = 1, 25, 1
     34        do
     35        j = math.random()
     36      ?>
    3637
    37     <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) ?>">
    38       <attached>
    39         <Model position="0,0,0" scale=<?lua print(j * 10) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
    40       </attached>
    41       <?lua if i == 5 then ?><collisionShapes>
    42         <SphereCollisionShape radius="<?lua print(j * 70) ?>" />
    43       </collisionShapes> <?lua end ?>
    44     </MovableEntity>
    45 <?lua
    46 end
    47 ?>
    48 <?lua end ?>
     38      <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) ?>">
     39        <attached>
     40          <Model position="0,0,0" scale=<?lua print(j * 10) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
     41        </attached>
     42        <?lua if i == 5 then ?><collisionShapes>
     43          <SphereCollisionShape radius="<?lua print(j * 70) ?>" />
     44        </collisionShapes> <?lua end ?>
     45      </MovableEntity>
     46   
     47      <?lua end ?>
     48    <?lua end ?>
     49   
    4950    <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 />
    5051
  • code/branches/presentation3/data/levels/presentation09b.oxw

    r6417 r7007  
    55  include("templates/spaceship_H2.oxt")
    66  include("templates/spaceship_pirate.oxt")
     7  include("templates/pickup_representation_templates.oxt")
    78?>
    89
     
    1617   skybox       = "Orxonox/skypanoramagen2"
    1718  >
     19
     20    <?lua
     21      include("includes/pickups.oxi")
     22    ?>
     23   
    1824    <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" />
    19 
    20     <Template name="JumpItem" baseclass="Jump">
    21         <Jump velocity="0,0,-1000" jumpsAvailable="4" guiImage="jumpturbinepickup.jpg" guiText="Jump" />
    22     </Template>
    23     <Template name="HealthImmediateItem" baseclass="HealthImmediate">
    24         <HealthImmediate recoveredHealth="100" guiImage="decal.jpg" guiText="Health" />
    25     </Template>
    26     <Template name="HealthUsableItem" baseclass="HealthUsable">
    27         <HealthImmediate recoveredHealth="80" guiImage="goldwrenchpickup.jpg" guiText="Health" />
    28     </Template>
    2925
    3026    <SpawnPoint position="-3800, 2500, 1500" direction="-0.683, -0.289, -0.670"  spawnclass=SpaceShip pawndesign=spaceshipassff />
     
    8783    </SpaceShip>
    8884
    89     <PickupSpawner item="JumpItem" triggerDistance="20" respawnTime="10000" position="-3800, 2500, 1500">
    90         <attached>
    91             <!--<Model mesh="jumpthrust.mesh" scale="1.0" />
    92             <Billboard material="Examples/Flare" colour="0.5, 1.0, 0.3" scale="0.5" />-->
    93         </attached>
     85    <PickupSpawner position="-3800, 2500, 1500" respawnTime="60" triggerDistance="20" maxSpawnedItems="5">
     86      <pickup>
     87        <SpeedPickup template=smalljumppickup />
     88      </pickup>
    9489    </PickupSpawner>
    9590
    96     <PickupSpawner item="HealthUsableItem" triggerDistance="20" respawnTime="10000" position="-4150,2750,1550">
    97         <attached>
    98             <Model mesh="gwrench.mesh" scale="1.0" />
    99             <Billboard material="Examples/Flare" colour="0.3, 0.8, 1.0" scale="0.5" />
    100         </attached>
     91    <!-- PickupRepresentation for the pickup below, since it is not a standard pickup provided by pickups.oxi -->
     92    <PickupRepresentation
     93      pickupName = "Medium Health Pack"
     94      pickupDescription = "Once used adds a medium amout of health to the ship."
     95      spawnerTemplate = "mediumhealthpickupRepresentation"
     96      inventoryRepresentation = "MediumHealth"
     97    >
     98      <pickup>
     99        <HealthPickup health=100 activationType="onUse" durationType="once" />
     100      </pickup>
     101    </PickupRepresentation>
     102
     103    <PickupSpawner position="-4150,2750,1550" respawnTime="60" triggerDistance="20" maxSpawnedItems="5">
     104      <pickup>
     105        <HealthPickup health=100 activationType=onUse durationType=once />
     106      </pickup>
    101107    </PickupSpawner>
    102108
    103     <PickupSpawner item="HealthImmediateItem" triggerDistance="20" respawnTime="3" position="2300, 4300, 2400">
    104         <attached>
    105             <Model mesh="gwrench.mesh" scale="1.0" />
    106             <Billboard material="Examples/Flare" colour="0.9, 1.0, 0.1" scale="0.5" />
    107         </attached>
     109    <PickupSpawner position="2300, 4300, 2400" respawnTime="5" triggerDistance="20">
     110      <pickup>
     111        <HealthPickup template=mediumhealthpickup />
     112      </pickup>
    108113    </PickupSpawner>
    109114
     
    120125    </EventDispatcher>
    121126
    122 <?lua
    123 for i = 1, 10, 1
    124 do
    125 ?>
    126     <SpaceShip position="<?lua print(5000 + math.random() * 4000 - 2000) ?>,<?lua print(0 + math.random() * 2000 - 1000) ?>,<?lua print(math.random() * 2000 - 1000) ?>">
    127       <templates>
    128         <Template link=spaceshippirate />
    129       </templates>
    130       <controller>
    131         <WaypointPatrolController name=pirates alertnessradius=1000 team=1 active=false>
    132           <waypoints>
    133             <StaticEntity position="3100, 2000, 1500" />
    134           </waypoints>
    135         </WaypointPatrolController>
    136       </controller>
    137     </SpaceShip>
    138 <?lua
    139 end
    140 ?>
    141 
    142 <?lua
    143 for i = 1, 12, 1
    144 do
    145 ?>
    146     <SpaceShip position="<?lua print(2800 + math.random() * 2000 - 1000) ?>,<?lua print(2500+ math.random() * 1000 - 500) ?>,<?lua print(2500 + math.random() * 1000 - 500) ?>" >
    147       <templates>
    148         <Template link=spaceshipassff />
    149       </templates>
    150       <controller>
    151         <WaypointPatrolController alertnessradius=1000 team=0>
    152           <waypoints>
    153             <StaticEntity position="<?lua print(2800 + math.random() * 1000 - 500) ?>,<?lua print(2500 + math.random() * 1000 - 500) ?>,<?lua print(1500 + math.random() * 1000 - 500) ?>" />
    154           </waypoints>
    155         </WaypointPatrolController>
    156       </controller>
    157     </SpaceShip>
    158 <?lua
    159 end
    160 ?>
     127    <?lua
     128      for i = 1, 10, 1 do
     129    ?>
     130      <SpaceShip position="<?lua print(5000 + math.random() * 4000 - 2000) ?>,<?lua print(0 + math.random() * 2000 - 1000) ?>,<?lua print(math.random() * 2000 - 1000) ?>">
     131        <templates>
     132          <Template link=spaceshippirate />
     133        </templates>
     134        <controller>
     135          <WaypointPatrolController name=pirates alertnessradius=1000 team=1 active=false>
     136            <waypoints>
     137              <StaticEntity position="3100, 2000, 1500" />
     138            </waypoints>
     139          </WaypointPatrolController>
     140        </controller>
     141      </SpaceShip>
     142    <?lua end ?>
     143
     144    <?lua
     145      for i = 1, 12, 1 do
     146    ?>
     147      <SpaceShip position="<?lua print(2800 + math.random() * 2000 - 1000) ?>,<?lua print(2500+ math.random() * 1000 - 500) ?>,<?lua print(2500 + math.random() * 1000 - 500) ?>" >
     148        <templates>
     149          <Template link=spaceshipassff />
     150        </templates>
     151        <controller>
     152          <WaypointPatrolController alertnessradius=1000 team=0>
     153            <waypoints>
     154              <StaticEntity position="<?lua print(2800 + math.random() * 1000 - 500) ?>,<?lua print(2500 + math.random() * 1000 - 500) ?>,<?lua print(1500 + math.random() * 1000 - 500) ?>" />
     155            </waypoints>
     156          </WaypointPatrolController>
     157        </controller>
     158      </SpaceShip>
     159    <?lua end ?>
    161160
    162161    <Billboard position="2300, 4400, 2500" material="Examples/Flare" />
     
    172171    </EventDispatcher>
    173172
    174 <?lua
    175 for i = 1, 12, 1
    176 do
    177 ?>
    178     <SpaceShip position="<?lua print(2500 + math.random() * 500 - 250) ?>,<?lua print(4800 + math.random() * 500 - 250) ?>,<?lua print(2500 + math.random() * 500 - 250) ?>" >
    179       <templates>
    180         <Template link=spaceshipassff />
    181       </templates>
    182       <controller>
    183         <WaypointPatrolController name=attacker alertnessradius=1000 team=0 active=false>
    184           <waypoints>
    185             <StaticEntity position="<?lua print(2800 + math.random() * 500 - 250) ?>,<?lua print(2500 + math.random() * 500 - 250) ?>,<?lua print(1500 + math.random() * 500 - 250) ?>" />
    186             <StaticEntity position="<?lua print(5000 + math.random() * 500 - 250) ?>,<?lua print(0 + math.random() * 500 - 250) ?>,<?lua print(0 + math.random() * 500 - 250) ?>" />
    187             <StaticEntity position="<?lua print(7500 + math.random() * 500 - 250) ?>,<?lua print(-2500 + math.random() * 500 - 250) ?>,<?lua print(-1500 + math.random() * 500 - 250) ?>" />
    188           </waypoints>
    189         </WaypointPatrolController>
    190       </controller>
    191     </SpaceShip>
    192 <?lua
    193 end
    194 ?>
     173    <?lua
     174      for i = 1, 12, 1 do
     175    ?>
     176      <SpaceShip position="<?lua print(2500 + math.random() * 500 - 250) ?>,<?lua print(4800 + math.random() * 500 - 250) ?>,<?lua print(2500 + math.random() * 500 - 250) ?>" >
     177        <templates>
     178          <Template link=spaceshipassff />
     179        </templates>
     180        <controller>
     181          <WaypointPatrolController name=attacker alertnessradius=1000 team=0 active=false>
     182            <waypoints>
     183              <StaticEntity position="<?lua print(2800 + math.random() * 500 - 250) ?>,<?lua print(2500 + math.random() * 500 - 250) ?>,<?lua print(1500 + math.random() * 500 - 250) ?>" />
     184              <StaticEntity position="<?lua print(5000 + math.random() * 500 - 250) ?>,<?lua print(0 + math.random() * 500 - 250) ?>,<?lua print(0 + math.random() * 500 - 250) ?>" />
     185              <StaticEntity position="<?lua print(7500 + math.random() * 500 - 250) ?>,<?lua print(-2500 + math.random() * 500 - 250) ?>,<?lua print(-1500 + math.random() * 500 - 250) ?>" />
     186            </waypoints>
     187          </WaypointPatrolController>
     188        </controller>
     189      </SpaceShip>
     190    <?lua end ?>
    195191
    196192    <StaticEntity position="2800, 2500, 2500">
    197         <attached>
    198             <CheckPoint />
    199             <Model position="400, 0, 0" scale="40" mesh="DuBall2.mesh"/>
    200             <Model position="-400, 0, 0" scale="40" mesh="DuBall1.mesh"/>
    201         </attached>
     193      <attached>
     194        <CheckPoint />
     195        <Model position="400, 0, 0" scale="40" mesh="DuBall2.mesh"/>
     196        <Model position="-400, 0, 0" scale="40" mesh="DuBall1.mesh"/>
     197      </attached>
    202198    </StaticEntity>
     199
    203200<!--
    204201    <Destroyer position="6500, -2000, -1000" collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=500>
    205         <attached>
    206             <CheckPoint />
    207             <Model position="0,0,0" scale="5" mesh="Carrier.mesh"/>
    208             <Backlight
    209                 mainstate=activity
    210                 active=false
    211                 scale=0.4
    212                 name=bltest
    213                 position=" 7.6, 0, 6"
    214                 colour="0.2, 0.65, 1.0, 1.0"
    215                 width=15
    216                 length=1500
    217                 lifetime=2
    218                 elements=50
    219                 trailmaterial="Trail/backlighttrail"
    220                 turnontime=1
    221                 turnofftime=1
    222                 material="Flares/ThrusterFlare1"
    223             />
    224         </attached>
    225         <collisionShapes>
    226             <BoxCollisionShape position="70,0,-25"      halfExtents="150, 50, 25" />
    227             <BoxCollisionShape position="95,75,-16"     halfExtents="70, 10, 12" />
    228             <BoxCollisionShape position="95,-75,-16"    halfExtents="70, 10, 12" />
    229             <BoxCollisionShape position="77,47,30"      halfExtents="110, 2, 30" />
    230             <BoxCollisionShape position="77,-47,30"     halfExtents="110, 2, 30" />
    231             <BoxCollisionShape position="77,0,50"       halfExtents="110, 45, 6" />
    232             <BoxCollisionShape position="167,0,70"      halfExtents="17, 20, 20" />
    233         </collisionShapes>
     202      <attached>
     203        <CheckPoint />
     204        <Model position="0,0,0" scale="5" mesh="Carrier.mesh"/>
     205        <Backlight
     206          mainstate=activity
     207          active=false
     208          scale=0.4
     209          name=bltest
     210          position=" 7.6, 0, 6"
     211          colour="0.2, 0.65, 1.0, 1.0"
     212          width=15
     213          length=1500
     214          lifetime=2
     215          elements=50
     216          trailmaterial="Trail/backlighttrail"
     217          turnontime=1
     218          turnofftime=1
     219          material="Flares/ThrusterFlare1"
     220        />
     221      </attached>
     222      <collisionShapes>
     223        <BoxCollisionShape position="70,0,-25"      halfExtents="150, 50, 25" />
     224        <BoxCollisionShape position="95,75,-16"     halfExtents="70, 10, 12" />
     225        <BoxCollisionShape position="95,-75,-16"    halfExtents="70, 10, 12" />
     226        <BoxCollisionShape position="77,47,30"      halfExtents="110, 2, 30" />
     227        <BoxCollisionShape position="77,-47,30"     halfExtents="110, 2, 30" />
     228        <BoxCollisionShape position="77,0,50"       halfExtents="110, 45, 6" />
     229        <BoxCollisionShape position="167,0,70"      halfExtents="17, 20, 20" />
     230      </collisionShapes>
    234231    </Destroyer>
    235232-->
     233
    236234    <Destroyer
    237         position          = "6500,-2000,-1000"
    238         collisionType     = dynamic
    239         mass              = 100000
    240         angularDamping    = 0.9999999
    241         health            = 1000
    242         maxhealth         = 1000
    243         initialhealth     = 1000
     235      position          = "6500,-2000,-1000"
     236      collisionType     = dynamic
     237      mass              = 100000
     238      angularDamping    = 0.9999999
     239      health            = 1000
     240      maxhealth         = 1000
     241      initialhealth     = 1000
    244242    >
     243      <controller>
     244        <WaypointPatrolController team=1 />
     245      </controller>
     246      <attached>
     247        <Model mesh="Carrier.mesh" scale="5" />
     248        <Backlight
     249          mainstate=activity
     250          active=false
     251          scale=0.4
     252          name=bltest
     253          position=" 7.6, 0, 6"
     254          colour="0.2, 0.65, 1.0, 1.0"
     255          width=15
     256          length=1500
     257          lifetime=2
     258          elements=50
     259          trailmaterial="Trail/backlighttrail"
     260          turnontime=1
     261          turnofftime=1
     262          material="Flares/ThrusterFlare1"
     263        />
     264
     265        <?lua
     266          for i=0,8,1 do
     267        ?>
     268          <BlinkingBillboard
     269            position="<?lua print(200-270/8*i)?> ,15,2"
     270            material="Examples/Flare"
     271            colour="1.0, 0.5, 0.3"
     272            phase=<?lua print(-360/8*i)?>
     273            amplitude=0.1
     274            frequency=0.5
     275            quadratic=1
     276          />
     277
     278          <BlinkingBillboard
     279            position="<?lua print(200-270/8*i)?>,-15,2"
     280            material="Examples/Flare"
     281            colour="1.0, 0.5, 0.3"
     282            phase=<?lua print(-360/8*i)?>
     283            amplitude=0.1
     284            frequency=0.5
     285            quadratic=1
     286          />
     287        <?lua end ?>
     288
     289        <Backlight
     290          scale=1
     291          position=" 169, 75, -15"
     292          colour="1, 0.85, 0.5, 0.5"
     293          width=40
     294          length=1000
     295          lifetime=5
     296          elements=15
     297          trailmaterial="Trail/backlighttrail"
     298          material="Examples/Flare"
     299        />
     300        <Backlight
     301          scale=1
     302          position=" 169, -75, -15"
     303          colour="1, 0.85, 0.5, 0.5"
     304          width=40
     305          length=1000
     306          lifetime=5
     307          elements=15
     308          trailmaterial="Trail/backlighttrail"
     309          material="Examples/Flare" />
     310      </attached>
     311      <collisionShapes>
     312        <BoxCollisionShape position="70,0,-25"      halfExtents="150, 50, 25" />
     313        <BoxCollisionShape position="95,75,-16"     halfExtents="70, 10, 12" />
     314        <BoxCollisionShape position="95,-75,-16"    halfExtents="70, 10, 12" />
     315        <BoxCollisionShape position="77,47,30"      halfExtents="110, 2, 30" />
     316        <BoxCollisionShape position="77,-47,30"     halfExtents="110, 2, 30" />
     317        <BoxCollisionShape position="77,0,50"       halfExtents="110, 45, 6" />
     318        <BoxCollisionShape position="167,0,70"      halfExtents="17, 20, 20" />
     319      </collisionShapes>
     320    </Destroyer>
     321
     322    <?lua
     323      for i = 1, 10, 1 do
     324    ?>
     325      <SpaceShip position="<?lua print(6200 + math.random() * 2000 - 1000) ?>,<?lua print(-1500 + math.random() * 1000 - 500) ?>,<?lua print(-700 + math.random() * 1000 - 500) ?>" >
     326        <templates>
     327          <Template link=spaceshippirate />
     328        </templates>
    245329        <controller>
    246           <WaypointPatrolController team=1 />
     330          <WaypointPatrolController alertnessradius=1000 team=1>
     331            <waypoints>
     332              <StaticEntity position="<?lua print(6000 + math.random() * 1000 - 500) ?>,<?lua print(-2000 + math.random() * 1000 - 500) ?>,<?lua print(-1000 + math.random() * 1000 - 500) ?>" />
     333            </waypoints>
     334          </WaypointPatrolController>
    247335        </controller>
     336      </SpaceShip>
     337    <?lua end ?>
     338
     339    <?lua
     340      for i = 1, 200, 1 do
     341        x = math.random() * 100  + (i-70) * 100
     342        y = math.random() * 3000 - 1500
     343        z = math.random() * 3000 - 1500 + (i-100) * 10
     344        s = math.random() * 60 + 30
     345    ?>
     346      <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) ?>">
    248347        <attached>
    249             <Model mesh="Carrier.mesh" scale="5" />
    250             <Backlight
    251                 mainstate=activity
    252                 active=false
    253                 scale=0.4
    254                 name=bltest
    255                 position=" 7.6, 0, 6"
    256                 colour="0.2, 0.65, 1.0, 1.0"
    257                 width=15
    258                 length=1500
    259                 lifetime=2
    260                 elements=50
    261                 trailmaterial="Trail/backlighttrail"
    262                 turnontime=1
    263                 turnofftime=1
    264                 material="Flares/ThrusterFlare1"
    265             />
    266             <?lua for i=0,8,1 do ?>
    267                 <BlinkingBillboard
    268                     position="<?lua print(200-270/8*i)?> ,15,2"
    269                     material="Examples/Flare"
    270                     colour="1.0, 0.5, 0.3"
    271                     phase=<?lua print(-360/8*i)?>
    272                     amplitude=0.1
    273                     frequency=0.5
    274                     quadratic=1
    275                 />
    276 
    277                 <BlinkingBillboard
    278                     position="<?lua print(200-270/8*i)?>,-15,2"
    279                     material="Examples/Flare"
    280                     colour="1.0, 0.5, 0.3"
    281                     phase=<?lua print(-360/8*i)?>
    282                     amplitude=0.1
    283                     frequency=0.5
    284                     quadratic=1
    285                 />
    286             <?lua end ?>
    287 
    288             <Backlight
    289                 scale=1
    290                 position=" 169, 75, -15"
    291                 colour="1, 0.85, 0.5, 0.5"
    292                 width=40
    293                 length=1000
    294                 lifetime=5
    295                 elements=15
    296                 trailmaterial="Trail/backlighttrail"
    297                 material="Examples/Flare"
    298             />
    299             <Backlight
    300                 scale=1
    301                 position=" 169, -75, -15"
    302                 colour="1, 0.85, 0.5, 0.5"
    303                 width=40
    304                 length=1000
    305                 lifetime=5
    306                 elements=15
    307                 trailmaterial="Trail/backlighttrail"
    308                 material="Examples/Flare" />
     348          <Model position="0,0,0" scale=<?lua print(s) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
    309349        </attached>
    310         <collisionShapes>
    311             <BoxCollisionShape position="70,0,-25"      halfExtents="150, 50, 25" />
    312             <BoxCollisionShape position="95,75,-16"     halfExtents="70, 10, 12" />
    313             <BoxCollisionShape position="95,-75,-16"    halfExtents="70, 10, 12" />
    314             <BoxCollisionShape position="77,47,30"      halfExtents="110, 2, 30" />
    315             <BoxCollisionShape position="77,-47,30"     halfExtents="110, 2, 30" />
    316             <BoxCollisionShape position="77,0,50"       halfExtents="110, 45, 6" />
    317             <BoxCollisionShape position="167,0,70"      halfExtents="17, 20, 20" />
    318         </collisionShapes>
    319     </Destroyer>
    320 
    321 <?lua
    322 for i = 1, 10, 1
    323 do
    324 ?>
    325     <SpaceShip position="<?lua print(6200 + math.random() * 2000 - 1000) ?>,<?lua print(-1500 + math.random() * 1000 - 500) ?>,<?lua print(-700 + math.random() * 1000 - 500) ?>" >
    326       <templates>
    327         <Template link=spaceshippirate />
    328       </templates>
    329       <controller>
    330         <WaypointPatrolController alertnessradius=1000 team=1>
    331           <waypoints>
    332             <StaticEntity position="<?lua print(6000 + math.random() * 1000 - 500) ?>,<?lua print(-2000 + math.random() * 1000 - 500) ?>,<?lua print(-1000 + math.random() * 1000 - 500) ?>" />
    333           </waypoints>
    334         </WaypointPatrolController>
    335       </controller>
    336     </SpaceShip>
    337 <?lua
    338 end
    339 ?>
    340 
    341 <?lua
    342 for i = 1, 200, 1
    343 do
    344 x = math.random() * 100  + (i-70) * 100
    345 y = math.random() * 3000 - 1500
    346 z = math.random() * 3000 - 1500 + (i-100) * 10
    347 s = math.random() * 60 + 30
    348 ?>
    349 
    350     <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) ?>">
    351       <attached>
    352         <Model position="0,0,0" scale=<?lua print(s) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
    353       </attached>
    354     </MovableEntity>
    355 <?lua
    356 end
    357 ?>
    358 
    359 <?lua
    360 elements = {"BodyDebris1.mesh", "CockpitDebris.mesh", "LightningGun.mesh", "WingDebris1.mesh", "WingDebris2.mesh", "satellitedish.mesh", "Thruster.mesh"}
    361 sizes = {4, 4, 4, 4, 4, 10, 20}
    362 elements.length = function()
    363     return table.getn(elements)
    364 end
    365 for i = 1, 150, 1
    366 do
    367 x = math.random() * 750 - 4500
    368 y = math.random() * 1000 + 2000
    369 z = math.random() * 500 + 1000
    370 e = math.floor(math.random()*elements.length()+1)
    371 ?>
    372 
    373     <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) ?>">
    374       <attached>
    375         <Model position="0,0,0" scale="<?lua print(sizes[e]) ?>" mesh="<?lua print( elements[e]) ?>" />
    376       </attached>
    377     </MovableEntity>
    378 <?lua
    379 end
    380 ?>
     350      </MovableEntity>
     351    <?lua end ?>
     352
     353    <?lua
     354      elements = {"BodyDebris1.mesh", "CockpitDebris.mesh", "LightningGun.mesh", "WingDebris1.mesh", "WingDebris2.mesh", "satellitedish.mesh", "Thruster.mesh"}
     355      sizes = {4, 4, 4, 4, 4, 10, 20}
     356     
     357      elements.length = function()
     358        return table.getn(elements)
     359      end
     360     
     361      for i = 1, 150, 1 do
     362        x = math.random() * 750 - 4500
     363        y = math.random() * 1000 + 2000
     364        z = math.random() * 500 + 1000
     365        e = math.floor(math.random()*elements.length()+1)
     366    ?>
     367
     368      <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) ?>">
     369        <attached>
     370          <Model position="0,0,0" scale="<?lua print(sizes[e]) ?>" mesh="<?lua print( elements[e]) ?>" />
     371        </attached>
     372      </MovableEntity>
     373    <?lua end ?>
    381374
    382375  </Scene>
  • code/branches/presentation3/data/levels/presentationHS09.oxw

    r6417 r7007  
    55  include("templates/spaceship_H2.oxt")
    66  include("templates/spaceship_pirate.oxt")
     7  include("templates/pickup_representation_templates.oxt")
    78?>
    89
     
    1718   skybox       = "Orxonox/skypanoramagen2"
    1819  >
     20
     21    <?lua
     22      include("includes/pickups.oxi")
     23    ?>
     24
    1925    <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" />
    2026
    21     <Template name="JumpItem" baseclass="Jump">
    22         <Jump velocity="0,0,-1000" jumpsAvailable="4" guiImage="jumpturbinepickup.jpg" guiText="Jump" />
    23     </Template>
    24     <Template name="HealthImmediateItem" baseclass="HealthImmediate">
    25         <HealthImmediate recoveredHealth="100" guiImage="decal.jpg" guiText="Health" />
    26     </Template>
    27     <Template name="HealthUsableItem" baseclass="HealthUsable">
    28         <HealthImmediate recoveredHealth="80" guiImage="goldwrenchpickup.jpg" guiText="Health" />
    29     </Template>
    30 
    3127    <SpawnPoint position="-3800, 2500, 1500" direction="-0.683, -0.289, -0.670"  spawnclass=SpaceShip pawndesign=spaceshipassff />
    32 
    33 
    3428
    3529    <SpaceShip position="-3900,3000,1000">
     
    9286    <Billboard material="Test/Fog" position="-3800, 2500, 1500" alpha="0.1" color="1, 1, 1, 0.1" scale="0.5" />
    9387
    94     <PickupSpawner item="JumpItem" triggerDistance="20" respawnTime="10000" position="-3800, 2500, 1500">
    95         <attached>
    96             <!--<Model mesh="jumpthrust.mesh" scale="1.0" />
    97             <Billboard material="Examples/Flare" colour="0.5, 1.0, 0.3" scale="0.5" />-->
    98         </attached>
     88    <PickupSpawner position="-3800, 2500, 1500" respawnTime="60" triggerDistance="20" maxSpawnedItems="5">
     89      <pickup>
     90        <SpeedPickup template=smalljumppickup />
     91      </pickup>
    9992    </PickupSpawner>
    10093
    101     <PickupSpawner item="HealthUsableItem" triggerDistance="20" respawnTime="10000" position="-4150,2750,1550">
    102         <attached>
    103             <Model mesh="gwrench.mesh" scale="1.0" />
    104             <Billboard material="Examples/Flare" colour="0.3, 0.8, 1.0" scale="0.5" />
    105         </attached>
     94    <!-- PickupRepresentation for the pickup below, since it is not a standard pickup provided by pickups.oxi -->
     95    <PickupRepresentation
     96      pickupName = "Medium Health Pack"
     97      pickupDescription = "Once used adds a medium amout of health to the ship."
     98      spawnerTemplate = "mediumhealthpickupRepresentation"
     99      inventoryRepresentation = "MediumHealth"
     100    >
     101      <pickup>
     102        <HealthPickup health=100 activationType="onUse" durationType="once" />
     103      </pickup>
     104    </PickupRepresentation>
     105
     106    <PickupSpawner position="-4150,2750,1550" respawnTime="60" triggerDistance="20" maxSpawnedItems="5">
     107      <pickup>
     108        <HealthPickup health=100 activationType=onUse durationType=once />
     109      </pickup>
    106110    </PickupSpawner>
    107111
    108     <PickupSpawner item="HealthImmediateItem" triggerDistance="20" respawnTime="3" position="2300, 4300, 2400">
    109         <attached>
    110             <Model mesh="gwrench.mesh" scale="1.0" />
    111             <Billboard material="Examples/Flare" colour="0.9, 1.0, 0.1" scale="0.5" />
    112         </attached>
     112    <PickupSpawner position="2300, 4300, 2400" respawnTime="5" triggerDistance="20">
     113      <pickup>
     114        <HealthPickup template=mediumhealthpickup />
     115      </pickup>
    113116    </PickupSpawner>
    114117
     
    125128    </EventDispatcher>
    126129
    127 <?lua
    128 for i = 1, 10, 1
    129 do
    130 ?>
    131     <SpaceShip position="<?lua print(5000 + math.random() * 4000 - 2000) ?>,<?lua print(0 + math.random() * 2000 - 1000) ?>,<?lua print(math.random() * 2000 - 1000) ?>">
    132       <templates>
    133         <Template link=spaceshippirate />
    134       </templates>
    135       <controller>
    136         <WaypointPatrolController name=pirates alertnessradius=1000 team=1 active=false>
    137           <waypoints>
    138             <StaticEntity position="3100, 2000, 1500" />
    139           </waypoints>
    140         </WaypointPatrolController>
    141       </controller>
    142     </SpaceShip>
    143 <?lua
    144 end
    145 ?>
    146 
    147 <?lua
    148 for i = 1, 12, 1
    149 do
    150 ?>
    151     <SpaceShip position="<?lua print(2800 + math.random() * 2000 - 1000) ?>,<?lua print(2500+ math.random() * 1000 - 500) ?>,<?lua print(2500 + math.random() * 1000 - 500) ?>" >
    152       <templates>
    153         <Template link=spaceshipassff />
    154       </templates>
    155       <controller>
    156         <WaypointPatrolController alertnessradius=1000 team=0>
    157           <waypoints>
    158             <StaticEntity position="<?lua print(2800 + math.random() * 1000 - 500) ?>,<?lua print(2500 + math.random() * 1000 - 500) ?>,<?lua print(1500 + math.random() * 1000 - 500) ?>" />
    159           </waypoints>
    160         </WaypointPatrolController>
    161       </controller>
    162     </SpaceShip>
    163 <?lua
    164 end
    165 ?>
     130    <?lua
     131      for i = 1, 10, 1 do
     132    ?>
     133      <SpaceShip position="<?lua print(5000 + math.random() * 4000 - 2000) ?>,<?lua print(0 + math.random() * 2000 - 1000) ?>,<?lua print(math.random() * 2000 - 1000) ?>">
     134        <templates>
     135          <Template link=spaceshippirate />
     136        </templates>
     137        <controller>
     138          <WaypointPatrolController name=pirates alertnessradius=1000 team=1 active=false>
     139            <waypoints>
     140              <StaticEntity position="3100, 2000, 1500" />
     141            </waypoints>
     142          </WaypointPatrolController>
     143        </controller>
     144      </SpaceShip>
     145    <?lua end ?>
     146
     147    <?lua
     148      for i = 1, 12, 1 do
     149    ?>
     150      <SpaceShip position="<?lua print(2800 + math.random() * 2000 - 1000) ?>,<?lua print(2500+ math.random() * 1000 - 500) ?>,<?lua print(2500 + math.random() * 1000 - 500) ?>" >
     151        <templates>
     152          <Template link=spaceshipassff />
     153        </templates>
     154        <controller>
     155          <WaypointPatrolController alertnessradius=1000 team=0>
     156            <waypoints>
     157              <StaticEntity position="<?lua print(2800 + math.random() * 1000 - 500) ?>,<?lua print(2500 + math.random() * 1000 - 500) ?>,<?lua print(1500 + math.random() * 1000 - 500) ?>" />
     158            </waypoints>
     159          </WaypointPatrolController>
     160        </controller>
     161      </SpaceShip>
     162    <?lua end ?>
    166163
    167164    <Billboard position="2300, 4400, 2500" material="Examples/Flare" />
     
    177174    </EventDispatcher>
    178175
    179 <?lua
    180 for i = 1, 12, 1
    181 do
    182 ?>
    183     <SpaceShip position="<?lua print(2500 + math.random() * 500 - 250) ?>,<?lua print(4800 + math.random() * 500 - 250) ?>,<?lua print(2500 + math.random() * 500 - 250) ?>" >
    184       <templates>
    185         <Template link=spaceshipassff />
    186       </templates>
    187       <controller>
    188         <WaypointPatrolController name=attacker alertnessradius=<?lua print(math.random() * 2000) ?> team=0 active=false>
    189           <waypoints>
    190             <StaticEntity position="<?lua print(2800 + math.random() * 500 - 250) ?>,<?lua print(2500 + math.random() * 500 - 250) ?>,<?lua print(1500 + math.random() * 500 - 250) ?>" />
    191             <StaticEntity position="<?lua print(5000 + math.random() * 500 - 250) ?>,<?lua print(0 + math.random() * 500 - 250) ?>,<?lua print(0 + math.random() * 500 - 250) ?>" />
    192             <StaticEntity position="<?lua print(7500 + math.random() * 500 - 250) ?>,<?lua print(-2500 + math.random() * 500 - 250) ?>,<?lua print(-1500 + math.random() * 500 - 250) ?>" />
    193           </waypoints>
    194         </WaypointPatrolController>
    195       </controller>
    196     </SpaceShip>
    197 <?lua
    198 end
    199 ?>
     176    <?lua
     177      for i = 1, 12, 1 do
     178    ?>
     179      <SpaceShip position="<?lua print(2500 + math.random() * 500 - 250) ?>,<?lua print(4800 + math.random() * 500 - 250) ?>,<?lua print(2500 + math.random() * 500 - 250) ?>" >
     180        <templates>
     181          <Template link=spaceshipassff />
     182        </templates>
     183        <controller>
     184          <WaypointPatrolController name=attacker alertnessradius=<?lua print(math.random() * 2000) ?> team=0 active=false>
     185            <waypoints>
     186              <StaticEntity position="<?lua print(2800 + math.random() * 500 - 250) ?>,<?lua print(2500 + math.random() * 500 - 250) ?>,<?lua print(1500 + math.random() * 500 - 250) ?>" />
     187              <StaticEntity position="<?lua print(5000 + math.random() * 500 - 250) ?>,<?lua print(0 + math.random() * 500 - 250) ?>,<?lua print(0 + math.random() * 500 - 250) ?>" />
     188              <StaticEntity position="<?lua print(7500 + math.random() * 500 - 250) ?>,<?lua print(-2500 + math.random() * 500 - 250) ?>,<?lua print(-1500 + math.random() * 500 - 250) ?>" />
     189            </waypoints>
     190          </WaypointPatrolController>
     191        </controller>
     192      </SpaceShip>
     193    <?lua end ?>
    200194
    201195    <StaticEntity position="2800, 2500, 2500">
    202         <attached>
    203             <CheckPoint />
    204             <Model position="400, 0, 0" scale="40" mesh="DuBall2.mesh"/>
    205             <Model position="-400, 0, 0" scale="40" mesh="DuBall1.mesh"/>
    206         </attached>
     196      <attached>
     197        <CheckPoint />
     198        <Model position="400, 0, 0" scale="40" mesh="DuBall2.mesh"/>
     199        <Model position="-400, 0, 0" scale="40" mesh="DuBall1.mesh"/>
     200      </attached>
    207201    </StaticEntity>
     202
    208203<!--
    209204    <Destroyer position="6500, -2000, -1000" collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=500>
    210         <attached>
    211             <CheckPoint />
    212             <Model position="0,0,0" scale="5" mesh="Carrier.mesh"/>
    213             <Backlight
    214                 mainstate=activity
    215                 active=false
    216                 scale=0.4
    217                 name=bltest
    218                 position=" 7.6, 0, 6"
    219                 colour="0.2, 0.65, 1.0, 1.0"
    220                 width=15
    221                 length=1500
    222                 lifetime=2
    223                 elements=50
    224                 trailmaterial="Trail/backlighttrail"
    225                 turnontime=1
    226                 turnofftime=1
    227                 material="Flares/ThrusterFlare1"
    228             />
    229         </attached>
    230         <collisionShapes>
    231             <BoxCollisionShape position="70,0,-25"      halfExtents="150, 50, 25" />
    232             <BoxCollisionShape position="95,75,-16"     halfExtents="70, 10, 12" />
    233             <BoxCollisionShape position="95,-75,-16"    halfExtents="70, 10, 12" />
    234             <BoxCollisionShape position="77,47,30"      halfExtents="110, 2, 30" />
    235             <BoxCollisionShape position="77,-47,30"     halfExtents="110, 2, 30" />
    236             <BoxCollisionShape position="77,0,50"       halfExtents="110, 45, 6" />
    237             <BoxCollisionShape position="167,0,70"      halfExtents="17, 20, 20" />
    238         </collisionShapes>
     205      <attached>
     206        <CheckPoint />
     207        <Model position="0,0,0" scale="5" mesh="Carrier.mesh"/>
     208        <Backlight
     209          mainstate=activity
     210          active=false
     211          scale=0.4
     212          name=bltest
     213          position=" 7.6, 0, 6"
     214          colour="0.2, 0.65, 1.0, 1.0"
     215          width=15
     216          length=1500
     217          lifetime=2
     218          elements=50
     219          trailmaterial="Trail/backlighttrail"
     220          turnontime=1
     221          turnofftime=1
     222          material="Flares/ThrusterFlare1"
     223        />
     224      </attached>
     225      <collisionShapes>
     226        <BoxCollisionShape position="70,0,-25"      halfExtents="150, 50, 25" />
     227        <BoxCollisionShape position="95,75,-16"     halfExtents="70, 10, 12" />
     228        <BoxCollisionShape position="95,-75,-16"    halfExtents="70, 10, 12" />
     229        <BoxCollisionShape position="77,47,30"      halfExtents="110, 2, 30" />
     230        <BoxCollisionShape position="77,-47,30"     halfExtents="110, 2, 30" />
     231        <BoxCollisionShape position="77,0,50"       halfExtents="110, 45, 6" />
     232        <BoxCollisionShape position="167,0,70"      halfExtents="17, 20, 20" />
     233      </collisionShapes>
    239234    </Destroyer>
    240235-->
     236
    241237    <Destroyer
    242         position          = "6500,-2000,-1000"
    243         collisionType     = dynamic
    244         mass              = 100000
    245         angularDamping    = 0.9999999
    246         health            = 1000
    247         maxhealth         = 1000
    248         initialhealth     = 1000
     238      position          = "6500,-2000,-1000"
     239      collisionType     = dynamic
     240      mass              = 100000
     241      angularDamping    = 0.9999999
     242      health            = 1000
     243      maxhealth         = 1000
     244      initialhealth     = 1000
    249245    >
     246      <controller>
     247        <WaypointPatrolController team=1 />
     248      </controller>
     249      <attached>
     250        <Model mesh="Carrier.mesh" scale="5" />
     251        <Backlight
     252          mainstate=activity
     253          active=false
     254          scale=0.4
     255          name=bltest
     256          position=" 7.6, 0, 6"
     257          colour="0.2, 0.65, 1.0, 1.0"
     258          width=15
     259          length=1500
     260          lifetime=2
     261          elements=50
     262          trailmaterial="Trail/backlighttrail"
     263          turnontime=1
     264          turnofftime=1
     265          material="Flares/ThrusterFlare1"
     266        />
     267
     268        <?lua
     269          for i=0,8,1 do
     270        ?>
     271          <BlinkingBillboard
     272            position="<?lua print(200-270/8*i)?> ,15,2"
     273            material="Examples/Flare"
     274            colour="1.0, 0.5, 0.3"
     275            phase=<?lua print(-360/8*i)?>
     276            amplitude=0.1
     277            frequency=0.5
     278            quadratic=1
     279          />
     280
     281          <BlinkingBillboard
     282            position="<?lua print(200-270/8*i)?>,-15,2"
     283            material="Examples/Flare"
     284            colour="1.0, 0.5, 0.3"
     285            phase=<?lua print(-360/8*i)?>
     286            amplitude=0.1
     287            frequency=0.5
     288            quadratic=1
     289          />
     290        <?lua end ?>
     291
     292        <Backlight
     293          scale=1
     294          position=" 169, 75, -15"
     295          colour="1, 0.85, 0.5, 0.5"
     296          width=40
     297          length=1000
     298          lifetime=5
     299          elements=15
     300          trailmaterial="Trail/backlighttrail"
     301          material="Examples/Flare"
     302        />
     303        <Backlight
     304          scale=1
     305          position=" 169, -75, -15"
     306          colour="1, 0.85, 0.5, 0.5"
     307          width=40
     308          length=1000
     309          lifetime=5
     310          elements=15
     311          trailmaterial="Trail/backlighttrail"
     312          material="Examples/Flare"
     313        />
     314      </attached>
     315      <collisionShapes>
     316        <BoxCollisionShape position="70,0,-25"      halfExtents="150, 50, 25" />
     317        <BoxCollisionShape position="95,75,-16"     halfExtents="70, 10, 12" />
     318        <BoxCollisionShape position="95,-75,-16"    halfExtents="70, 10, 12" />
     319        <BoxCollisionShape position="77,47,30"      halfExtents="110, 2, 30" />
     320        <BoxCollisionShape position="77,-47,30"     halfExtents="110, 2, 30" />
     321        <BoxCollisionShape position="77,0,50"       halfExtents="110, 45, 6" />
     322        <BoxCollisionShape position="167,0,70"      halfExtents="17, 20, 20" />
     323      </collisionShapes>
     324    </Destroyer>
     325
     326    <?lua
     327      for i = 1, 10, 1 do
     328    ?>
     329      <SpaceShip position="<?lua print(6200 + math.random() * 2000 - 1000) ?>,<?lua print(-1500 + math.random() * 1000 - 500) ?>,<?lua print(-700 + math.random() * 1000 - 500) ?>" >
     330        <templates>
     331          <Template link=spaceshippirate />
     332        </templates>
    250333        <controller>
    251           <WaypointPatrolController team=1 />
     334          <WaypointPatrolController alertnessradius=1000 team=1>
     335            <waypoints>
     336              <StaticEntity position="<?lua print(6000 + math.random() * 1000 - 500) ?>,<?lua print(-2000 + math.random() * 1000 - 500) ?>,<?lua print(-1000 + math.random() * 1000 - 500) ?>" />
     337            </waypoints>
     338          </WaypointPatrolController>
    252339        </controller>
     340      </SpaceShip>
     341    <?lua end ?>
     342
     343    <?lua
     344      elements = {"asteroid_ice.mesh", "asteroid_UV.mesh", "ast1.mesh", "ast2.mesh", "ast3.mesh", "ast4.mesh", "ast5.mesh", "ast6.mesh"}
     345
     346      elements.length = function()
     347        return table.getn(elements)
     348      end
     349
     350      for i = 1, 100, 1 do
     351        x = math.random() * 100  + (i) * 100
     352        y = math.random() * 3000 - 1500
     353        z = math.random() * 3000 - 1500 + (i-100) * 10
     354        s = math.random() * 60 + 30
     355        e = math.floor(math.random()*elements.length()+1)
     356    ?>
     357      <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) ?>">
    253358        <attached>
    254             <Model mesh="Carrier.mesh" scale="5" />
    255             <Backlight
    256                 mainstate=activity
    257                 active=false
    258                 scale=0.4
    259                 name=bltest
    260                 position=" 7.6, 0, 6"
    261                 colour="0.2, 0.65, 1.0, 1.0"
    262                 width=15
    263                 length=1500
    264                 lifetime=2
    265                 elements=50
    266                 trailmaterial="Trail/backlighttrail"
    267                 turnontime=1
    268                 turnofftime=1
    269                 material="Flares/ThrusterFlare1"
    270             />
    271             <?lua for i=0,8,1 do ?>
    272                 <BlinkingBillboard
    273                     position="<?lua print(200-270/8*i)?> ,15,2"
    274                     material="Examples/Flare"
    275                     colour="1.0, 0.5, 0.3"
    276                     phase=<?lua print(-360/8*i)?>
    277                     amplitude=0.1
    278                     frequency=0.5
    279                     quadratic=1
    280                 />
    281 
    282                 <BlinkingBillboard
    283                     position="<?lua print(200-270/8*i)?>,-15,2"
    284                     material="Examples/Flare"
    285                     colour="1.0, 0.5, 0.3"
    286                     phase=<?lua print(-360/8*i)?>
    287                     amplitude=0.1
    288                     frequency=0.5
    289                     quadratic=1
    290                 />
    291             <?lua end ?>
    292 
    293             <Backlight
    294                 scale=1
    295                 position=" 169, 75, -15"
    296                 colour="1, 0.85, 0.5, 0.5"
    297                 width=40
    298                 length=1000
    299                 lifetime=5
    300                 elements=15
    301                 trailmaterial="Trail/backlighttrail"
    302                 material="Examples/Flare"
    303             />
    304             <Backlight
    305                 scale=1
    306                 position=" 169, -75, -15"
    307                 colour="1, 0.85, 0.5, 0.5"
    308                 width=40
    309                 length=1000
    310                 lifetime=5
    311                 elements=15
    312                 trailmaterial="Trail/backlighttrail"
    313                 material="Examples/Flare" />
     359          <Model position="0,0,0" scale=<?lua print(s) ?> mesh="<?lua print(elements[e])?>" />
    314360        </attached>
    315         <collisionShapes>
    316             <BoxCollisionShape position="70,0,-25"      halfExtents="150, 50, 25" />
    317             <BoxCollisionShape position="95,75,-16"     halfExtents="70, 10, 12" />
    318             <BoxCollisionShape position="95,-75,-16"    halfExtents="70, 10, 12" />
    319             <BoxCollisionShape position="77,47,30"      halfExtents="110, 2, 30" />
    320             <BoxCollisionShape position="77,-47,30"     halfExtents="110, 2, 30" />
    321             <BoxCollisionShape position="77,0,50"       halfExtents="110, 45, 6" />
    322             <BoxCollisionShape position="167,0,70"      halfExtents="17, 20, 20" />
    323         </collisionShapes>
    324     </Destroyer>
    325 
    326 <?lua
    327 for i = 1, 10, 1
    328 do
    329 ?>
    330     <SpaceShip position="<?lua print(6200 + math.random() * 2000 - 1000) ?>,<?lua print(-1500 + math.random() * 1000 - 500) ?>,<?lua print(-700 + math.random() * 1000 - 500) ?>" >
    331       <templates>
    332         <Template link=spaceshippirate />
    333       </templates>
    334       <controller>
    335         <WaypointPatrolController alertnessradius=1000 team=1>
    336           <waypoints>
    337             <StaticEntity position="<?lua print(6000 + math.random() * 1000 - 500) ?>,<?lua print(-2000 + math.random() * 1000 - 500) ?>,<?lua print(-1000 + math.random() * 1000 - 500) ?>" />
    338           </waypoints>
    339         </WaypointPatrolController>
    340       </controller>
    341     </SpaceShip>
    342 <?lua
    343 end
    344 ?>
    345 
    346 <?lua
    347 elements = {"asteroid_ice.mesh", "asteroid_UV.mesh", "ast1.mesh", "ast2.mesh", "ast3.mesh", "ast4.mesh", "ast5.mesh", "ast6.mesh"}
    348 elements.length = function()
    349     return table.getn(elements)
    350 end
    351 for i = 1, 100, 1
    352 do
    353 x = math.random() * 100  + (i) * 100
    354 y = math.random() * 3000 - 1500
    355 z = math.random() * 3000 - 1500 + (i-100) * 10
    356 s = math.random() * 60 + 30
    357 e = math.floor(math.random()*elements.length()+1)
    358 ?>
    359 
    360     <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) ?>">
    361       <attached>
    362         <Model position="0,0,0" scale=<?lua print(s) ?> mesh="<?lua print(elements[e])?>" />
    363       </attached>
    364     </MovableEntity>
    365 <?lua
    366 end
    367 ?>
    368 
    369 <?lua
    370 for i = 1, 100, 1
    371 do
    372 x = math.random() * 200 + i*200
    373 y = math.random() * 3000 - 1500
    374 z = math.random() * 3000 - 1500 + (i-100) * 10
    375 s = math.random() * 60 + 30
    376 ?>
    377   <ParticleSpawner position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" source="Orxonox/Steam" lifetime=3.0 loop=1 />
    378 <!-- <Billboard material="Test/Fog" position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>"  color="1, 1, 1, 0.01" scale="20" />
    379 -->
    380 <?lua
    381 end
    382 ?>
    383 
    384 <?lua
    385 elements = {"BodyDebris1.mesh", "CockpitDebris.mesh", "LightningGun.mesh", "WingDebris1.mesh", "WingDebris2.mesh", "satellitedish.mesh", "Thruster.mesh"}
    386 sizes = {4, 4, 4, 4, 4, 10, 20}
    387 elements.length = function()
    388     return table.getn(elements)
    389 end
    390 for i = 1, 150, 1
    391 do
    392 x = math.random() * 750 - 4500
    393 y = math.random() * 1000 + 2000
    394 z = math.random() * 500 + 1000
    395 e = math.floor(math.random()*elements.length()+1)
    396 ?>
    397 
    398     <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) ?>">
    399       <attached>
    400         <Model position="0,0,0" scale="<?lua print(sizes[e]) ?>" mesh="<?lua print( elements[e]) ?>" />
    401       </attached>
    402     </MovableEntity>
    403 <?lua
    404 end
    405 ?>
     361      </MovableEntity>
     362    <?lua end ?>
     363
     364    <?lua
     365      for i = 1, 100, 1 do
     366        x = math.random() * 200 + i*200
     367        y = math.random() * 3000 - 1500
     368        z = math.random() * 3000 - 1500 + (i-100) * 10
     369        s = math.random() * 60 + 30
     370    ?>
     371      <ParticleSpawner position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" source="Orxonox/Steam" lifetime=3.0 loop=1 />
     372      <!-- Billboard material="Test/Fog" position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>"  color="1, 1, 1, 0.01" scale="20" /-->
     373    <?lua end ?>
     374
     375    <?lua
     376      elements = {"BodyDebris1.mesh", "CockpitDebris.mesh", "LightningGun.mesh", "WingDebris1.mesh", "WingDebris2.mesh", "satellitedish.mesh", "Thruster.mesh"}
     377      sizes = {4, 4, 4, 4, 4, 10, 20}
     378     
     379      elements.length = function()
     380        return table.getn(elements)
     381      end
     382     
     383      for i = 1, 150, 1 do
     384        x = math.random() * 750 - 4500
     385        y = math.random() * 1000 + 2000
     386        z = math.random() * 500 + 1000
     387        e = math.floor(math.random()*elements.length()+1)
     388    ?>
     389      <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) ?>">
     390        <attached>
     391          <Model position="0,0,0" scale="<?lua print(sizes[e]) ?>" mesh="<?lua print( elements[e]) ?>" />
     392        </attached>
     393      </MovableEntity>
     394    <?lua end ?>
     395   
    406396<!--
    407397    <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 />
    408398-->
    409 </Scene>
     399
     400  </Scene>
    410401</Level>
  • code/branches/presentation3/data/levels/presentationHS09b.oxw

    r6417 r7007  
    2424  >
    2525
    26 
    27 <AmbientSound ambientSource="Mars.ogg" looping="true" playOnLoad="true" />
     26    <AmbientSound ambientSource="Mars.ogg" looping="true" playOnLoad="true" />
    2827
    2928   <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" />
    30 <?lua
    31    for i = 1, 50, 1
    32    do
    33    x = math.random() * 2000  + 4000
    34    y = math.random() * 4000 - 2000
    35    z = math.random() * 2000 - 1000
    36    s = math.random() * 100
    37    ?>
    38 
    39     <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) ?>">
    40       <attached>
    41         <Model position="0,0,0" scale=<?lua print(s) ?> mesh="asteroid_UV.mesh" />
    42       </attached>
    43       <collisionShapes>
    44         <SphereCollisionShape radius="<?lua print(s*0.9) ?>" />
    45       </collisionShapes>
    46     </MovableEntity>
    47      <ParticleSpawner position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" source="Orxonox/Steam" lifetime=3.0 loop=1 />
    48 <?lua
    49 end
    50 ?>
    51 
    52 <?lua
    53 elements = {"BodyDebris1.mesh", "CockpitDebris.mesh", "LightningGun.mesh", "WingDebris1.mesh", "WingDebris2.mesh", "satellitedish.mesh", "Thruster.mesh"}
    54 sizes = {4, 4, 4, 4, 4, 10, 20}
    55 elements.length = function()
    56     return table.getn(elements)
    57 end
    58 for i = 1, 100, 1
    59 do
    60 x = math.random() * 750 - 4500
    61 y = math.random() * 1000 + 2000
    62 z = math.random() * 500 + 1000
    63 e = math.floor(math.random()*elements.length()+1)
    64 ?>
    65 
    66     <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) ?>">
    67       <attached>
    68         <Model position="0,0,0" scale="<?lua print(sizes[e]) ?>" mesh="<?lua print( elements[e]) ?>" />
    69       </attached>
    70     </MovableEntity>
    71 <?lua
    72 end
    73 ?>
    74 <?lua
    75 for i = 1,12, 1
    76 do
    77 ?>
    78     <SpaceShip position="<?lua print(math.random()*500 + 4500) ?>,<?lua print(-(math.random()*500 -250)) ?>,<?lua print(i*50 - 150) ?>" >
    79       <templates>
    80         <Template link=spaceshipHXYSL />
    81       </templates>
    82       <controller>
    83         <WaypointPatrolController alertnessradius=4000 team=0 active=true>
    84           <waypoints>
    85             <StaticEntity position="5000,<?lua print(math.random()*50)?> ,<?lua print(i*50 -150) ?>" />
    86           </waypoints>
    87         </WaypointPatrolController>
    88       </controller>
    89     </SpaceShip>
    90 <?lua
    91 end
    92 ?>
    93 <SpaceShip position="5000,100,100" >
     29   
     30    <?lua
     31      for i = 1, 50, 1 do
     32        x = math.random() * 2000  + 4000
     33        y = math.random() * 4000 - 2000
     34        z = math.random() * 2000 - 1000
     35        s = math.random() * 100
     36    ?>
     37      <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) ?>">
     38        <attached>
     39          <Model position="0,0,0" scale=<?lua print(s) ?> mesh="asteroid_UV.mesh" />
     40        </attached>
     41        <collisionShapes>
     42          <SphereCollisionShape radius="<?lua print(s*0.9) ?>" />
     43        </collisionShapes>
     44      </MovableEntity>
     45      <ParticleSpawner position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" source="Orxonox/Steam" lifetime=3.0 loop=1 />
     46    <?lua end ?>
     47
     48    <?lua
     49      elements = {"BodyDebris1.mesh", "CockpitDebris.mesh", "LightningGun.mesh", "WingDebris1.mesh", "WingDebris2.mesh", "satellitedish.mesh", "Thruster.mesh"}
     50      sizes = {4, 4, 4, 4, 4, 10, 20}
     51     
     52      elements.length = function()
     53        return table.getn(elements)
     54      end
     55     
     56      for i = 1, 100, 1 do
     57        x = math.random() * 750 - 4500
     58        y = math.random() * 1000 + 2000
     59        z = math.random() * 500 + 1000
     60        e = math.floor(math.random()*elements.length()+1)
     61    ?>
     62      <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) ?>">
     63        <attached>
     64          <Model position="0,0,0" scale="<?lua print(sizes[e]) ?>" mesh="<?lua print( elements[e]) ?>" />
     65        </attached>
     66      </MovableEntity>
     67    <?lua end ?>
     68
     69    <?lua
     70      for i = 1,12, 1 do
     71    ?>
     72      <SpaceShip position="<?lua print(math.random()*500 + 4500) ?>,<?lua print(-(math.random()*500 -250)) ?>,<?lua print(i*50 - 150) ?>" >
     73        <templates>
     74          <Template link=spaceshipHXYSL />
     75        </templates>
     76        <controller>
     77          <WaypointPatrolController alertnessradius=4000 team=0 active=true>
     78            <waypoints>
     79              <StaticEntity position="5000,<?lua print(math.random()*50)?> ,<?lua print(i*50 -150) ?>" />
     80            </waypoints>
     81          </WaypointPatrolController>
     82        </controller>
     83      </SpaceShip>
     84    <?lua end ?>
     85
     86    <SpaceShip position="5000,100,100" >
    9487      <templates>
    9588        <Template link=spaceshipTransporterSL />
     
    10295        </WaypointPatrolController>
    10396      </controller>
    104 </SpaceShip>
     97    </SpaceShip>
     98
    10599    <Destroyer
    106         position          = "-5000,100 ,100"
    107         collisionType     = dynamic
    108         mass              = 100000
    109         angularDamping    = 0.9999999
    110         health            = 1000
    111         maxhealth         = 1000
    112         initialhealth     = 1000
     100      position          = "-5000,100 ,100"
     101      collisionType     = dynamic
     102      mass              = 100000
     103      angularDamping    = 0.9999999
     104      health            = 1000
     105      maxhealth         = 1000
     106      initialhealth     = 1000
    113107    >
    114         <controller>
    115           <WaypointPatrolController team=1 />
    116         </controller>
     108      <controller>
     109        <WaypointPatrolController team=1 />
     110      </controller>
     111      <attached>
     112        <Model mesh="Carrier.mesh" scale="5" />
     113        <Backlight
     114          mainstate=activity
     115          active=false
     116          scale=0.4
     117          name=bltest
     118          position=" 7.6, 0, 6"
     119          colour="0.2, 0.65, 1.0, 1.0"
     120          width=15
     121          length=1500
     122          lifetime=2
     123          elements=50
     124          trailmaterial="Trail/backlighttrail"
     125          turnontime=1
     126          turnofftime=1
     127          material="Flares/ThrusterFlare1"
     128        />
     129        <?lua
     130          for i=0,8,1 do
     131        ?>
     132          <BlinkingBillboard
     133            position="<?lua print(200-270/8*i)?> ,15,2"
     134            material="Examples/Flare"
     135            colour="1.0, 0.5, 0.3"
     136            phase=<?lua print(-360/8*i)?>
     137            amplitude=0.1
     138            frequency=0.5
     139            quadratic=1
     140          />
     141
     142          <BlinkingBillboard
     143            position="<?lua print(200-270/8*i)?>,-15,2"
     144            material="Examples/Flare"
     145            colour="1.0, 0.5, 0.3"
     146            phase=<?lua print(-360/8*i)?>
     147            amplitude=0.1
     148            frequency=0.5
     149            quadratic=1
     150          />
     151        <?lua end ?>
     152
     153        <Backlight
     154          scale=1
     155          position=" 169, 75, -15"
     156          colour="1, 0.85, 0.5, 0.5"
     157          width=40
     158          length=1000
     159          lifetime=5
     160          elements=15
     161          trailmaterial="Trail/backlighttrail"
     162          material="Examples/Flare"
     163        />
     164        <Backlight
     165          scale=1
     166          position=" 169, -75, -15"
     167          colour="1, 0.85, 0.5, 0.5"
     168          width=40
     169          length=1000
     170          lifetime=5
     171          elements=15
     172          trailmaterial="Trail/backlighttrail"
     173          material="Examples/Flare"
     174        />
     175      </attached>
     176      <collisionShapes>
     177        <BoxCollisionShape position="70,0,-25"      halfExtents="150, 50, 25" />
     178        <BoxCollisionShape position="95,75,-16"     halfExtents="70, 10, 12" />
     179        <BoxCollisionShape position="95,-75,-16"    halfExtents="70, 10, 12" />
     180        <BoxCollisionShape position="77,47,30"      halfExtents="110, 2, 30" />
     181        <BoxCollisionShape position="77,-47,30"     halfExtents="110, 2, 30" />
     182        <BoxCollisionShape position="77,0,50"       halfExtents="110, 45, 6" />
     183        <BoxCollisionShape position="167,0,70"      halfExtents="17, 20, 20" />
     184      </collisionShapes>
     185    </Destroyer>
     186
     187    <?lua
     188      for i = 1, 50, 1 do
     189        x = -(math.random() * 2000  + 4000)
     190        y = math.random() * 4000 - 2000
     191        z = math.random() * 2000 - 1000
     192        s = math.random() * 100
     193    ?>
     194      <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) ?>">
    117195        <attached>
    118             <Model mesh="Carrier.mesh" scale="5" />
    119             <Backlight
    120                 mainstate=activity
    121                 active=false
    122                 scale=0.4
    123                 name=bltest
    124                 position=" 7.6, 0, 6"
    125                 colour="0.2, 0.65, 1.0, 1.0"
    126                 width=15
    127                 length=1500
    128                 lifetime=2
    129                 elements=50
    130                 trailmaterial="Trail/backlighttrail"
    131                 turnontime=1
    132                 turnofftime=1
    133                 material="Flares/ThrusterFlare1"
    134             />
    135             <?lua for i=0,8,1 do ?>
    136                 <BlinkingBillboard
    137                     position="<?lua print(200-270/8*i)?> ,15,2"
    138                     material="Examples/Flare"
    139                     colour="1.0, 0.5, 0.3"
    140                     phase=<?lua print(-360/8*i)?>
    141                     amplitude=0.1
    142                     frequency=0.5
    143                     quadratic=1
    144                 />
    145 
    146                 <BlinkingBillboard
    147                     position="<?lua print(200-270/8*i)?>,-15,2"
    148                     material="Examples/Flare"
    149                     colour="1.0, 0.5, 0.3"
    150                     phase=<?lua print(-360/8*i)?>
    151                     amplitude=0.1
    152                     frequency=0.5
    153                     quadratic=1
    154                 />
    155             <?lua end ?>
    156 
    157             <Backlight
    158                 scale=1
    159                 position=" 169, 75, -15"
    160                 colour="1, 0.85, 0.5, 0.5"
    161                 width=40
    162                 length=1000
    163                 lifetime=5
    164                 elements=15
    165                 trailmaterial="Trail/backlighttrail"
    166                 material="Examples/Flare"
    167             />
    168             <Backlight
    169                 scale=1
    170                 position=" 169, -75, -15"
    171                 colour="1, 0.85, 0.5, 0.5"
    172                 width=40
    173                 length=1000
    174                 lifetime=5
    175                 elements=15
    176                 trailmaterial="Trail/backlighttrail"
    177                 material="Examples/Flare" />
     196          <Model position="0,0,0" scale=<?lua print(s) ?> mesh="asteroid_ice.mesh" />
    178197        </attached>
    179198        <collisionShapes>
    180             <BoxCollisionShape position="70,0,-25"      halfExtents="150, 50, 25" />
    181             <BoxCollisionShape position="95,75,-16"     halfExtents="70, 10, 12" />
    182             <BoxCollisionShape position="95,-75,-16"    halfExtents="70, 10, 12" />
    183             <BoxCollisionShape position="77,47,30"      halfExtents="110, 2, 30" />
    184             <BoxCollisionShape position="77,-47,30"     halfExtents="110, 2, 30" />
    185             <BoxCollisionShape position="77,0,50"       halfExtents="110, 45, 6" />
    186             <BoxCollisionShape position="167,0,70"      halfExtents="17, 20, 20" />
     199          <SphereCollisionShape radius="<?lua print(s*0.9)?>" />
    187200        </collisionShapes>
    188     </Destroyer>
    189 
    190    <?lua
    191    for i = 1, 50, 1
    192    do
    193    x = -(math.random() * 2000  + 4000)
    194    y = math.random() * 4000 - 2000
    195    z = math.random() * 2000 - 1000
    196    s = math.random() * 100
    197    ?>
    198 
    199     <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) ?>">
    200       <attached>
    201         <Model position="0,0,0" scale=<?lua print(s) ?> mesh="asteroid_ice.mesh" />
    202       </attached>
    203       <collisionShapes>
    204         <SphereCollisionShape radius="<?lua print(s*0.9)?>" />
    205       </collisionShapes>
    206     </MovableEntity>
    207     <ParticleSpawner position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" source="Orxonox/Steam" lifetime=3.0 loop=1 />
    208 <?lua
    209 end
    210 ?>
    211 <!--<EventDispatcher>
     201      </MovableEntity>
     202      <ParticleSpawner position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" source="Orxonox/Steam" lifetime=3.0 loop=1 />
     203    <?lua end ?>
     204
     205    <!-- EventDispatcher>
    212206      <targets>
    213207        <EventTarget target=attack />
     
    219213        </activity>
    220214      </events>
    221 </EventDispatcher>
    222 
    223 <EventDispatcher>
     215    </EventDispatcher>
     216
     217    <EventDispatcher>
    224218      <targets>
    225219        <EventTarget target=wait />
     
    230224        </activity>
    231225      </events>
    232 </EventDispatcher>-->
    233 
    234 <?lua
    235 for i = 1,25, 1
    236 do
    237 ?>
    238 <SpaceShip position="<?lua print(-(math.random()*500 + 4500)) ?>,<?lua print(-(math.random()*500 -250)) ?>,<?lua print(i*50 - 150) ?>" >
    239       <templates>
    240         <Template link=spaceshipghost />
    241       </templates>
    242       <controller>
    243 
     226    </EventDispatcher -->
     227
     228    <?lua
     229      for i = 1,25, 1 do
     230    ?>
     231      <SpaceShip position="<?lua print(-(math.random()*500 + 4500)) ?>,<?lua print(-(math.random()*500 -250)) ?>,<?lua print(i*50 - 150) ?>" >
     232        <templates>
     233          <Template link=spaceshipghost />
     234        </templates>
     235        <controller>
    244236          <WaypointPatrolController name=attack alertnessradius=15000 team=1 active=false>
    245           <events>
    246            <activity>
    247              <DistanceTrigger position="-5000, 100, 100" distance=2000 target="Camera" stayactive=true />
    248            </activity>
    249           </events>
     237            <events>
     238              <activity>
     239                <DistanceTrigger position="-5000, 100, 100" distance=2000 target="Camera" stayactive=true />
     240              </activity>
     241            </events>
    250242          </WaypointPatrolController>
    251 
    252       </controller>
    253     </SpaceShip>
    254 <?lua
    255 end
    256 ?>
    257 
    258 
     243        </controller>
     244      </SpaceShip>
     245    <?lua end ?>
    259246
    260247    <AmbientSound ambientSource="Earth.ogg" looping="true" playOnLoad="false">
     
    266253    </AmbientSound>
    267254
    268     <SpawnPoint position="5000,0,2000" spawnclass=SpaceShip pawndesign=spaceshipassff  team=0/>
     255    <SpawnPoint position="5000,0,2000" spawnclass=SpaceShip pawndesign=spaceshipassff  team=0 />
     256   
    269257  </Scene>
    270258</Level>
  • code/branches/presentation3/data/levels/presentationLOD.oxw

    r6926 r7007  
    1717    skybox       = "Orxonox/Starbox"
    1818  >
     19
     20    <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" />
     21
     22    <SpawnPoint position="0,0,100" spawnclass=SpaceShip pawndesign=spaceshipassff />
     23
    1924    <Model position="0,10,0" scale=3 mesh="ast3.mesh"/>
    2025    <Model position="0,-10,0" scale=3 mesh="ast3.mesh"/>
    21     <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" />
    22     <SpawnPoint position="0,0,100" spawnclass=SpaceShip pawndesign=spaceshipassff />
     26
    2327  </Scene>
    2428</Level>
  • code/branches/presentation3/data/levels/presentationLODdif.oxw

    r6926 r7007  
    22  include("stats.oxo")
    33  include("hudtemplates3.oxo")
    4   include("lodinformation.oxt")
    54?>
    65
     
    87  include("templates/spaceship_assff.oxt")
    98  include("templates/spaceship_pirate.oxt")
     9  include("templates/lodinformation.oxt")
    1010?>
    1111
     
    1414 description  = "Just a few tests"
    1515>
     16
    1617  <lodinformation>
    17           <MeshLodInformation mesh=ast1.mesh lodQuality=4 />
     18    <MeshLodInformation mesh=ast1.mesh lodQuality=4 />
    1819  </lodinformation>
     20
    1921  <Scene
    2022    ambientlight = "0.8, 0.8, 0.8"
    2123    skybox       = "Orxonox/Starbox"
    2224  >
     25
     26    <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" />
     27
     28    <SpawnPoint position="0,0,100" spawnclass=SpaceShip pawndesign=spaceshipassff />
     29   
    2330    <Model position="0,10,0" scale=3 mesh="ast3.mesh"/>
    24         <Model position="0,-10,0" scale=3 mesh="ast3.mesh" lodLevel="1"/>
    25     <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" />
    26     <SpawnPoint position="0,0,100" spawnclass=SpaceShip pawndesign=spaceshipassff />
    27        
     31    <Model position="0,-10,0" scale=3 mesh="ast3.mesh" lodLevel="1"/>
     32
    2833  </Scene>
    2934
    3035  <templates>
    31         <Template link=lodtemplate_default />
     36    <Template link=lodtemplate_default />
    3237  </templates>
     38
    3339</Level>
    34 
    35  
  • code/branches/presentation3/data/levels/presentation_dm.oxw

    r6417 r7007  
    1717
    1818
    19 <?lua
    20 for i = 1, 10, 1
    21 do ?>
    22     <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 />
    23 <?lua
    24 end
    25 ?>
     19    <?lua
     20      for i = 1, 10, 1 do
     21    ?>
     22      <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 />
     23    <?lua end ?>
    2624
    2725    <GlobalShader compositor="Bloom" visible=false>
     
    3331    </GlobalShader>
    3432
    35 
    36 <?lua
    37 for i = 1, 100, 1
    38 do
    39 j = math.random()
    40 ?>
    41 
    42     <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) ?>">
    43       <attached>
    44         <Model position="0,0,0" scale=<?lua print(j * 10) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
    45       </attached>
    46       <collisionShapes>
    47         <SphereCollisionShape radius="<?lua print(j * 70) ?>" />
    48       </collisionShapes>
    49     </MovableEntity>
    50 <?lua
    51 end
    52 ?>
     33    <?lua
     34      for i = 1, 100, 1 do
     35        j = math.random()
     36    ?>
     37      <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) ?>">
     38        <attached>
     39          <Model position="0,0,0" scale=<?lua print(j * 10) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
     40        </attached>
     41        <collisionShapes>
     42          <SphereCollisionShape radius="<?lua print(j * 70) ?>" />
     43        </collisionShapes>
     44      </MovableEntity>
     45    <?lua end ?>
    5346
    5447<!--
    55 <?lua
    56 for i = 1, 70, 1
    57 do ?>
    58   <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) ?>">
    59     <attached>
    60       <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
    61     </attached>
    62   </MovableEntity>
    63   <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) ?>">
    64     <attached>
    65       <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
    66     </attached>
    67   </MovableEntity>
     48    <?lua
     49      for i = 1, 70, 1 do
     50    ?>
     51      <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) ?>">
     52        <attached>
     53          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
     54        </attached>
     55      </MovableEntity>
     56      <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) ?>">
     57        <attached>
     58          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
     59        </attached>
     60      </MovableEntity>
    6861
    69   <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) ?>">
    70     <attached>
    71       <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
    72     </attached>
    73   </MovableEntity>
    74   <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) ?>">
    75     <attached>
    76       <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
    77     </attached>
    78   </MovableEntity>
     62      <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) ?>">
     63        <attached>
     64          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
     65        </attached>
     66      </MovableEntity>
     67      <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) ?>">
     68        <attached>
     69          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
     70        </attached>
     71      </MovableEntity>
    7972
    80   <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) ?>">
    81     <attached>
    82       <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
    83     </attached>
    84   </MovableEntity>
    85   <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) ?>">
    86     <attached>
    87       <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
    88     </attached>
    89   </MovableEntity>
    90 <?lua
    91 end
    92 ?>
     73      <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) ?>">
     74        <attached>
     75          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
     76        </attached>
     77      </MovableEntity>
     78      <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) ?>">
     79        <attached>
     80          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
     81        </attached>
     82      </MovableEntity>
     83    <?lua end ?>
    9384-->
     85
    9486  </Scene>
    9587</Level>
  • code/branches/presentation3/data/levels/presentation_pong.oxw

    r5929 r7007  
    5454    <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" />
    5555
    56 <?lua
    57 for i = 1, 10, 1
    58 do ?>
    59     <SpawnPoint position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" />
    60 <?lua
    61 end
    62 ?>
    63 
    64   <MovableEntity rotationrate=5 rotationaxis="0,0,1">
    65     <attached>
    66       <PongCenterpoint name=pongcenter dimension="200,120" balltemplate=pongball battemplate=pongbat ballspeed=200 ballaccfactor=1.0 batspeed=130 batlength=0.25>
    67         <attached>
    68           <Model position="0,0,60" mesh="cube.mesh" scale3D="105,1,1" />
    69           <Model position="0,0,-60" mesh="cube.mesh" scale3D="105,1,1" />
    70 
    71           <ParticleSpawner name=scoreeffect_right position="120,0, 45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
    72           <ParticleSpawner name=scoreeffect_right position="120,0, 30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 />
    73           <ParticleSpawner name=scoreeffect_right position="120,0, 15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
    74           <ParticleSpawner name=scoreeffect_right position="120,0,  0" source="Orxonox/BigExplosion1part2" lifetime=0.1 autostart=0 />
    75           <ParticleSpawner name=scoreeffect_right position="120,0,-15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
    76           <ParticleSpawner name=scoreeffect_right position="120,0,-30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 />
    77           <ParticleSpawner name=scoreeffect_right position="120,0,-45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
    78 
    79           <ParticleSpawner name=scoreeffect_left position="-120,0, 45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
    80           <ParticleSpawner name=scoreeffect_left position="-120,0, 30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 />
    81           <ParticleSpawner name=scoreeffect_left position="-120,0, 15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
    82           <ParticleSpawner name=scoreeffect_left position="-120,0,  0" source="Orxonox/BigExplosion1part2" lifetime=0.1 autostart=0 />
    83           <ParticleSpawner name=scoreeffect_left position="-120,0,-15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
    84           <ParticleSpawner name=scoreeffect_left position="-120,0,-30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 />
    85           <ParticleSpawner name=scoreeffect_left position="-120,0,-45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
    86 
    87           <WorldSound name="scoreSound" position="0,0,0" source="sounds/pong_score.wav" >
    88             <events>
    89               <play>
    90                 <EventListener event=pongcenter />
    91               </play>
    92             </events>
    93           </WorldSound>
    94 
    95 <?lua
    96 for i = 1, 15, 1
    97 do ?>
    98           <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) ?> />
    99 <?lua
    100 end
    101 ?>
    102 
    103         </attached>
    104       </PongCenterpoint>
    105     </attached>
    106   </MovableEntity>
    107 
    108   <EventDispatcher>
    109     <targets>
    110       <EventTarget target=scoreeffect_right />
    111       <EventTarget target=scoreeffect_center />
    112     </targets>
    113     <events>
    114       <spawn>
    115         <EventFilter>
    116           <names>
    117             <EventName name=right />
    118           </names>
    119           <EventListener event=pongcenter />
    120         </EventFilter>
    121       </spawn>
    122     </events>
    123   </EventDispatcher>
    124   <EventDispatcher>
    125     <targets>
    126       <EventTarget target=scoreeffect_left />
    127       <EventTarget target=scoreeffect_center />
    128     </targets>
    129     <events>
    130       <spawn>
    131         <EventFilter>
    132           <names>
    133             <EventName name=left />
    134           </names>
    135           <EventListener event=pongcenter />
    136         </EventFilter>
    137       </spawn>
    138     </events>
    139   </EventDispatcher>
    140 
    141   <?lua
    142     dofile("includes/CuboidSpaceStation.lua")
    143   ?>
    144 
    145   <StaticEntity pitch=15>
    146     <attached>
    147       <MovableEntity rotationrate="-4.15786" rotationaxis="0,0,1">
    148         <attached>
    149           <StaticEntity position="-2500,0,0" yaw=90 pitch=90>
    150             <attached>
    151               <?lua
    152                 createSpaceStationPar(0,2,1,2,1,4,1,50)
    153               ?>
    154             </attached>
    155           </StaticEntity>
    156         </attached>
    157       </MovableEntity>
    158     </attached>
    159   </StaticEntity>
    160 
    161   <StaticEntity position="0,1200,-200" yaw=50 pitch=60 roll=45>
    162     <attached>
    163       <Model scale=10 mesh="Carrier.mesh" />
    164       <Model position="0,30,20" scale=10 mesh="pirate.mesh" roll="180" />
    165       <Model position="-80,-30,20" scale=10 mesh="pirate.mesh" roll="180" />
    166     </attached>
    167   </StaticEntity>
    168 
    169   <StaticEntity pitch=70>
    170     <attached>
    171       <MovableEntity rotationaxis="0,0,1" rotationrate=8.5974>
    172         <attached>
    173           <StaticEntity yaw=-90 pitch=0 roll=90 position="800,0,0">
    174             <attached>
    175               <Model position="0,0,0" scale=10 mesh="satellite.mesh" />
    176               <MovableEntity position="-4,0,20" velocity="0,0,0" rotationaxis="0,0,1" rotationrate=50>
    177                 <attached>
    178                   <Model position="0,0,0" scale=10 mesh="satellitedish.mesh"/>
    179                 </attached>
    180               </MovableEntity>
    181               <ParticleEmitter pitch=-135 roll=30 position="-14, 3.5,-2.5" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
    182               <ParticleEmitter pitch=135 roll=30 position="-14, 3.5,-9" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
    183               <ParticleEmitter pitch=-45 roll=30 position="-14,-3.5,-2.5" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
    184               <ParticleEmitter pitch=45 roll=30 position="-14,-3.5,-9" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
    185             </attached>
    186           </StaticEntity>
    187         </attached>
    188       </MovableEntity>
    189     </attached>
    190   </StaticEntity>
    191 
    192 <?lua
    193 for i = 1, 10, 1
    194 do ?>
    195   <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) ?>">
    196     <attached>
    197       <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
    198     </attached>
    199   </MovableEntity>
    200   <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) ?>">
    201     <attached>
    202       <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
    203     </attached>
    204   </MovableEntity>
    205 
    206   <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) ?>">
    207     <attached>
    208       <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
    209     </attached>
    210   </MovableEntity>
    211   <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) ?>">
    212     <attached>
    213       <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
    214     </attached>
    215   </MovableEntity>
    216 
    217   <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) ?>">
    218     <attached>
    219       <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
    220     </attached>
    221   </MovableEntity>
    222   <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) ?>">
    223     <attached>
    224       <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
    225     </attached>
    226   </MovableEntity>
    227 <?lua
    228 end
    229 ?>
     56    <?lua
     57      for i = 1, 10, 1 do
     58    ?>
     59      <SpawnPoint position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" />
     60    <?lua end ?>
     61
     62    <MovableEntity rotationrate=5 rotationaxis="0,0,1">
     63      <attached>
     64        <PongCenterpoint name=pongcenter dimension="200,120" balltemplate=pongball battemplate=pongbat ballspeed=200 ballaccfactor=1.0 batspeed=130 batlength=0.25>
     65          <attached>
     66            <Model position="0,0,60" mesh="cube.mesh" scale3D="105,1,1" />
     67            <Model position="0,0,-60" mesh="cube.mesh" scale3D="105,1,1" />
     68
     69            <ParticleSpawner name=scoreeffect_right position="120,0, 45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
     70            <ParticleSpawner name=scoreeffect_right position="120,0, 30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 />
     71            <ParticleSpawner name=scoreeffect_right position="120,0, 15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
     72            <ParticleSpawner name=scoreeffect_right position="120,0,  0" source="Orxonox/BigExplosion1part2" lifetime=0.1 autostart=0 />
     73            <ParticleSpawner name=scoreeffect_right position="120,0,-15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
     74            <ParticleSpawner name=scoreeffect_right position="120,0,-30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 />
     75            <ParticleSpawner name=scoreeffect_right position="120,0,-45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
     76
     77            <ParticleSpawner name=scoreeffect_left position="-120,0, 45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
     78            <ParticleSpawner name=scoreeffect_left position="-120,0, 30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 />
     79            <ParticleSpawner name=scoreeffect_left position="-120,0, 15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
     80            <ParticleSpawner name=scoreeffect_left position="-120,0,  0" source="Orxonox/BigExplosion1part2" lifetime=0.1 autostart=0 />
     81            <ParticleSpawner name=scoreeffect_left position="-120,0,-15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
     82            <ParticleSpawner name=scoreeffect_left position="-120,0,-30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 />
     83            <ParticleSpawner name=scoreeffect_left position="-120,0,-45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
     84
     85            <WorldSound name="scoreSound" position="0,0,0" source="sounds/pong_score.wav" >
     86              <events>
     87                <play>
     88                  <EventListener event=pongcenter />
     89                </play>
     90              </events>
     91            </WorldSound>
     92
     93            <?lua
     94              for i = 1, 15, 1 do
     95            ?>
     96              <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) ?> />
     97            <?lua end ?>
     98
     99          </attached>
     100        </PongCenterpoint>
     101      </attached>
     102    </MovableEntity>
     103
     104    <EventDispatcher>
     105      <targets>
     106        <EventTarget target=scoreeffect_right />
     107        <EventTarget target=scoreeffect_center />
     108      </targets>
     109      <events>
     110        <spawn>
     111          <EventFilter>
     112            <names>
     113              <EventName name=right />
     114            </names>
     115            <EventListener event=pongcenter />
     116          </EventFilter>
     117        </spawn>
     118      </events>
     119    </EventDispatcher>
     120    <EventDispatcher>
     121      <targets>
     122        <EventTarget target=scoreeffect_left />
     123        <EventTarget target=scoreeffect_center />
     124      </targets>
     125      <events>
     126        <spawn>
     127          <EventFilter>
     128            <names>
     129              <EventName name=left />
     130            </names>
     131            <EventListener event=pongcenter />
     132          </EventFilter>
     133        </spawn>
     134      </events>
     135    </EventDispatcher>
     136
     137    <?lua
     138      dofile("includes/CuboidSpaceStation.lua")
     139    ?>
     140
     141    <StaticEntity pitch=15>
     142      <attached>
     143        <MovableEntity rotationrate="-4.15786" rotationaxis="0,0,1">
     144          <attached>
     145            <StaticEntity position="-2500,0,0" yaw=90 pitch=90>
     146              <attached>
     147                <?lua
     148                  createSpaceStationPar(0,2,1,2,1,4,1,50)
     149                ?>
     150              </attached>
     151            </StaticEntity>
     152          </attached>
     153        </MovableEntity>
     154      </attached>
     155    </StaticEntity>
     156
     157    <StaticEntity position="0,1200,-200" yaw=50 pitch=60 roll=45>
     158      <attached>
     159        <Model scale=10 mesh="Carrier.mesh" />
     160        <Model position="0,30,20" scale=10 mesh="pirate.mesh" roll="180" />
     161        <Model position="-80,-30,20" scale=10 mesh="pirate.mesh" roll="180" />
     162      </attached>
     163    </StaticEntity>
     164
     165    <StaticEntity pitch=70>
     166      <attached>
     167        <MovableEntity rotationaxis="0,0,1" rotationrate=8.5974>
     168          <attached>
     169            <StaticEntity yaw=-90 pitch=0 roll=90 position="800,0,0">
     170              <attached>
     171                <Model position="0,0,0" scale=10 mesh="satellite.mesh" />
     172                <MovableEntity position="-4,0,20" velocity="0,0,0" rotationaxis="0,0,1" rotationrate=50>
     173                  <attached>
     174                    <Model position="0,0,0" scale=10 mesh="satellitedish.mesh"/>
     175                  </attached>
     176                </MovableEntity>
     177                <ParticleEmitter pitch=-135 roll=30 position="-14, 3.5,-2.5" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
     178                <ParticleEmitter pitch=135 roll=30 position="-14, 3.5,-9" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
     179                <ParticleEmitter pitch=-45 roll=30 position="-14,-3.5,-2.5" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
     180                <ParticleEmitter pitch=45 roll=30 position="-14,-3.5,-9" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
     181              </attached>
     182            </StaticEntity>
     183          </attached>
     184        </MovableEntity>
     185      </attached>
     186    </StaticEntity>
     187
     188    <?lua
     189      for i = 1, 10, 1 do
     190    ?>
     191      <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) ?>">
     192        <attached>
     193          <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
     194        </attached>
     195      </MovableEntity>
     196      <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) ?>">
     197        <attached>
     198          <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
     199        </attached>
     200      </MovableEntity>
     201
     202      <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) ?>">
     203        <attached>
     204          <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
     205        </attached>
     206      </MovableEntity>
     207      <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) ?>">
     208        <attached>
     209          <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
     210        </attached>
     211      </MovableEntity>
     212
     213      <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) ?>">
     214        <attached>
     215          <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
     216        </attached>
     217      </MovableEntity>
     218      <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) ?>">
     219        <attached>
     220          <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
     221        </attached>
     222      </MovableEntity>
     223    <?lua end ?>
    230224
    231225  </Scene>
  • code/branches/presentation3/data/levels/princessaeryn.oxw

    r6946 r7007  
    66
    77<?lua
    8     dofile("includes/CuboidSpaceStation.lua")
     8  dofile("includes/CuboidSpaceStation.lua")
    99?>
    1010
    1111<Level
    12  name         = "The Tale of Princess Aeryn"
     12 name     = "The Tale of Princess Aeryn"
    1313 description  = "The Tale of Princess Aeryn"
    1414>
    1515
    16     <NotificationQueue
    17      name     = "notification"
    18      position = "0.55, 0.05"
    19      font     = "VeraMono"
    20      textsize = 0.020
    21      length   = 3
    22      width    = 50
    23     />
    24 
    25     <Scene
    26         ambientlight = "0.3, 0.3, 0.3"
    27         skybox       = "Orxonox/skypanoramagen1"
    28     >
    29       <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" />
    30 
    31         <!-- Quest: -->
    32         <GlobalQuest id="b80c2c60-e62c-4637-80f8-5aa18dc93b34">
    33             <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." />
    34             <subquests>
    35                 <GlobalQuest id="43766602-7e2f-4d24-976a-3f9de1474d5b">
    36                     <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." />
    37                     <complete-effects>
    38                         <AddQuest questId="50845552-c8af-4091-947c-76bd850b224e" />
    39                     </complete-effects>
    40                 </GlobalQuest>
    41                 <GlobalQuest id="50845552-c8af-4091-947c-76bd850b224e">
    42                     <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." />
    43                     <hints>
    44                         <QuestHint id="b9b10841-b045-4797-b1d3-cfce760e1de6">
    45                             <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.''" />
    46                         </QuestHint>
    47                         <QuestHint id="1ee785f8-b71d-4b51-b080-42cec5be8e3c">
    48                             <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.'" />
    49                         </QuestHint>
    50                     </hints>
    51                     <complete-effects>
    52                         <AddQuest questId="97628524-b243-492c-b7b6-498f325b21d4" />
    53                     </complete-effects>
    54                 </GlobalQuest>
    55                 <GlobalQuest id="97628524-b243-492c-b7b6-498f325b21d4">
    56                     <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." />
    57                     <complete-effects>
    58                         <CompleteQuest questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" />
    59                     </complete-effects>
    60                 </GlobalQuest>
    61             </subquests>
     16  <NotificationQueue
     17   name   = "notification"
     18   position = "0.55, 0.05"
     19   font   = "VeraMono"
     20   textsize = 0.020
     21   length   = 3
     22   width  = 50
     23  />
     24
     25  <Scene
     26    ambientlight = "0.3, 0.3, 0.3"
     27    skybox     = "Orxonox/skypanoramagen1"
     28  >
     29    <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" />
     30
     31    <!-- Quest: -->
     32    <GlobalQuest id="b80c2c60-e62c-4637-80f8-5aa18dc93b34">
     33      <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." />
     34      <subquests>
     35        <GlobalQuest id="43766602-7e2f-4d24-976a-3f9de1474d5b">
     36          <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." />
     37          <complete-effects>
     38            <AddQuest questId="50845552-c8af-4091-947c-76bd850b224e" />
     39          </complete-effects>
    6240        </GlobalQuest>
    63 
    64         <!-- Create spaceship spawner: -->
    65         <ParticleSpawner position="0,0,100" source="Orxonox/BigExplosion1part3" lifetime=2.0 loop=0 autostart=0>
    66           <events>
    67             <spawn>
    68               <EventTrigger delay=1>
    69                 <events>
    70                   <trigger>
    71                     <SpawnPoint position="0,0,100" spawnclass=SpaceShip pawndesign=spaceshipassff />
    72                   </trigger>
    73                 </events>
    74               </EventTrigger>
    75             </spawn>
    76           </events>
    77           <attached>
    78             <QuestEffectBeacon position="0,0,0" times=1>
     41        <GlobalQuest id="50845552-c8af-4091-947c-76bd850b224e">
     42          <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." />
     43          <hints>
     44            <QuestHint id="b9b10841-b045-4797-b1d3-cfce760e1de6">
     45              <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.''" />
     46            </QuestHint>
     47            <QuestHint id="1ee785f8-b71d-4b51-b080-42cec5be8e3c">
     48              <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.'" />
     49            </QuestHint>
     50          </hints>
     51          <complete-effects>
     52            <AddQuest questId="97628524-b243-492c-b7b6-498f325b21d4" />
     53          </complete-effects>
     54        </GlobalQuest>
     55        <GlobalQuest id="97628524-b243-492c-b7b6-498f325b21d4">
     56          <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." />
     57          <complete-effects>
     58            <CompleteQuest questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" />
     59          </complete-effects>
     60        </GlobalQuest>
     61      </subquests>
     62    </GlobalQuest>
     63
     64    <!-- Create spaceship spawner: -->
     65    <ParticleSpawner position="0,0,100" source="Orxonox/BigExplosion1part3" lifetime=2.0 loop=0 autostart=0>
     66      <events>
     67      <spawn>
     68        <EventTrigger delay=1>
     69        <events>
     70          <trigger>
     71          <SpawnPoint position="0,0,100" spawnclass=SpaceShip pawndesign=spaceshipassff />
     72          </trigger>
     73        </events>
     74        </EventTrigger>
     75      </spawn>
     76      </events>
     77      <attached>
     78      <QuestEffectBeacon position="0,0,0" times=1>
     79        <effects>
     80          <AddQuest questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" />
     81          <AddQuest questId="43766602-7e2f-4d24-976a-3f9de1474d5b" />
     82        </effects>
     83        <events>
     84          <execute>
     85            <EventListener event=questbeacon1 />
     86          </execute>
     87        </events>
     88        <attached>
     89          <DistanceTrigger name=questbeacon1 position="0,0,0" distance=10 target="Pawn" />
     90        </attached>
     91      </QuestEffectBeacon>
     92      </attached>
     93    </ParticleSpawner>
     94
     95    <!-- Create world -->
     96
     97      <!-- Kidnapper flying away -->
     98      <MovableEntity position="200,0,0" velocity="-140,0,-140" yaw=45>
     99        <attached>
     100          <Model position="0,0,0" scale=4 yaw=180 pitch=-90 roll=-90 mesh="pirate.mesh" />
     101          <ParticleSpawner position="0,0,10" source="Orxonox/fire3" lifetime=2.0 loop=0 autostart=1 />
     102          <QuestEffectBeacon position="0,0,0" times=1 active=false name=trail >
     103            <effects>
     104              <CompleteQuest questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" />
     105            </effects>
     106            <events>
     107              <execute>
     108                <EventListener event=questbeacon7 />
     109              </execute>
     110            </events>
     111            <attached>
     112              <DistanceTrigger name=questbeacon7 position="0,0,0" distance=10 target="Pawn" />
     113            </attached>
     114          </QuestEffectBeacon>
     115        </attached>
     116      </MovableEntity>
     117
     118      <!-- Asteroid field -->
     119      <StaticEntity position="-500,0,-3000">
     120        <attached>
     121          <?lua
     122            for i = 1, 200 do
     123          ?>
     124            <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)) ?>">
     125              <attached>
     126                <Model scale="<?lua print(math.random() * 50) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
     127              </attached>
     128            </MovableEntity>
     129          <?lua end ?>
     130          <!-- S.H.O.E.S -->
     131          <StaticEntity position="-300,0,0">
     132            <attached>
     133              <Model position="0,0,0" scale=4 yaw=180 pitch=-90 roll=-90 mesh="assff.mesh" />
     134              <QuestEffectBeacon position="0,0,0" times=-1>
    79135                <effects>
    80                     <AddQuest questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" />
    81                     <AddQuest questId="43766602-7e2f-4d24-976a-3f9de1474d5b" />
     136                  <CompleteQuest questId="43766602-7e2f-4d24-976a-3f9de1474d5b" />
    82137                </effects>
    83138                <events>
    84                     <execute>
    85                         <EventListener event=questbeacon1 />
    86                     </execute>
     139                  <execute>
     140                    <EventListener event=questbeacon2 />
     141                  </execute>
    87142                </events>
    88143                <attached>
    89                     <DistanceTrigger name=questbeacon1 position="0,0,0" distance=10 target="Pawn" />
     144                  <DistanceTrigger name=questbeacon2 position="0,0,0" distance=50 target="Pawn" />
    90145                </attached>
    91             </QuestEffectBeacon>
    92           </attached>
    93         </ParticleSpawner>
    94 
    95         <!-- Create world -->
    96 
    97             <!-- Kidnapper flying away -->
    98             <MovableEntity position="200,0,0" velocity="-140,0,-140" yaw=45>
    99                 <attached>
    100                     <Model position="0,0,0" scale=4 yaw=180 pitch=-90 roll=-90 mesh="pirate.mesh" />
    101                     <ParticleSpawner position="0,0,10" source="Orxonox/fire3" lifetime=2.0 loop=0 autostart=1 />
    102                     <QuestEffectBeacon position="0,0,0" times=1 active=false name=trail >
    103                         <effects>
    104                             <CompleteQuest questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" />
    105                         </effects>
    106                         <events>
    107                             <execute>
    108                                 <EventListener event=questbeacon7 />
    109                             </execute>
    110                         </events>
    111                         <attached>
    112                             <DistanceTrigger name=questbeacon7 position="0,0,0" distance=10 target="Pawn" />
    113                         </attached>
    114                     </QuestEffectBeacon>
    115                 </attached>
    116             </MovableEntity>
    117 
    118             <!-- Asteroid field -->
    119             <StaticEntity position="-500,0,-3000">
    120                 <attached>
    121                     <?lua
    122                         for i = 1, 200
    123                         do ?>
    124                         <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)) ?>">
    125                             <attached>
    126                                 <Model scale="<?lua print(math.random() * 50) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
    127                             </attached>
    128                         </MovableEntity>
    129                     <?lua
    130                         end
    131                     ?>
    132                     <!-- S.H.O.E.S -->
    133                     <StaticEntity position="-300,0,0">
    134                         <attached>
    135                             <Model position="0,0,0" scale=4 yaw=180 pitch=-90 roll=-90 mesh="assff.mesh" />
    136                             <QuestEffectBeacon position="0,0,0" times=-1>
    137                                 <effects>
    138                                     <CompleteQuest questId="43766602-7e2f-4d24-976a-3f9de1474d5b" />
    139                                 </effects>
    140                                 <events>
    141                                     <execute>
    142                                         <EventListener event=questbeacon2 />
    143                                     </execute>
    144                                 </events>
    145                                 <attached>
    146                                     <DistanceTrigger name=questbeacon2 position="0,0,0" distance=50 target="Pawn" />
    147                                 </attached>
    148                             </QuestEffectBeacon>
    149                         </attached>
    150                     </StaticEntity>
    151                 </attached>
    152             </StaticEntity>
    153 
    154 
    155 
    156             <!-- Spacestations -->
    157 
    158             <!-- Serenity Station -->
    159             <StaticEntity scale=1 position="0,0,5000" yaw=30>
    160                 <attached>
    161                     <?lua
    162                         createSpaceStationPar(65461,2,1,2,1,2,1,100)
    163                     ?>
    164                     <QuestEffectBeacon position="0,450,0" times=1>
    165                         <effects>
    166                             <CompleteQuest questId="50845552-c8af-4091-947c-76bd850b224e" />
    167                         </effects>
    168                         <events>
    169                             <execute>
    170                                 <EventListener event=questbeacon3 />
    171                             </execute>
    172                         </events>
    173                         <attached>
    174                             <Billboard position="0,0,0" colour="1.0,1.0,0" material="Examples/Flare" />
    175                             <DistanceTrigger name=questbeacon3 position="0,0,0" distance=100 target="Pawn" />
    176                         </attached>
    177                     </QuestEffectBeacon>
    178                 </attached>
    179             </StaticEntity>
    180 
    181             <!-- Katratzi Station -->
    182             <StaticEntity scale=1 position="0,5000,300" yaw=60>
    183                 <attached>
    184                     <?lua
    185                         createSpaceStationPar(9851,2,1,2,1,2,1,100)
    186                     ?>
    187                     <QuestEffectBeacon position="0,450,0" times=1>
    188                         <effects>
    189                             <AddQuestHint hintId="b9b10841-b045-4797-b1d3-cfce760e1de6" />
    190                         </effects>
    191                         <events>
    192                             <execute>
    193                                 <EventListener event=questbeacon4 />
    194                             </execute>
    195                         </events>
    196                         <attached>
    197                             <Billboard position="0,0,0" colour="1.0,1.0,0" material="Examples/Flare" />
    198                             <DistanceTrigger name=questbeacon4 position="0,0,0" distance=100 target="Pawn" />
    199                         </attached>
    200                     </QuestEffectBeacon>
    201                 </attached>
    202             </StaticEntity>
    203 
    204             <!-- Pegasus Station -->
    205             <StaticEntity scale=1 position="-5000,100,1000" roll=30>
    206                 <attached>
    207                     <?lua
    208                         createSpaceStationPar(3574,2,1,2,1,2,1,100)
    209                     ?>
    210                     <QuestEffectBeacon position="200,450,0" times=1>
    211                         <effects>
    212                             <AddQuestHint hintId="1ee785f8-b71d-4b51-b080-42cec5be8e3c" />
    213                         </effects>
    214                         <events>
    215                             <execute>
    216                                 <EventListener event=questbeacon5 />
    217                             </execute>
    218                         </events>
    219                         <attached>
    220                             <Billboard position="0,0,0" colour="1.0,1.0,0" material="Examples/Flare" />
    221                             <DistanceTrigger name=questbeacon5 position="0,0,0" distance=100 target="Pawn" />
    222                         </attached>
    223                     </QuestEffectBeacon>
    224                 </attached>
    225             </StaticEntity>
    226 
    227             <!-- Trail -->
    228             <EventDispatcher>
    229                 <targets>
    230                     <EventTarget target=trail />
    231                 </targets>
    232                 <events>
    233                     <visibility>
    234                         <QuestListener questId="50845552-c8af-4091-947c-76bd850b224e" mode="complete" />
    235                     </visibility>
    236                     <activity>
    237                         <QuestListener questId="50845552-c8af-4091-947c-76bd850b224e" mode="complete" />
    238                     </activity>
    239                 </events>
    240             </EventDispatcher>
    241 
    242             <?lua
    243                 for i = 1, 25
    244                 do
    245             ?>
    246                 <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/>
    247             <?lua
    248                 end
    249             ?>
    250 
    251             <!-- Hideout -->
    252             <StaticEntity position="5000,5000,5000" >
    253                 <attached>
    254                     <Model scale="100" mesh="ast2.mesh" shadow=false />
    255                 </attached>
    256             </StaticEntity>
    257 
    258             <StaticEntity position="5400,5400,5000" visible=false name=trail >
    259                 <attached>
    260                     <Model position="0,0,0" scale=4 yaw=180 pitch=-90 roll=-90 mesh="pirate.mesh" visible=false name=trail />
    261                     <QuestEffectBeacon position="0,0,0" times=1 active=false name=trail >
    262                         <effects>
    263                             <CompleteQuest questId="97628524-b243-492c-b7b6-498f325b21d4" />
    264                         </effects>
    265                         <events>
    266                             <execute>
    267                                 <EventListener event=questbeacon6 />
    268                             </execute>
    269                         </events>
    270                         <attached>
    271                             <DistanceTrigger name=questbeacon6 position="0,0,0" distance=100 target="Pawn" />
    272                         </attached>
    273                     </QuestEffectBeacon>
    274                 </attached>
    275             </StaticEntity>
    276 
    277     </Scene>
     146              </QuestEffectBeacon>
     147            </attached>
     148          </StaticEntity>
     149        </attached>
     150      </StaticEntity>
     151
     152
     153
     154      <!-- Spacestations -->
     155
     156      <!-- Serenity Station -->
     157      <StaticEntity scale=1 position="0,0,5000" yaw=30>
     158        <attached>
     159          <?lua
     160            createSpaceStationPar(65461,2,1,2,1,2,1,100)
     161          ?>
     162          <QuestEffectBeacon position="0,450,0" times=1>
     163            <effects>
     164              <CompleteQuest questId="50845552-c8af-4091-947c-76bd850b224e" />
     165            </effects>
     166            <events>
     167              <execute>
     168                <EventListener event=questbeacon3 />
     169              </execute>
     170            </events>
     171            <attached>
     172              <Billboard position="0,0,0" colour="1.0,1.0,0" material="Examples/Flare" />
     173              <DistanceTrigger name=questbeacon3 position="0,0,0" distance=100 target="Pawn" />
     174            </attached>
     175          </QuestEffectBeacon>
     176        </attached>
     177      </StaticEntity>
     178
     179      <!-- Katratzi Station -->
     180      <StaticEntity scale=1 position="0,5000,300" yaw=60>
     181        <attached>
     182          <?lua
     183            createSpaceStationPar(9851,2,1,2,1,2,1,100)
     184          ?>
     185          <QuestEffectBeacon position="0,450,0" times=1>
     186            <effects>
     187              <AddQuestHint hintId="b9b10841-b045-4797-b1d3-cfce760e1de6" />
     188            </effects>
     189            <events>
     190              <execute>
     191                <EventListener event=questbeacon4 />
     192              </execute>
     193            </events>
     194            <attached>
     195              <Billboard position="0,0,0" colour="1.0,1.0,0" material="Examples/Flare" />
     196              <DistanceTrigger name=questbeacon4 position="0,0,0" distance=100 target="Pawn" />
     197            </attached>
     198          </QuestEffectBeacon>
     199        </attached>
     200      </StaticEntity>
     201
     202      <!-- Pegasus Station -->
     203      <StaticEntity scale=1 position="-5000,100,1000" roll=30>
     204        <attached>
     205          <?lua
     206            createSpaceStationPar(3574,2,1,2,1,2,1,100)
     207          ?>
     208          <QuestEffectBeacon position="200,450,0" times=1>
     209            <effects>
     210              <AddQuestHint hintId="1ee785f8-b71d-4b51-b080-42cec5be8e3c" />
     211            </effects>
     212            <events>
     213              <execute>
     214                <EventListener event=questbeacon5 />
     215              </execute>
     216            </events>
     217            <attached>
     218              <Billboard position="0,0,0" colour="1.0,1.0,0" material="Examples/Flare" />
     219              <DistanceTrigger name=questbeacon5 position="0,0,0" distance=100 target="Pawn" />
     220            </attached>
     221          </QuestEffectBeacon>
     222        </attached>
     223      </StaticEntity>
     224
     225      <!-- Trail -->
     226      <EventDispatcher>
     227        <targets>
     228          <EventTarget target=trail />
     229        </targets>
     230        <events>
     231          <visibility>
     232            <QuestListener questId="50845552-c8af-4091-947c-76bd850b224e" mode="complete" />
     233          </visibility>
     234          <activity>
     235            <QuestListener questId="50845552-c8af-4091-947c-76bd850b224e" mode="complete" />
     236          </activity>
     237        </events>
     238      </EventDispatcher>
     239
     240      <?lua
     241        for i = 1, 25 do
     242      ?>
     243        <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/>
     244      <?lua end ?>
     245
     246      <!-- Hideout -->
     247      <StaticEntity position="5000,5000,5000" >
     248        <attached>
     249          <Model scale="100" mesh="ast2.mesh" shadow=false />
     250        </attached>
     251      </StaticEntity>
     252
     253      <StaticEntity position="5400,5400,5000" visible=false name=trail >
     254        <attached>
     255          <Model position="0,0,0" scale=4 yaw=180 pitch=-90 roll=-90 mesh="pirate.mesh" visible=false name=trail />
     256          <QuestEffectBeacon position="0,0,0" times=1 active=false name=trail >
     257            <effects>
     258              <CompleteQuest questId="97628524-b243-492c-b7b6-498f325b21d4" />
     259            </effects>
     260            <events>
     261              <execute>
     262                <EventListener event=questbeacon6 />
     263              </execute>
     264            </events>
     265            <attached>
     266              <DistanceTrigger name=questbeacon6 position="0,0,0" distance=100 target="Pawn" />
     267            </attached>
     268          </QuestEffectBeacon>
     269        </attached>
     270      </StaticEntity>
     271
     272  </Scene>
    278273</Level>
    279 
  • code/branches/presentation3/data/levels/sound.oxw

    r6417 r7007  
    2121  <AmbientSound ambientSource="Mars.ogg" looping="true">
    2222    <events>
    23         <activity>
    24             <DistanceTrigger position="400,0,0" distance=200 target="Camera">
    25                 <attached>
    26                     <ParticleSpawner position="0,0,0" source="Orxonox/fire3" lifetime=0 loop=0 autostart=1 />
    27                 </attached>
    28             </DistanceTrigger>
    29         </activity>
     23      <activity>
     24        <DistanceTrigger position="400,0,0" distance=200 target="Camera">
     25          <attached>
     26            <ParticleSpawner position="0,0,0" source="Orxonox/fire3" lifetime=0 loop=0 autostart=1 />
     27          </attached>
     28        </DistanceTrigger>
     29      </activity>
    3030    </events>
    3131  </AmbientSound>
    3232  <AmbientSound ambientSource="Jupiter.ogg" looping="true">
    3333    <events>
    34         <activity>
    35             <DistanceTrigger position="400,150,0" distance=200 target="Camera">
    36                 <attached>
    37                     <ParticleSpawner position="0,0,0" source="Orxonox/fire3" lifetime=0 loop=0 autostart=1 />
    38                 </attached>
    39             </DistanceTrigger>
    40         </activity>
     34      <activity>
     35        <DistanceTrigger position="400,150,0" distance=200 target="Camera">
     36          <attached>
     37            <ParticleSpawner position="0,0,0" source="Orxonox/fire3" lifetime=0 loop=0 autostart=1 />
     38          </attached>
     39        </DistanceTrigger>
     40      </activity>
    4141    </events>
    4242  </AmbientSound>
     
    4545  <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" />
    4646  <SpawnPoint position="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
     47 
    4748  </Scene>
    4849</Level>
  • code/branches/presentation3/data/levels/teambasematchlevel.oxw

    r6926 r7007  
    1313 gametype     = TeamBaseMatch
    1414>
     15
    1516  <templates>
    1617    <Template link=lodtemplate_default />
     
    4546        <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "-100,0,0"/>
    4647        <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "100,0,0"/>
    47 <?lua
    48 for i = 1, 10, 1
    49 do ?>
    50         <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>
    51           <events><spawn><EventListener event="base 1" /></spawn></events>
    52         </ParticleSpawner>
    53 <?lua
    54 end
    55 ?>
     48
     49        <?lua
     50          for i = 1, 10, 1 do
     51        ?>
     52          <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>
     53            <events>
     54              <spawn>
     55                <EventListener event="base 1" />
     56              </spawn>
     57            </events>
     58          </ParticleSpawner>
     59        <?lua end ?>
     60       
    5661      </attached>
    5762      <collisionShapes>
     
    8287        <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "-100,0,0"/>
    8388        <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "100,0,0"/>
    84 <?lua
    85 for i = 1, 10, 1
    86 do ?>
    87         <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>
    88           <events><spawn><EventListener event="base 2" /></spawn></events>
    89         </ParticleSpawner>
    90 <?lua
    91 end
    92 ?>
     89
     90        <?lua
     91          for i = 1, 10, 1 do
     92        ?>
     93          <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>
     94            <events>
     95              <spawn>
     96                <EventListener event="base 2" />
     97              </spawn>
     98            </events>
     99          </ParticleSpawner>
     100        <?lua end ?>
     101       
    93102      </attached>
    94103      <collisionShapes>
     
    119128        <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "-100,0,0"/>
    120129        <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "100,0,0"/>
    121 <?lua
    122 for i = 1, 10, 1
    123 do ?>
    124         <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>
    125           <events><spawn><EventListener event="base 3" /></spawn></events>
    126         </ParticleSpawner>
    127 <?lua
    128 end
    129 ?>
     130
     131        <?lua
     132          for i = 1, 10, 1 do
     133        ?>
     134          <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>
     135            <events>
     136              <spawn>
     137                <EventListener event="base 3" />
     138              </spawn>
     139            </events>
     140          </ParticleSpawner>
     141        <?lua end ?>
     142
    130143      </attached>
    131144      <collisionShapes>
     
    155168        <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "-100,0,0"/>
    156169        <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "100,0,0"/>
    157 <?lua
    158 for i = 1, 10, 1
    159 do ?>
    160         <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>
    161           <events><spawn><EventListener event="base 4" /></spawn></events>
    162         </ParticleSpawner>
    163 <?lua
    164 end
    165 ?>
     170
     171        <?lua
     172          for i = 1, 10, 1 do
     173        ?>
     174          <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>
     175            <events>
     176              <spawn>
     177                <EventListener event="base 4" />
     178              </spawn>
     179            </events>
     180          </ParticleSpawner>
     181        <?lua end ?>
     182
    166183      </attached>
    167184      <collisionShapes>
     
    192209        <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "-100,0,0"/>
    193210        <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "100,0,0"/>
    194 <?lua
    195 for i = 1, 10, 1
    196 do ?>
    197         <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>
    198           <events><spawn><EventListener event="base 5" /></spawn></events>
    199         </ParticleSpawner>
    200 <?lua
    201 end
    202 ?>
    203       </attached>
    204       <collisionShapes>
    205         <SphereCollisionShape radius="80"            position = "-100,0,0" />
    206         <SphereCollisionShape radius="120"           position = "100,0,0" />
    207         <BoxCollisionShape    halfExtents="90,25,45" position = "-155,0,40" />
    208       </collisionShapes>
    209     </TeamBaseMatchBase>
    210 
    211 
     211
     212        <?lua
     213          for i = 1, 10, 1 do
     214        ?>
     215          <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>
     216            <events>
     217              <spawn>
     218                <EventListener event="base 5" />
     219              </spawn>
     220            </events>
     221          </ParticleSpawner>
     222        <?lua end ?>
     223
     224      </attached>
     225      <collisionShapes>
     226        <SphereCollisionShape radius="80"            position = "-100,0,0" />
     227        <SphereCollisionShape radius="120"           position = "100,0,0" />
     228        <BoxCollisionShape    halfExtents="90,25,45" position = "-155,0,40" />
     229      </collisionShapes>
     230    </TeamBaseMatchBase>
    212231
    213232    <!--Model position="0,0,0" scale=8 mesh="ast1.mesh" />
     
    217236      </collisionShapes>
    218237    </StaticEntity-->
     238
    219239  </Scene>
    220240</Level>
  • code/branches/presentation3/data/levels/teamdeathmatch.oxw

    r6926 r7007  
    3939
    4040
    41 <?lua
    42 for i = 1, 70, 1
    43 do ?>
    44   <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) ?>">
    45     <attached>
    46       <Model scale="<?lua print(math.random() * 50 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
    47     </attached>
    48   </MovableEntity>
    49   <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) ?>">
    50     <attached>
    51       <Model scale="<?lua print(math.random() * 50 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
    52     </attached>
    53   </MovableEntity>
     41    <?lua
     42      for i = 1, 70, 1 do
     43    ?>
     44      <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) ?>">
     45        <attached>
     46          <Model scale="<?lua print(math.random() * 50 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
     47        </attached>
     48      </MovableEntity>
     49      <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) ?>">
     50        <attached>
     51          <Model scale="<?lua print(math.random() * 50 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
     52        </attached>
     53      </MovableEntity>
    5454
    55   <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) ?>">
    56     <attached>
    57       <Model scale="<?lua print(math.random() * 50 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
    58     </attached>
    59   </MovableEntity>
    60   <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) ?>">
    61     <attached>
    62       <Model scale="<?lua print(math.random() * 50 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
    63     </attached>
    64   </MovableEntity>
     55      <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) ?>">
     56        <attached>
     57          <Model scale="<?lua print(math.random() * 50 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
     58        </attached>
     59      </MovableEntity>
     60      <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) ?>">
     61        <attached>
     62          <Model scale="<?lua print(math.random() * 50 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
     63        </attached>
     64      </MovableEntity>
    6565
    66   <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) ?>">
    67     <attached>
    68       <Model scale="<?lua print(math.random() * 50 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
    69     </attached>
    70   </MovableEntity>
    71   <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) ?>">
    72     <attached>
    73       <Model scale="<?lua print(math.random() * 50 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
    74     </attached>
    75   </MovableEntity>
    76 <?lua
    77 end
    78 ?>
     66      <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) ?>">
     67        <attached>
     68          <Model scale="<?lua print(math.random() * 50 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
     69        </attached>
     70      </MovableEntity>
     71      <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) ?>">
     72        <attached>
     73          <Model scale="<?lua print(math.random() * 50 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
     74        </attached>
     75      </MovableEntity>
     76    <?lua end ?>
    7977
    8078  </Scene>
  • code/branches/presentation3/data/levels/test_ghost.oxw

    r6417 r7007  
    1515   skybox       = "Orxonox/skypanoramagen1"
    1616  >
     17
    1718    <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" />
    1819
     20    <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 />
    1921
    20 <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 />
    21 
    22 
    23 <?lua
    24 max = 20
    25 for i = 1, max, 1
    26 do
    27     x = math.sin(i/max*6)*40000
    28     y = math.cos(i/max*6)*40000
    29     z = i*100
     22    <?lua
     23      max = 20
     24      for i = 1, max, 1 do
     25        x = math.sin(i/max*6)*40000
     26        y = math.cos(i/max*6)*40000
     27        z = i*100
     28        for k = 1, 25, 1 do
     29          j = math.random()
    3030    ?>
    31 <?lua
    32 for k = 1, 25, 1
    33 do
    34 j = math.random()
    35 ?>
    36 
    37     <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) ?>">
    38       <attached>
    39         <Model position="0,0,0" scale=<?lua print(j * 10) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
    40       </attached>
    41       <?lua if i == 5 then ?><collisionShapes>
    42         <SphereCollisionShape radius="<?lua print(j * 70) ?>" />
    43       </collisionShapes> <?lua end ?>
    44     </MovableEntity>
    45 <?lua
    46 end
    47 ?>
    48 <?lua end ?>
     31      <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) ?>">
     32        <attached>
     33          <Model position="0,0,0" scale=<?lua print(j * 10) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
     34        </attached>
     35        <?lua if i == 5 then ?><collisionShapes>
     36          <SphereCollisionShape radius="<?lua print(j * 70) ?>" />
     37        </collisionShapes> <?lua end ?>
     38      </MovableEntity>
     39    <?lua
     40        end
     41      end
     42    ?>
     43   
    4944    <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 />
    5045
  • code/branches/presentation3/data/levels/tutorial.oxw

    r6951 r7007  
    1414  >
    1515
    16 <Drone name="meineDrohne" primarythrust="80" auxilarythrust="10" rotationthrust="10" mass= "50" linearDamping = "0.9" angularDamping = "0.7">
    17   <attached>
    18     <Model scale="1" mesh="drone.mesh"/>
    19   </attached>
    20   <collisionShapes>
    21     <BoxCollisionShape position="0,0,0"      halfExtents="10, 10, 10" />
    22   </collisionShapes>
    23 </Drone>
     16    <Drone name="meineDrohne" primarythrust="80" auxilarythrust="10" rotationthrust="10" mass= "50" linearDamping = "0.9" angularDamping = "0.7">
     17      <attached>
     18        <Model scale="1" mesh="drone.mesh"/>
     19      </attached>
     20      <collisionShapes>
     21        <BoxCollisionShape position="0,0,0"      halfExtents="10, 10, 10" />
     22      </collisionShapes>
     23    </Drone>
    2424
    25 <Drone name="meineDrohne" primarythrust="80" auxilarythrust="10" rotationthrust="10" mass= "50" linearDamping = "0.9" angularDamping = "0.7">
    26   <attached>
    27     <Model scale="1" mesh="rocket.mesh"/>
    28   </attached>
    29   <collisionShapes>
    30     <BoxCollisionShape position="0,0,0"      halfExtents="10, 10, 10" />
    31   </collisionShapes>
    32 </Drone>
     25    <Drone name="meineDrohne" primarythrust="80" auxilarythrust="10" rotationthrust="10" mass= "50" linearDamping = "0.9" angularDamping = "0.7">
     26      <attached>
     27        <Model scale="1" mesh="rocket.mesh"/>
     28      </attached>
     29      <collisionShapes>
     30        <BoxCollisionShape position="0,0,0"      halfExtents="10, 10, 10" />
     31      </collisionShapes>
     32    </Drone>
    3333
    3434    <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" />
    3535
    36 <Model mesh="hs-w01.mesh" scale=10 position="0,0,-100" />
    37 <Model mesh="hs-w01s.mesh" scale=10 position="0,0,-100" />
     36    <Model mesh="hs-w01.mesh" scale=10 position="0,0,-100" />
     37    <Model mesh="hs-w01s.mesh" scale=10 position="0,0,-100" />
    3838
    39 <?lua
    40 for i = 1, 10, 1
    41 do ?>
    42     <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 />
    43 <?lua
    44 end
    45 ?>
     39    <?lua
     40      for i = 1, 10, 1 do
     41    ?>
     42      <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 />
     43    <?lua end ?>
    4644
    4745    <GlobalShader compositor="Bloom" visible=false>
     
    5856      </collisionShapes>
    5957    </StaticEntity>
     58
    6059<!--
    61 <?lua
    62 for i = 1, 70, 1
    63 do ?>
    64   <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) ?>">
    65     <attached>
    66       <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
    67     </attached>
    68   </MovableEntity>
    69   <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) ?>">
    70     <attached>
    71       <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
    72     </attached>
    73   </MovableEntity>
     60    <?lua
     61      for i = 1, 70, 1 do
     62    ?>
     63      <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) ?>">
     64        <attached>
     65          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
     66        </attached>
     67      </MovableEntity>
     68      <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) ?>">
     69        <attached>
     70          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
     71        </attached>
     72      </MovableEntity>
    7473
    75   <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) ?>">
    76     <attached>
    77       <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
    78     </attached>
    79   </MovableEntity>
    80   <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) ?>">
    81     <attached>
    82       <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
    83     </attached>
    84   </MovableEntity>
     74      <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) ?>">
     75        <attached>
     76          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
     77        </attached>
     78      </MovableEntity>
     79      <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) ?>">
     80        <attached>
     81          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
     82        </attached>
     83      </MovableEntity>
    8584
    86   <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) ?>">
    87     <attached>
    88       <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
    89     </attached>
    90   </MovableEntity>
    91   <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) ?>">
    92     <attached>
    93       <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
    94     </attached>
    95   </MovableEntity>
    96 <?lua
    97 end
    98 ?>
     85      <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) ?>">
     86        <attached>
     87          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
     88        </attached>
     89      </MovableEntity>
     90      <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) ?>">
     91        <attached>
     92          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
     93        </attached>
     94      </MovableEntity>
     95    <?lua end ?>
    9996-->
     97
    10098  </Scene>
    10199</Level>
  • code/branches/presentation3/data/levels/waypoints.oxw

    r5781 r7007  
    8585    </SpaceShip>
    8686
    87 <?lua
    88 for i = 1, 5, 1
    89 do ?>
    90     <SpaceShip position="1500,<?lua print(-2000 + 50*i) ?>,200" lookat="0,0,0" name=polonaise<?lua print(i+1) ?> >
    91       <templates>
    92         <Template link=spaceshipassff />
    93       </templates>
    94       <controller>
    95         <WaypointPatrolController alertnessradius=1000 team=12>
    96           <waypoints>
    97             <Attacher target=polonaise<?lua print(i) ?> deletewithparent=false />
    98           </waypoints>
    99         </WaypointPatrolController>
    100       </controller>
    101     </SpaceShip>
    102 <?lua
    103 end
    104 ?>
    105 
     87    <?lua
     88      for i = 1, 5, 1 do
     89    ?>
     90      <SpaceShip position="1500,<?lua print(-2000 + 50*i) ?>,200" lookat="0,0,0" name=polonaise<?lua print(i+1) ?> >
     91        <templates>
     92          <Template link=spaceshipassff />
     93        </templates>
     94        <controller>
     95          <WaypointPatrolController alertnessradius=1000 team=12>
     96            <waypoints>
     97              <Attacher target=polonaise<?lua print(i) ?> deletewithparent=false />
     98            </waypoints>
     99          </WaypointPatrolController>
     100        </controller>
     101      </SpaceShip>
     102    <?lua end ?>
    106103
    107104    <SpaceShip position="-1500,-2000,200" lookat="0,0,0" name=attack1>
     
    118115    </SpaceShip>
    119116
    120 <?lua
    121 for i = 1, 5, 1
    122 do ?>
    123     <SpaceShip position="-1500,<?lua print(-2000 + 50*i) ?>,200" lookat="0,0,0" name=attack<?lua print(i+1) ?> >
    124       <templates>
    125         <Template link=spaceshipassff />
    126       </templates>
    127       <controller>
    128         <WaypointPatrolController alertnessradius=1000 team=13>
    129           <waypoints>
    130             <Attacher target=attack<?lua print(i) ?> deletewithparent=false />
    131           </waypoints>
    132         </WaypointPatrolController>
    133       </controller>
    134     </SpaceShip>
    135 <?lua
    136 end
    137 ?>
     117    <?lua
     118      for i = 1, 5, 1 do
     119    ?>
     120      <SpaceShip position="-1500,<?lua print(-2000 + 50*i) ?>,200" lookat="0,0,0" name=attack<?lua print(i+1) ?> >
     121        <templates>
     122          <Template link=spaceshipassff />
     123        </templates>
     124        <controller>
     125          <WaypointPatrolController alertnessradius=1000 team=13>
     126            <waypoints>
     127              <Attacher target=attack<?lua print(i) ?> deletewithparent=false />
     128            </waypoints>
     129          </WaypointPatrolController>
     130        </controller>
     131      </SpaceShip>
     132    <?lua end ?>
    138133
    139134<!--
    140 <?lua
    141 for i = 1, 50, 1
    142 do ?>
    143     <SpaceShip position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" >
    144       <templates>
    145         <Template link=spaceshipassff />
    146       </templates>
    147       <controller>
    148         <AIController />
    149       </controller>
    150     </SpaceShip>
    151 <?lua
    152 end
    153 ?>
     135    <?lua
     136      for i = 1, 50, 1 do
     137    ?>
     138      <SpaceShip position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" >
     139        <templates>
     140          <Template link=spaceshipassff />
     141        </templates>
     142        <controller>
     143          <AIController />
     144        </controller>
     145      </SpaceShip>
     146    <?lua end ?>
    154147-->
    155148
  • code/branches/presentation3/src/modules/pickup/Pickup.cc

    r6709 r7007  
    146146    void Pickup::setActivationType(const std::string& type)
    147147    {
    148         if(type == activationTypeImmediate_s)
     148        if(Pickup::activationTypeImmediate_s.compare(type))
    149149        {
    150150            this->activationType_ = pickupActivationType::immediate;
    151151        }
    152         else if(type == activationTypeOnUse_s)
     152        else if(Pickup::activationTypeOnUse_s.compare(type))
    153153        {
    154154            this->activationType_ = pickupActivationType::onUse;
     
    168168    void Pickup::setDurationType(const std::string& type)
    169169    {
    170         if(type == durationTypeOnce_s)
     170        if(Pickup::durationTypeOnce_s.compare(type) == 0)
    171171        {
    172172            this->durationType_ = pickupDurationType::once;
    173173        }
    174         else if(type == durationTypeContinuous_s)
     174        else if(Pickup::durationTypeContinuous_s.compare(type) == 0)
    175175        {
    176176            this->durationType_ = pickupDurationType::continuous;
Note: See TracChangeset for help on using the changeset viewer.