Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 16, 2012, 6:07:37 PM (11 years ago)
Author:
jo
Message:

Merging the Racingbot branch into the presentationHS12 branch.

Location:
code/branches/presentationHS12
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentationHS12

  • code/branches/presentationHS12/data/levels/presentationHS12.oxw

    r9521 r9523  
    6060
    6161    <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"/>
    62     <SpawnPoint team=0 position="-800,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipescort />
     62    <SpawnPoint team=0 position="-900,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipescort />
    6363    <!--SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=bigship /-->
    6464    <!--SpawnPoint team=0 position="-900,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipcollateraldamage /-->
     
    6767    <SpaceRaceManager>
    6868        <checkpoints>
    69             <RaceCheckPoint name="checkpoint1" position="000,0,0" direction="0,-1,1" collisionType="static" scale="1" distance="70" checkpointindex="0" islast="false" nextcheckpoints="1,2,3">
     69            <RaceCheckPoint name="checkpoint1" position="000,0,0" direction="0,-1,1" collisionType="static" scale="1" distance="100" checkpointindex="0" islast="false" nextcheckpoints="1,2,3">
    7070                <attached>
    7171                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=90 />
     
    7373            </RaceCheckPoint>
    7474<!--- first three alternative paths --->
    75             <RaceCheckPoint name="checkpoint2" position="1300,0,-800" direction="0,-1,1" collisionType="static" scale="1" distance="70" checkpointindex="1" islast="false" nextcheckpoints="7,-1,-1">
     75            <RaceCheckPoint name="checkpoint2" position="1300,0,-800" direction="0,-1,1" collisionType="static" scale="1" distance="100" checkpointindex="1" islast="false" nextcheckpoints="7,-1,-1">
    7676                <attached>
    7777                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=90/>
     
    7979            </RaceCheckPoint>
    8080
    81             <RaceCheckPoint name="checkpoint3" position="1200,-400,0" direction="0,-1,1" collisionType="static" scale="1" distance="70" checkpointindex="2" islast="false" nextcheckpoints="5,-1,-1">
    82                 <attached>
    83                     <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=90 />
    84                 </attached>
    85             </RaceCheckPoint>
    86 
    87             <RaceCheckPoint name="checkpoint4" position="1200,100,700" direction="0,-1,1" collisionType="static" scale="1" distance="70" checkpointindex="3" islast="false" nextcheckpoints="6,-1,-1">
     81            <RaceCheckPoint name="checkpoint3" position="1200,-400,0" direction="0,-1,1" collisionType="static" scale="1" distance="100" checkpointindex="2" islast="false" nextcheckpoints="5,-1,-1">
     82                <attached>
     83                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=90 />
     84                </attached>
     85            </RaceCheckPoint>
     86
     87            <RaceCheckPoint name="checkpoint4" position="1200,100,700" direction="0,-1,1" collisionType="static" scale="1" distance="100" checkpointindex="3" islast="false" nextcheckpoints="6,-1,-1">
    8888                <attached>
    8989                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=90 />
     
    9292
    9393<!--- second three alternative paths --->
    94             <!--RaceCheckPoint name="checkpoint5" position="2000,500,-400" direction="0,-1,1" collisionType="static" scale="1" distance="70" checkpointindex="4" islast="false" nextcheckpoints="7,-1,-1">
     94            <!--RaceCheckPoint name="checkpoint5" position="2000,500,-400" direction="0,-1,1" collisionType="static" scale="1" distance="100" checkpointindex="4" islast="false" nextcheckpoints="7,-1,-1">
    9595                <attached>
    9696                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=90 />
     
    9898            </RaceCheckPoint-->
    9999
    100             <RaceCheckPoint name="checkpoint6" position="2000,0,0" direction="0,-1,1" collisionType="static" scale="1" distance="70" checkpointindex="5" islast="false" nextcheckpoints="8,9,-1">
    101                 <attached>
    102                     <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=90 />
    103                 </attached>
    104             </RaceCheckPoint>
    105 
    106             <RaceCheckPoint name="checkpoint7" position="2000,-500,400" direction="0,-1,1" collisionType="static" scale="1" distance="70" checkpointindex="6" islast="false" nextcheckpoints="10,-1,-1">
     100            <RaceCheckPoint name="checkpoint6" position="2000,0,0" direction="0,-1,1" collisionType="static" scale="1" distance="100" checkpointindex="5" islast="false" nextcheckpoints="8,9,-1">
     101                <attached>
     102                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=90 />
     103                </attached>
     104            </RaceCheckPoint>
     105
     106            <RaceCheckPoint name="checkpoint7" position="2000,-500,400" direction="0,-1,1" collisionType="static" scale="1" distance="100" checkpointindex="6" islast="false" nextcheckpoints="10,-1,-1">
    107107                <attached>
    108108                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=90 />
     
    113113<!--- third generation --->
    114114
    115             <RaceCheckPoint name="checkpoint8" position="5000,0,-3000" direction="0,-1,1" collisionType="static" scale="1" distance="70" checkpointindex="7" islast="false" nextcheckpoints="12,-1,-1">
     115            <RaceCheckPoint name="checkpoint8" position="5000,0,-3000" direction="0,-1,1" collisionType="static" scale="1" distance="100" checkpointindex="7" islast="false" nextcheckpoints="12,-1,-1">
    116116                <attached>
    117117                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=135 />
     
    119119            </RaceCheckPoint>
    120120
    121             <RaceCheckPoint name="checkpoint9" position="3500,800,0" direction="0,-1,1" collisionType="static" scale="1" distance="70" checkpointindex="8" islast="false" nextcheckpoints="11,-1,-1">
    122                 <attached>
    123                     <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=90 />
    124                 </attached>
    125             </RaceCheckPoint>
    126 
    127             <RaceCheckPoint name="checkpoint10" position="3500,-800,0" direction="0,-1,1" collisionType="static" scale="1" distance="70" checkpointindex="9" islast="false" nextcheckpoints="11,-1,-1">
    128                 <attached>
    129                     <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=90 />
    130                 </attached>
    131             </RaceCheckPoint>
    132 
    133             <RaceCheckPoint name="checkpoint11" position="3500,0,1000" direction="0,-1,1" collisionType="static" scale="1" distance="70" checkpointindex="10" islast="false" nextcheckpoints="12,-1,-1">
     121            <RaceCheckPoint name="checkpoint9" position="3500,800,0" direction="0,-1,1" collisionType="static" scale="1" distance="100" checkpointindex="8" islast="false" nextcheckpoints="11,-1,-1">
     122                <attached>
     123                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=90 />
     124                </attached>
     125            </RaceCheckPoint>
     126
     127            <RaceCheckPoint name="checkpoint10" position="3500,-800,0" direction="0,-1,1" collisionType="static" scale="1" distance="100" checkpointindex="9" islast="false" nextcheckpoints="11,-1,-1">
     128                <attached>
     129                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=90 />
     130                </attached>
     131            </RaceCheckPoint>
     132
     133            <RaceCheckPoint name="checkpoint11" position="3500,0,1000" direction="0,-1,1" collisionType="static" scale="1" distance="100" checkpointindex="10" islast="false" nextcheckpoints="12,-1,-1">
    134134                <attached>
    135135                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=90 />
     
    138138
    139139<!-- Intermediate Solo Gate -->
    140             <RaceCheckPoint name="checkpoint12" position="4500,0,-100" direction="0,-1,1" collisionType="static" scale="1" distance="70" checkpointindex="11" islast="false" nextcheckpoints="12,-1,-1">
     140            <RaceCheckPoint name="checkpoint12" position="4500,0,-100" direction="0,-1,1" collisionType="static" scale="1" distance="100" checkpointindex="11" islast="false" nextcheckpoints="12,-1,-1">
    141141                <attached>
    142142                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=90 />
     
    145145
    146146<!----  First Common Point  ---->
    147             <RaceCheckPoint name="checkpoint13" position="6000,0,2000" direction="0,-1,1" collisionType="static" scale="1" distance="70" checkpointindex="12" islast="false" nextcheckpoints="13,14,-1">
     147            <RaceCheckPoint name="checkpoint13" position="6000,0,2000" direction="0,-1,1" collisionType="static" scale="1" distance="100" checkpointindex="12" islast="false" nextcheckpoints="13,14,-1">
    148148                <attached>
    149149                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=100 pitch=45 />
     
    152152
    153153<!-- Two Paths (1) -->
    154             <RaceCheckPoint name="checkpoint14" position="7500,-1500,2500" direction="0,-1,1" collisionType="static" scale="1" distance="70" checkpointindex="13" islast="false" nextcheckpoints="15,-1,-1">
     154            <RaceCheckPoint name="checkpoint14" position="7500,-1500,2500" direction="0,-1,1" collisionType="static" scale="1" distance="100" checkpointindex="13" islast="false" nextcheckpoints="15,-1,-1">
    155155                <attached>
    156156                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=100 pitch=130 roll=1 />
    157                     <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.6,0.4,0.1" scale=3 />
    158                 </attached>
    159             </RaceCheckPoint>
    160 
    161             <RaceCheckPoint name="checkpoint15" position="7500,-1500,1500" direction="0,-1,1" collisionType="static" scale="1" distance="70" checkpointindex="14" islast="false" nextcheckpoints="16,-1,-1">
     157                </attached>
     158            </RaceCheckPoint>
     159
     160            <RaceCheckPoint name="checkpoint15" position="7500,-1500,1500" direction="0,-1,1" collisionType="static" scale="1" distance="100" checkpointindex="14" islast="false" nextcheckpoints="16,-1,-1">
    162161                <attached>
    163162                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=100 pitch=90 />
     
    166165
    167166<!-- Two Paths (2) -->
    168             <RaceCheckPoint name="checkpoint16" position="9000,-3000, 3000" direction="0,-1,1" collisionType="static" scale="1" distance="70" checkpointindex="15" islast="false" nextcheckpoints="17,-1,-1">
     167            <RaceCheckPoint name="checkpoint16" position="9000,-3000, 3000" direction="0,-1,1" collisionType="static" scale="1" distance="100" checkpointindex="15" islast="false" nextcheckpoints="17,-1,-1">
    169168                <attached>
    170169                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=100 pitch=130 roll=1 />
    171                     <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.2,0.4,0.8" scale=3 />
    172                 </attached>
    173             </RaceCheckPoint>
    174 
    175             <RaceCheckPoint name="checkpoint17" position="9000,-3000,1000" direction="0,-1,1" collisionType="static" scale="1" distance="70" checkpointindex="16" islast="false" nextcheckpoints="17,-1,-1">
     170                </attached>
     171            </RaceCheckPoint>
     172
     173            <RaceCheckPoint name="checkpoint17" position="9000,-3000,1000" direction="0,-1,1" collisionType="static" scale="1" distance="100" checkpointindex="16" islast="false" nextcheckpoints="17,-1,-1">
    176174                <attached>
    177175                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=100 pitch=110 />
     
    180178
    181179<!-- GOAL -->
    182             <RaceCheckPoint name="checkpoint18" position="12000,-4000,2000" direction="0,-1,1" collisionType="static" scale="1" distance="70" checkpointindex="17" islast="true">
     180            <RaceCheckPoint name="checkpoint18" position="12000,-4000,2000" direction="0,-1,1" collisionType="static" scale="1" distance="100" checkpointindex="17" islast="true">
    183181                <attached>
    184182                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=100 pitch=135 />
     
    187185        </checkpoints>
    188186    </SpaceRaceManager>
    189 
    190 
    191 
    192187
    193188
     
    296291      </attached>
    297292    </StaticEntity>
     293
     294   <!-- Docking -->
     295    <Dock position="2830,20,50" roll=0 yaw=0 >
     296        <animations>
     297            <MoveToDockingTarget target="destroyer" />
     298        </animations>
     299        <effects>
     300            <DockToShip target="spaceShip" />
     301        </effects>
     302        <events>
     303            <execute>
     304                <EventListener event="dockMe" />
     305            </execute>
     306            <activity>
     307                <EventListener event=notGameEnd />
     308            </activity>
     309        </events>
     310        <attached>
     311                    <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.2,0.4,0.8" scale=1 />
     312        <BlinkingBillboard position="10,0,0" material="Examples/Flare" colour="1, 0.3, 1, 0.1" amplitude=0.2 frequency=0.4 phase=0 quadratic=1 />
     313        <BlinkingBillboard position="20,0,0" material="Examples/Flare" colour="1, 0.3, 1, 0.1" amplitude=0.2 frequency=0.4 phase=0 quadratic=1 />
     314        <BlinkingBillboard position="30,0,0" material="Examples/Flare" colour="1, 0.3, 1, 0.1" amplitude=0.2 frequency=0.4 phase=0 quadratic=1 />
     315        <BlinkingBillboard position="0,10,0" material="Examples/Flare" colour="0.3, 1, 1, 0.1" amplitude=0.2 frequency=0.4 phase=0 quadratic=1 />
     316        <BlinkingBillboard position="0,20,0" material="Examples/Flare" colour="0.3, 1, 1, 0.1" amplitude=0.2 frequency=0.4 phase=0 quadratic=1 />
     317        <BlinkingBillboard position="0,30,0" material="Examples/Flare" colour="0.3, 1, 1, 0.1" amplitude=0.2 frequency=0.4 phase=0 quadratic=1 />
     318        <BlinkingBillboard position="0,0,10" material="Examples/Flare" colour="0.3, 0.3, 1, 1" amplitude=0.2 frequency=0.4 phase=0 quadratic=1 />
     319        <BlinkingBillboard position="0,0,20" material="Examples/Flare" colour="0.3, 0.3, 1, 1" amplitude=0.2 frequency=0.4 phase=0 quadratic=1 />
     320        <BlinkingBillboard position="0,0,30" material="Examples/Flare" colour="0.3, 0.3, 1, 1" amplitude=0.2 frequency=0.4 phase=0 quadratic=1 />
     321            <DistanceTrigger position="0,0,0" distance="200" target="Pawn"
     322                beaconMode="exclude" targetname="bcnDestroyer" name="dockMe"
     323            />
     324        </attached>
     325
     326    </Dock>
     327    <SpaceShip
     328        template            = "spaceshipcollateraldamage"
     329        team                = "0"
     330        position            = "2890,-40,6"
     331        orientation         = "-0.14, 0.68, 0.68, 0.223"
     332        lookat              = "0,0,0"
     333        roll                = "180"
     334        name                = "collateralDamage"
     335        radarname           = "Collateral Damage" >
     336        <!--
     337        pitch               = "90"
     338        yaw                 = "0"-->
     339      <attached>
     340        <DockingTarget name="spaceShip" />
     341        <DistanceTriggerBeacon name="bcnDestroyer" />
     342        <DockingTarget name="destroyer" />
     343      </attached>
     344    </SpaceShip>
     345
    298346    <!-- triple large belt around the planet  -->
    299347    <?lua
     
    335383    </Planet>
    336384
    337 
    338 <!-- INTERACTIVE LEVEL -->
     385<StaticEntity position="6750,-750,2000" yaw=0 pitch=0>
     386    <attached>
     387        <Model position="0,0,0" mesh="turretSocketFront.mesh" scale3D="10,10,10" />
     388        <Model position="0,0,0" mesh="turretSocketIn.mesh" scale3D="10,10,10" />
     389        <Model position="0,0,0" mesh="turretSocketTop.mesh" scale3D="10,10,10" />
     390        <Model position="0,0,0" mesh="turretSocketLeft.mesh" scale3D="10,10,10" />
     391        <Model position="0,0,0" mesh="turretSocketRight.mesh" scale3D="10,10,10" />
     392    </attached>
     393</StaticEntity>
     394<SpaceShip position="6750,-740,2000" pitch="90" yaw="0" roll="0" radarname="Automatic Turret">
     395    <templates>
     396        <Template link=spaceshipturret />
     397    </templates>
     398    <controller>
     399        <WaypointPatrolController alertnessradius=1000 team=10>
     400        </WaypointPatrolController>
     401     </controller>
     402</SpaceShip>
     403
     404
     405    <!--- Some Randomn Asteroids  --->
     406    <?lua
     407      for i = 1, 250, 1
     408      do
     409      j = math.random()
     410    ?>
     411
     412    <MovableEntity
     413      position = "<?lua print(math.random()* 15000 - 1000) ?>,<?lua print(math.random() * 12000 - 4000) ?>,<?lua print(math.random() * 12000 - 4000) ?>"
     414      collisionType = dynamic
     415      linearDamping = 0.8
     416      angularDamping = 0
     417      scale = "<?lua print(j * 150)?>"
     418      collisiondamage = 1
     419      enablecollisiondamage = true
     420    >
     421      <attached>
     422        <Model mass="<?lua print(j * 1000) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
     423      </attached>
     424      <collisionShapes>
     425        <SphereCollisionShape radius="<?lua print(j * 350) ?>" />
     426      </collisionShapes>
     427    </MovableEntity>
     428
     429    <?lua
     430      end
     431    ?>
     432
     433
     434
     435
     436
     437
     438<!-- INTERACTIVE PART -->
    339439    <DistanceTrigger name="start" position="-900,0,0"  target="Pawn" distance=100 stayActive="true" delay=0.5 />
    340440    <DistanceTrigger name="spawnBots" position="-900,0,0"  target="Pawn" distance=100 stayActive="true" delay=4.5 />
     441    <DistanceTrigger name="creditPetar" position="2000,0,0"  target="Pawn" distance=100 stayActive="true" delay=0.5 />
     442    <DistanceTrigger name="creditDario" position="4500,0,-100"  target="Pawn" distance=200 stayActive="true" delay=5 />
    341443
    342444    <SimpleNotification message="Sound Effetcs by Mike." broadcast="true">
     
    348450    </SimpleNotification>
    349451
    350     <Script code="addBots 3" onLoad="false">
     452    <SimpleNotification message="Racing Bots by Michael." broadcast="true">
    351453        <events>
    352454            <trigger>
     
    354456            </trigger>
    355457        </events>
     458    </SimpleNotification>
     459
     460    <SimpleNotification message="Planetary Destroyer by Petar." broadcast="true">
     461        <events>
     462            <trigger>
     463                <EventListener event=creditPetar />
     464            </trigger>
     465        </events>
     466    </SimpleNotification>
     467
     468    <SimpleNotification message="Collateral Damage by Raphael." broadcast="true">
     469        <events>
     470            <trigger>
     471                <EventListener event=dockMe />
     472            </trigger>
     473        </events>
     474    </SimpleNotification>
     475
     476    <SimpleNotification message="Automatic Turret by Dario." broadcast="true">
     477        <events>
     478            <trigger>
     479                <EventListener event=creditDario />
     480            </trigger>
     481        </events>
     482    </SimpleNotification>
     483
     484    <Script code="addBots 3" onLoad="false">
     485        <events>
     486            <trigger>
     487                <EventListener event=spawnBots />
     488            </trigger>
     489        </events>
    356490    </Script>
    357491
    358492
    359493<!-- SOUNDS & MUSIC -->
    360             <WorldSound name="scoreSound" position="-900,0,0" source="sounds/ReadyGo.ogg" >
     494            <WorldSound name="scoreSound" position="-920,0,0" source="sounds/ReadyGo.ogg" >
    361495              <events>
    362496                <play>
Note: See TracChangeset for help on using the changeset viewer.