Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9107


Ignore:
Timestamp:
Apr 20, 2012, 4:32:47 PM (12 years ago)
Author:
laumerf
Message:

Created course

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/surfaceRace/data/levels/surfaceRace.oxw

    r9071 r9107  
    11<LevelInfo
    22 name = "Surface Race"
    3  description = "Race on a surface of a planet"
     3 description = "in progress..."
    44 tags = "Race"
    55 screenshot = "emptylevel.png"
     
    77
    88<?lua
     9  include("stats.oxo")
    910  include("HUDTemplates3.oxo")
    10   include("stats.oxo")
     11  include("templates/lodInformation.oxt")
    1112  include("templates/spaceshipRace.oxt")
    12   include("templates/lodInformation.oxt")
    13 
    14 
     13 
    1514?>
    1615
    1716
    18 
    1917<Level
    20  gametype = "OldSpaceRace"
     18gametype = SpaceRace
    2119>
    2220
     
    3634
    3735  <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"/>
    38     <!-- ------------------SpawnPoint----------------- -->
    39     <SpawnPoint team=0 position="0,5050,0" lookat="0,5070,5070" spawnclass=SpaceShip pawndesign=spaceshipRace active="true" >
    40       <events>
    41         <activity>
    42           <EventTrigger invert="true">
    43             <events>
    44                 <trigger>
    45                     <EventListener event="checkpoint2" />
    46                 </trigger>
    47             </events>
    48           </EventTrigger>
    49         </activity>
    50       </events>
    51     </SpawnPoint>
    52 
    53 <!-- ------------------CheckPoints----------------- -->
    54     <OldRaceCheckPoint name="checkpoint1" position="100,5100,0" direction="0,0,0" collisionType="static" scale="1" distance="40" checkpointindex="0" islast="false">
    55         <attached>
    56             <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
    57         </attached>
    58         <collisionShapes>
    59             <BoxCollisionShape position="0,0,55"      halfExtents="55, 10, 10" />
    60             <BoxCollisionShape position="0,0,-55"     halfExtents="55, 10, 10" />
    61             <BoxCollisionShape position="55,0,0"      halfExtents="10, 10, 55" />
    62             <BoxCollisionShape position="-55,0,0"     halfExtents="10, 10, 55" />
    63         </collisionShapes>
    64     </OldRaceCheckPoint>
    65 
    66 <OldRaceCheckPoint name="checkpoint2" position="500,5100,0" stayActive="true" collisionType="static" scale="1" distance="40" checkpointindex="1" islast="false">
    67         <attached>
    68             <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
    69             <SpawnPoint position="0,0,0" lookat="0,1000,0" spawnclass=SpaceShip pawndesign=spaceshipassff active="false" >
    70                 <events>
    71                 <activity>
    72                     <Trigger mode="xor" invert="true" >
    73                         <EventTrigger>
    74                             <events>
    75                                 <trigger>
    76                                     <EventListener event="checkpoint2" />
    77                                 </trigger>
    78                             </events>
    79                         </EventTrigger>
    80                         <EventTrigger invert="true">
    81                             <events>
    82                                 <trigger>
    83                                     <EventListener event="checkpoint3" />
    84                                 </trigger>
    85                             </events>
    86                         </EventTrigger>
    87                     </Trigger>
    88                 </activity>
    89                 </events>
    90             </SpawnPoint>
    91         </attached>
    92         <collisionShapes>
    93             <BoxCollisionShape position="0,0,55"      halfExtents="55, 10, 10" />
    94             <BoxCollisionShape position="0,0,-55"     halfExtents="55, 10, 10" />
    95             <BoxCollisionShape position="55,0,0"      halfExtents="10, 10, 55" />
    96             <BoxCollisionShape position="-55,0,0"     halfExtents="10, 10, 55" />
    97         </collisionShapes>
    98     </OldRaceCheckPoint>
    99 
    100 
    101 
     36
     37
     38
     39<SpaceRaceManager>
     40 <checkpoints> 
     41        <RaceCheckPoint name="checkpoint1" position="0,5050,-300" direction="0,1,0" collisionType="static" scale="4" distance="160" checkpointindex="0" islast="false" nextcheckpoints="1,-1,-1">
     42        <attached>
     43            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
     44
     45        <!--
     46                <Model position="27.5,0,-27.5" mesh="testcube.mesh" scale3D="10,10,10" />
     47                <Model position="55,0,0" mesh="testcube.mesh" scale3D="10,10,10" />
     48                <Model position="-27.5,0,-27.5" mesh="testcube.mesh" scale3D="10,10,10" />
     49                <Model position="-55,0,0" mesh="testcube.mesh" scale3D="10,10,10" />
     50
     51                -->
     52
     53        </attached>
     54
     55        <collisionShapes>
     56
     57        <!--
     58                <BoxCollisionShape position="0,0,55"      halfExtents="55, 10, 10" />
     59                <BoxCollisionShape position="27.5,0,-27.5"      halfExtents="55, 10, 10" />
     60                <BoxCollisionShape position="55,0,0"      halfExtents="10, 10, 55" />
     61                <BoxCollisionShape position="-27.5,0,-27.5"      halfExtents="10, 10, 55" />
     62                <BoxCollisionShape position="-55,0,0"     halfExtents="55, 10, 10" />
     63
     64                -->
     65        </collisionShapes>
     66
     67       
     68    </RaceCheckPoint>
     69
     70
     71<RaceCheckPoint name="checkpoint2" position="0,5050,-800" direction="0,1,0" collisionType="static" scale="4" distance="160" checkpointindex="1" islast="false" nextcheckpoints="2,-1,-1">
     72        <attached>
     73            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
     74        </attached>
     75        <collisionShapes>
     76            <!--
     77                <BoxCollisionShape position="0,0,55"      halfExtents="55, 10, 10" />
     78                <BoxCollisionShape position="27.5,0,-27.5"      halfExtents="55, 10, 10" />
     79                <BoxCollisionShape position="55,0,0"      halfExtents="10, 10, 55" />
     80                <BoxCollisionShape position="-27.5,0,-27.5"      halfExtents="10, 10, 55" />
     81                <BoxCollisionShape position="-55,0,0"     halfExtents="55, 10, 10" />
     82
     83                -->
     84        </collisionShapes>
     85    </RaceCheckPoint>
     86
     87<RaceCheckPoint name="checkpoint3" position="0,5050,-1300" direction="0,1,0" collisionType="static" scale="4" distance="160" checkpointindex="2" islast="false" nextcheckpoints="3,-1,-1">
     88        <attached>
     89            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
     90        </attached>
     91        <collisionShapes>
     92            <!--
     93                <BoxCollisionShape position="0,0,55"      halfExtents="55, 10, 10" />
     94                <BoxCollisionShape position="27.5,0,-27.5"      halfExtents="55, 10, 10" />
     95                <BoxCollisionShape position="55,0,0"      halfExtents="10, 10, 55" />
     96                <BoxCollisionShape position="-27.5,0,-27.5"      halfExtents="10, 10, 55" />
     97                <BoxCollisionShape position="-55,0,0"     halfExtents="55, 10, 10" />
     98
     99                -->
     100        </collisionShapes>
     101    </RaceCheckPoint>
     102
     103
     104
     105<RaceCheckPoint name="checkpoint4" position="500,5050,-1300" direction="0,0.5,0" collisionType="static" scale="4" distance="160" checkpointindex="3" islast="false" nextcheckpoints="4,-1,-1">
     106        <attached>
     107            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
     108        </attached>
     109        <collisionShapes>
     110            <!--
     111                <BoxCollisionShape position="0,0,55"      halfExtents="55, 10, 10" />
     112                <BoxCollisionShape position="27.5,0,-27.5"      halfExtents="55, 10, 10" />
     113                <BoxCollisionShape position="55,0,0"      halfExtents="10, 10, 55" />
     114                <BoxCollisionShape position="-27.5,0,-27.5"      halfExtents="10, 10, 55" />
     115                <BoxCollisionShape position="-55,0,0"     halfExtents="55, 10, 10" />
     116
     117                -->
     118        </collisionShapes>
     119    </RaceCheckPoint>
     120
     121
     122<RaceCheckPoint name="checkpoint5" position="1000,5050,-1300" direction="0,1,0" collisionType="static" scale="4" distance="160" checkpointindex="4" islast="false" nextcheckpoints="5,-1,-1">
     123        <attached>
     124            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
     125        </attached>
     126        <collisionShapes>
     127            <!--
     128                <BoxCollisionShape position="0,0,55"      halfExtents="55, 10, 10" />
     129                <BoxCollisionShape position="27.5,0,-27.5"      halfExtents="55, 10, 10" />
     130                <BoxCollisionShape position="55,0,0"      halfExtents="10, 10, 55" />
     131                <BoxCollisionShape position="-27.5,0,-27.5"      halfExtents="10, 10, 55" />
     132                <BoxCollisionShape position="-55,0,0"     halfExtents="55, 10, 10" />
     133
     134                -->
     135        </collisionShapes>
     136    </RaceCheckPoint>
     137
     138<RaceCheckPoint name="checkpoint6" position="1000,5050,-800" direction="0,1,0" collisionType="static" scale="4" distance="160" checkpointindex="5" islast="false" nextcheckpoints="6,-1,-1">
     139        <attached>
     140            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
     141        </attached>
     142        <collisionShapes>
     143            <!--
     144                <BoxCollisionShape position="0,0,55"      halfExtents="55, 10, 10" />
     145                <BoxCollisionShape position="27.5,0,-27.5"      halfExtents="55, 10, 10" />
     146                <BoxCollisionShape position="55,0,0"      halfExtents="10, 10, 55" />
     147                <BoxCollisionShape position="-27.5,0,-27.5"      halfExtents="10, 10, 55" />
     148                <BoxCollisionShape position="-55,0,0"     halfExtents="55, 10, 10" />
     149
     150                -->
     151        </collisionShapes>
     152    </RaceCheckPoint>
     153
     154<RaceCheckPoint name="checkpoint7" position="1000,5050,-500" direction="0,1,0" collisionType="static" scale="4" distance="160" checkpointindex="6" islast="false" nextcheckpoints="7,-1,-1">
     155        <attached>
     156            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
     157        </attached>
     158        <collisionShapes>
     159            <!--
     160                <BoxCollisionShape position="0,0,55"      halfExtents="55, 10, 10" />
     161                <BoxCollisionShape position="27.5,0,-27.5"      halfExtents="55, 10, 10" />
     162                <BoxCollisionShape position="55,0,0"      halfExtents="10, 10, 55" />
     163                <BoxCollisionShape position="-27.5,0,-27.5"      halfExtents="10, 10, 55" />
     164                <BoxCollisionShape position="-55,0,0"     halfExtents="55, 10, 10" />
     165
     166                -->
     167        </collisionShapes>
     168    </RaceCheckPoint>
     169
     170
     171
     172
     173<RaceCheckPoint name="checkpoint8" position="1000,5050,-200" direction="0,1,0" collisionType="static" scale="4" distance="160" checkpointindex="7" islast="true">
     174        <attached>
     175            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
     176        </attached>
     177        <collisionShapes>
     178           <!--
     179                <BoxCollisionShape position="0,0,55"      halfExtents="55, 10, 10" />
     180                <BoxCollisionShape position="27.5,0,-27.5"      halfExtents="55, 10, 10" />
     181                <BoxCollisionShape position="55,0,0"      halfExtents="10, 10, 55" />
     182                <BoxCollisionShape position="-27.5,0,-27.5"      halfExtents="10, 10, 55" />
     183                <BoxCollisionShape position="-55,0,0"     halfExtents="55, 10, 10" />
     184
     185                -->
     186        </collisionShapes>
     187    </RaceCheckPoint>
     188
     189</checkpoints>
     190</SpaceRaceManager>
     191
     192 <SpawnPoint team=0 position="0,5050,0" lookat="0,5000,-5000" spawnclass=SpaceShip pawndesign=spaceshipRace />
     193
     194 
     195        <!-- -----------------------Zylinder----------------------------
     196<StaticEntity position="0,0,0" direction="0,0,0" collisionType=static mass=100000 friction=0.01 >
     197      <attached>
     198        <Model position="0,5100,-1300" mesh="cylinder.mesh" scale3D="100,100,100" />
     199      </attached>
     200  </StaticEntity>
     201-->
     202
     203        <!-- ------------------Boden----------------- -->
    102204  <StaticEntity position="0,0,0" direction="0,0,0" collisionType=static mass=100000 friction=0.01>
    103205     <attached>
    104206        <Model position="0,0,0" mesh="testcube.mesh" scale3D="5000,5000,5000" />
    105207      </attached>
    106 
    107         <!-- ------------------Boden----------------- -->
    108208      <collisionShapes>
    109209        <BoxCollisionShape position="0,50,0" halfExtents="5000,5000,5000" />
    110210      </collisionShapes>
    111 
    112 
    113   </StaticEntity>
    114 <!-- -----------------------Zylinder---------------------------- -->
    115 <StaticEntity position="0,0,0" direction="0,0,0" collisionType=static mass=100000 friction=0.01 >
    116       <attached>
    117         <Model position="1000,5100,1000" mesh="cylinder.mesh" scale3D="1000,1000,1000" />
    118       </attached>
    119   </StaticEntity>
     211</StaticEntity>
    120212
    121213  </Scene>
Note: See TracChangeset for help on using the changeset viewer.