Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9821


Ignore:
Timestamp:
Nov 25, 2013, 4:05:51 PM (11 years ago)
Author:
skaan
Message:

update asteroids and finished endofgame

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/levelKaan/data/levels/Level_01.oxw

    r9807 r9821  
    5959   <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"/>       
    6060
    61    <TeamSpawnPoint team=0 position="-4000,2500,4100" direction="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipcollateraldamage/> <!--spaceshipescort-->
     61   <TeamSpawnPoint team=0 position="0,0,0" direction="-1,1,1" spawnclass=SpaceShip pawndesign=spaceshipescort/> <!--spaceshipescort-->
    6262
    6363
     
    122122    </SpaceShip>
    123123
    124     <Dock position="-4000,4000,4000" roll=90 yaw=180 >
    125         <animations>
    126             <MoveToDockingTarget target="destroyer" />
    127         </animations>
    128         <effects>
    129             <DockToShip target="spaceShip" />
    130         </effects>
    131         <events>
     124   <Dock position="-4000,4000,4000" roll=90 yaw=180 >
     125      <animations>
     126         <MoveToDockingTarget target="destroyer" />
     127      </animations>
     128      <effects>
     129         <DockToShip target="spaceShip" />
     130      </effects>
     131      <events>
    132132            <execute>
    133133                <EventListener event="dockMe" />
     
    139139        <attached>
    140140            <DistanceTrigger position="10,-202, -42" distance="800" target="Pawn"
    141                 beaconMode="exclude" targetname="bcnDestroyer" name="dockMe"
    142             />
     141                beaconMode="exclude" targetname="bcnDestroyer" name="dockMe"/>
     142           <Billboard position="10,-202,-42" material="Flares/ringflare" colour="0.7,0.4,0.1" scale=1/>
    143143        </attached>
    144144
     
    167167    </SpaceShip>
    168168
    169 
    170 
    171 <MovableEntity position="-500,500, 500">
    172     <attached>
    173         <Billboard position="0,0,0" material="Examples/Flare" colour="1, 0, 0" scale=0.5/>
    174     </attached>
    175 </MovableEntity>   
     169<BlinkingBillboard position="-3800,4800,4000" frequency=0.6 amplitude=3 material="Flares/lensflare" colour="1,1,0.05">
     170          <events>
     171            <visibility>
     172                    <EventListener event=dockMe />
     173            </visibility>
     174          </events>
     175</BlinkingBillboard>
     176
     177<BlinkingBillboard position="-500,500,500" frequency=0.6 amplitude=3 material="Flares/lensflare" colour="1,1,0.05">
     178          <events>
     179            <visibility>
     180              <EventTrigger invert=true>
     181                <events>
     182                  <trigger>
     183                    <EventListener event=flying3 />
     184                  </trigger>
     185                </events>
     186              </EventTrigger>
     187            </visibility>
     188          </events>
     189</BlinkingBillboard>
     190<Billboard position="-500,500,500" amplitude=1 material="Flares/lensflare" colour="0,0.8,0.1">
     191          <events>
     192            <visibility>
     193              <EventTrigger>
     194                <events>
     195                  <trigger>
     196                    <EventListener event=flying3 />
     197                  </trigger>
     198                </events>
     199              </EventTrigger>
     200            </visibility>
     201          </events>
     202</Billboard>
    176203
    177204  <DistanceTrigger name="flying1" position="0,0,0" target="Pawn" distance=100 stayActive="true" delay=4/>
     
    220247    </SimpleNotification>
    221248
    222 <DistanceTrigger name="flying6" position="-4000,2800,4000" target="Pawn" distance=100 stayActive="true" delay=1/>
    223     <SimpleNotification message="Enemy behind the portal!">
    224         <events>
    225             <trigger>
    226                 <EventListener event="flying6" />
    227             </trigger>
    228         </events>
    229     </SimpleNotification>
    230 
    231 <DistanceTrigger name="flying7" position="-4000,2800,4000" target="Pawn" distance=100 stayActive="true" delay=4/>
    232     <SimpleNotification message="Kill it by pressing T!">
    233         <events>
    234             <trigger>
    235                 <EventListener event="flying7" />
    236             </trigger>
    237         </events>
    238     </SimpleNotification>
    239249
    240250<!----------------------------------------------------------------------------------------------------->
     
    245255<!------------------------------------- OBJECTS IN THIS PART ------------------------------------------>
    246256
    247    <Model position="-4000,  2800, 4000" yaw="90" pitch="-90" roll="0" scale="3" mesh="satellite.mesh" />
     257   <Model position="-4000,  2800, 4000" yaw="90" pitch="-90" roll="90" scale="3" mesh="satellite.mesh" />
    248258
    249259   <Template name=PortalDefault>
     
    256266
    257267   <PortalEndPoint position="-4000,2500,4000" id="1" distance="40" target="MobileEntity" design="PortalDefault" reenterDelay="0"/>
    258    <PortalEndPoint position="0,95000,0" id="2" distance="40" target="MobileEntity" design="PortalDefault" reenterDelay="0"/>
     268   <PortalEndPoint position="0,94000,0" id="2" distance="40" target="MobileEntity" design="PortalDefault" reenterDelay="0"/>
    259269   <PortalLink fromID="1" toID="2" />
    260270   <!--<PortalLink fromID="2" toID="1" />-->
     
    265275<!-- Meteoriten, die sich bewegen -->
    266276<?lua
    267       for i = 1, 400, 1
     277      for i = 1, 450, 1
    268278      do
    269279      j = math.random()
     
    271281
    272282   <MovableEntity       
    273       position = "<?lua print(math.random()* 2000-1000) ?>,<?lua print(math.random() * 10000 + 95000) ?>,<?lua print(math.random() * 2000-1000) ?>"
     283      position = "<?lua print(math.random()* 1500-750) ?>,<?lua print(math.random() * 10000 + 95000) ?>,<?lua print(math.random() * 1500-750) ?>"
    274284      scale = "<?lua print(j * 40)?>"
    275       velocity = "0, -20, 0"
     285      velocity = "<?lua print(j*30)?>, <?lua print(j*30)?>-180, <?lua print(j*30)?>"
    276286      collisionType = dynamic
    277287      collisiondamage = 0.1
     
    301311   ?>
    302312
    303    <DistanceTrigger name="start" position="0,95000,0" target="SpaceShip" beaconMode="exclude" targetname="SpaceShipSupport" distance=20 stayActive="true" delay=0 />
     313   <DistanceTrigger name="start" position="0,94000,0" target="SpaceShip" beaconMode="exclude" targetname="bcnDestroyer" distance=20 stayActive="true" delay=0 />
    304314
    305315<DistanceTrigger name="portal2" position="-4000,4000,4000" target="Pawn" distance=50 stayActive="true" delay=3/>
    306     <SimpleNotification message="Now go to the satel">
     316    <SimpleNotification message="Now go to the portal next to the satellite">
    307317        <events>
    308318            <trigger>
     
    312322    </SimpleNotification>
    313323
    314 <DistanceTrigger name="portal3" position="0,95000,0" target="Pawn" distance=50 stayActive="true" delay=3/>
     324<DistanceTrigger name="portal3" position="0,94000,0" target="SpaceShip" distance=50 stayActive="true" delay=3/>
    315325    <SimpleNotification message="Reach the wormhole to District 69">
    316326        <events>
    317327            <trigger>
    318328                <EventListener event="portal3" />
     329            </trigger>
     330        </events>
     331    </SimpleNotification>
     332
     333   <SimpleNotification message="Take the lead of the formation">
     334        <events>
     335            <trigger>
     336                <EventListener event="endOfLevel" />
    319337            </trigger>
    320338        </events>
     
    329347
    330348   <SpaceShip
    331       position="-50+i*50, 94000, 4000"
     349      position="-50+i*50, 94200, 0"
    332350   >
    333351      <templates>
    334          <Template link=spaceshipcollateraldamage /> <!--spaceshipTransporter spaceshippirate-->
     352         <Template link=spaceshipcollateraldamage />
    335353      </templates>
    336354      <controller>
     
    367385    </Script> <!-- !!! activates formation behaviour !!! -->
    368386
     387 <Script code="formationcontroller followme">
     388        <events>
     389            <trigger>
     390                <EventListener event=start />
     391            </trigger>
     392        </events>
     393    </Script> <!-- !!! activates formation behaviour !!! -->
     394
    369395    <Script code="artificialcontroller setbotlevel 5" onLoad="false">
    370396        <events>
     
    377403   <SpaceShip
    378404        team      = 0
    379         position  = "0,100000,0"
     405        position  = "0,106000,0"
    380406        roll      = 0   yaw=90  pitch=0
    381407        mass      = 10000
     
    387413         <DistanceTriggerBeacon name="bcnDestroyer" />
    388414         <Billboard position="0,0,0" material="Portals/Default" />
     415        <DistanceTrigger name="endOfLevel" position="0,0,0" target="SpaceShip" beaconMode="exclude" targetname="bcnDestroyer" distance=50 stayActive="true" delay=0/>
    389416
    390417        <Model mesh="HydroHarvester.mesh" mass=10 position="0,0,0" scale=50 />
     
    426453    </SpaceShip>
    427454
    428    <DistanceTrigger name="endOfLevel" position="0,100000,0" target="SpaceShip" beaconMode="exclude" targetname="bcnDestroyer" distance=50 stayActive="true" delay=3/>
    429455    <SimpleNotification message="End of game">
    430456        <events>
    431457            <trigger>
    432                 <EventListener event="portal3" />
     458                <EventListener event="endOfLevel" />
    433459            </trigger>
    434460        </events>
Note: See TracChangeset for help on using the changeset viewer.