Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 6, 2013, 11:42:18 AM (11 years ago)
Author:
schlaem
Message:

with Timer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/levelMichael/data/levels/Spacefight.oxw

    r9872 r9873  
    33<!--
    44To Do:
     5- Bigger Way for guard 3 (sonst im Mainship)
     6- Spawnpoint 3
     7- Discuss between Player and Captain Hood
     8- Scout-way
    59- Different Colors of the light!
    610- If possible, do the spion with DistanceTriggerBeacon
    7 - More health for spacestations
     11- Place the explosion right (time an place)
     12- also place the docking-Trigger
     13- bigger explosion?
     14- collisionShape for mainship
     15- DistanceTriggerBeacon for Captain Hood
    816-->
    917
     
    6169  <?lua include("includes/pickups.oxi") ?>
    6270
    63  <Script code="showGUI NotificationLayer false true" needsGraphics="true" />
    64  <OverlayGroup name="spacefightHUD" scale = "1, 1">
    65  <CountDown
    66      position    = "0.49, 0.05"
     71<Script code="showGUI NotificationLayer false true" needsGraphics="true" />
     72<OverlayGroup name="spacefightHUD" scale = "1, 1">
     73  <CountDown
     74     position    = "0.51, 0.05"
    6775     pickpoint   = "0.0, 0.0"
    6876     font        = "ShareTechMono"
    69      textsize    = 0.06
     77     textsize    = 0.1
    7078     colour      = "1.0, 1.0, 1.0, 1.0"
    71      align       = "right"                 
     79     align       = "center"                 
    7280     counter     = "10.0"
    73      speedfactor = "2.0"
     81     speedfactor = "1.0"
    7482     active      = "false"
    7583  >
    76       <events>
    77           <activity>
    78               <EventListener event="spawntrigger2" />
    79           </activity>
    80       </events>
    81  </CountDown>
    82  </OverlayGroup>
     84    <events>
     85      <activity>
     86        <EventListener event="timer1" />
     87      </activity>
     88    </events>
     89  </CountDown>
     90</OverlayGroup>
    8391
    8492<!-- SPAWNTRIGGER -->
    85 
    86 <!-- Spawntrigger -->
    87         <!-- StartPoint --> 
     93        <!-- StartPoint -->
    8894        <SpawnPoint team=0 position="0, 0, 0" lookat="100,0,0" spawnclass=SpaceShip pawndesign=spaceshipswallow > <!-- pawndesign=spaceshipcollateraldamage -->
    8995          <events>
     
    103109
    104110        <!-- Second Spawnpoint (after first guard) -->
    105         <SpawnPoint team=0 position="13500, 2500, 10500" lookat="18000,5000,18000" spawnclass=SpaceShip pawndesign=spaceshipswallow delay=0.1><!-- pawndesign=spaceshipcollateraldamage -->
     111        <SpawnPoint team=0 position="13500, 2500, 10500" lookat="18000,5000,18000" spawnclass=SpaceShip pawndesign=spaceshipswallow > <!-- pawndesign=spaceshipcollateraldamage -->
    106112          <events>
    107113            <activity>
    108               <EventListener event="flying1" />
     114              <EventTrigger>
     115                <EventTrigger invert=true >
     116                  <events>
     117                    <trigger>
     118                      <EventListener event="reached" />
     119                    </trigger>
     120                  </events>
     121                </EventTrigger>
     122                <events>
     123                  <trigger>
     124                    <EventListener event="flying1" />
     125                  </trigger>
     126                </events>
     127              </EventTrigger>
    109128            </activity>
    110           </events> -->
     129          </events>
    111130        </SpawnPoint>
    112131       
    113         <!-- Thirth Spawnpoint (when reached Captain Hood) -->
    114         <SpawnPoint team=0 position="-4000, -18000, 19000" lookat="-12000, -22000, 25000" spawnclass=SpaceShip pawndesign=spaceshipswallow delay=0.1><!-- pawndesign=spaceshipcollateraldamage -->
     132        <!-- Thirth Spawnpoint (when reached Captain Hood) --
     133        <SpawnPoint team=0 position="-4000, -18000, 19000" lookat="-12000, -22000, 25000" spawnclass=SpaceShip pawndesign=spaceshipswallow /> <!-- pawndesign=spaceshipcollateraldamage --
    115134          <events>
    116135            <activity>
    117               <EventListener event="reached" />
     136              <EventListener event="reached" />
    118137            </activity>
    119           </events> -->
     138          </events>
    120139        </SpawnPoint>
    121140
     
    540559
    541560        <!-- Helper-Trigger for Captain Hood -->
    542         <DistanceTrigger name="reached" position="10000, 2000, 17000" target="SpaceShip" distance=1000 stayActive="true" delay=0.1 />
     561        <DistanceTrigger name="reached" position="10000, 2000, 17000" target="SpaceShip" distance=1000 stayActive="true" delay=0.1 >
     562                <EventTrigger>
     563                        <events>
     564                                <trigger>
     565                                        <EventListener event="guard2trigger4" />
     566                                </trigger>
     567                        </events>
     568                </EventTrigger>
     569        </DistanceTrigger>
     570
    543571        <SimpleNotification message="Follow Captain Hood!"  broadcast="true">
    544572                <events>
     
    600628        </SimpleNotification>
    601629
     630        <!-- End of Mainfight -->
     631        <DistanceTrigger name="victory" position="-12000, -22000, 25000" target="SpaceShip" distance=10000 stayActive="true" delay=0.1 >
     632                <EventTrigger>
     633                        <events>
     634                                <trigger>
     635                                        <EventListener event="guard3trigger4" />
     636                                </trigger>
     637                        </events>
     638                </EventTrigger>
     639        </DistanceTrigger>
     640
    602641        <!-- Rescue the commander -->
    603         <DistanceTrigger name="dock" position="-12100, -22000, 25000" target="SpaceShip" distance=100 stayActive="true" delay=0 />
     642        <BlinkingBillboard position="-11800, -22090, 24900" color="1.0, 1.0, 0.05" frequency=0.5 amplitude=5 material="Examples/Flare" >
     643          <events>
     644            <visibility>
     645              <EventTrigger>
     646                <EventTrigger invert=true>
     647                  <events>
     648                    <trigger>
     649                      <EventListener event="dock" />
     650                    </trigger>
     651                  </events>
     652                </EventTrigger>
     653                <events>
     654                  <trigger>
     655                    <EventListener event="victory" />
     656                  </trigger>
     657                </events>
     658              </EventTrigger>
     659            </visibility>
     660          </events>
     661        </BlinkingBillboard>
     662       
     663        <DistanceTrigger name="dock" position="-11800, -22090, 24900" target="SpaceShip" distance=50 stayActive="true" delay=0 />
     664        <SimpleNotification message="The Commander is on board!"  broadcast="true">
     665                <events>
     666                        <trigger>
     667                                <EventListener event="dock" />
     668                        </trigger>
     669                </events>
     670        </SimpleNotification>
     671
     672    <EventTrigger name="dockdelay1" activations="1" stayactive="true" delay=5 >
     673      <events>
     674        <trigger>
     675          <EventListener event="dock" />
     676        </trigger>
     677      </events>
     678    </EventTrigger>
     679
     680    <EventTrigger name="dockdelay2" activations="1" stayactive="true" delay=5.1 >
     681      <events>
     682        <trigger>
     683          <EventListener event="dock" />
     684        </trigger>
     685      </events>
     686    </EventTrigger>
     687
     688        <SimpleNotification message="You have 10 seconds to move away..."  broadcast="true">
     689                <events>
     690                        <trigger>
     691                                <EventListener event="dockdelay1" />
     692                        </trigger>
     693                </events>
     694        </SimpleNotification>
     695
     696        <SimpleNotification message="A bomb is placed in the mainship..."  broadcast="true">
     697                <events>
     698                        <trigger>
     699                                <EventListener event="dockdelay2" />
     700                        </trigger>
     701                </events>
     702        </SimpleNotification>
     703
     704        <!-- TIMER-EVENTS -->
     705    <EventTrigger name="timer1" activations="1" stayactive="true" delay=5 >
     706      <events>
     707        <trigger>
     708          <EventListener event="dockdelay2" />
     709        </trigger>
     710      </events>
     711    </EventTrigger>
     712
     713    <EventTrigger name="timerEnd" activations="1" stayactive="true" delay=10 >
     714      <events>
     715        <trigger>
     716          <EventListener event="timer1" />
     717        </trigger>
     718      </events>
     719    </EventTrigger>
     720
     721    <EventTrigger name="negativeTimerEnd" invert="true" delay=0 >
     722      <events>
     723        <trigger>
     724          <EventListener event="timerEnd" />
     725        </trigger>
     726      </events>
     727    </EventTrigger>
    604728
    605729<!-- ----------------------------------------------------- -->
     
    723847       
    724848<!-- ----------------------------------------------------- -->
    725 
    726849<!-- Passive Piraten: Guard 1 -->
    727 
    728850<SpaceShip position="8000,1000,0" lookat="-1,0,0" name="firstPatrol" radarname="Patrol">
    729851  <events>
     
    766888
    767889<!-- Angreiffende Piraten: Guard 1 -->
    768 
    769890<SpaceShip position="8000,-1000,1000" lookat="8000,1000,-1000" name="firstPatrol" visible="true" radarname="Patrol" >
    770891  <events>
     
    819940  <events>
    820941    <visibility>
    821       <EventListener event="guard1trigger4" /> <!-- guard1trigger4 -->
     942      <EventListener event="guard1trigger4" />
    822943    </visibility>
    823944  </events>
     
    849970  <events>
    850971    <visibility>
    851       <EventListener event="guard1trigger4" /> <!-- guard1trigger4 -->
     972      <EventListener event="guard1trigger4" />
    852973    </visibility>
    853974  </events>
     
    8791000  <events>
    8801001    <visibility>
    881       <EventListener event="guard1trigger4" /> <!-- guard1trigger4 -->
     1002      <EventListener event="guard1trigger4" />
    8821003    </visibility>
    8831004  </events>
     
    9091030  <events>
    9101031    <visibility>
    911       <EventListener event="guard1trigger4" /> <!-- guard1trigger4 -->
     1032      <EventListener event="guard1trigger4" />
    9121033    </visibility>
    9131034  </events>
     
    11611282    <WaypointPatrolController alertnessradius=2000 team=0 active=false>
    11621283      <waypoints>
    1163         <Model mesh="cube.mesh" scale=100 position="0, -1000, 18000" />
    1164         <Model mesh="cube.mesh" scale=100 position="-4000, -18000, 19000" />
    1165         <Model mesh="cube.mesh" scale=100 position="-11500, -22000, 25000" />
     1284        <Model mesh="cube.mesh" scale=0 position="0, -1000, 18000" />
     1285        <Model mesh="cube.mesh" scale=0 position="-4000, -18000, 19000" />
     1286        <Model mesh="cube.mesh" scale=0 position="-11500, -22000, 25000" />
    11661287      </waypoints>
    11671288      <events>
     
    11951316</BlinkingBillboard>
    11961317
    1197 <SimpleNotification message="Your friend, Captain Hood, is dead..."  broadcast="true">
     1318<SimpleNotification message="Your friend Captain Hood is dead..."  broadcast="true">
    11981319        <events>
    11991320                <trigger>
     
    12111332</EventTrigger>
    12121333
    1213 <SimpleNotification message="He died in a fight, like he wished it!"  broadcast="true">
     1334<SimpleNotification message="He died in a fight like he wished it!"  broadcast="true">
    12141335        <events>
    12151336                <trigger>
     
    12211342<!-- ----------------------------------------------------- -->
    12221343
    1223 <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"/>
     1344<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" />
     1345
    12241346
    12251347
     
    13181440
    13191441<!-- ------------------------- Mainship ------------------ -->
    1320         <StaticEntity position="-12000, -22000, 25000" collisionType=static yaw=112 pitch=67 >
    1321           <attached>
    1322             <?lua
    1323               createSpaceStationPar(0,2,1,2,1,4,1,50)
    1324             ?>
    1325           </attached>
    1326         </StaticEntity>
     1442    <SpaceShip
     1443        team      = 1
     1444        position  = "-12000, -22000, 25000"
     1445        mass      = 10000
     1446        health    = 100000 initialhealth=100000 maxhealth="100000"
     1447        name      = "Mainship"
     1448        radarname = "Mainship"
     1449        visible   = "true" >
     1450      <attached>
     1451        <Model scale=250 mesh="drone.mesh" position = "0,0,0" lookat="40000, 4000, 27000" />
     1452   <!-- <Model mesh="cube.mesh" mass=10 position="-560,0,0" scale3D="115,100,245"  />
     1453        <Model mesh="cube.mesh" mass=10 position="290,0,-480" scale3D="115,100,245" yaw=-120 />
     1454        <Model mesh="cube.mesh" mass=10 position="290,0,480" scale3D="115,100,245" yaw=-240 />
     1455        <Model mesh="cube.mesh" mass=10 position="-280,0,0" scale3D="163,50,50" />
     1456        <Model mesh="cube.mesh" mass=10 position="140,0,-240" scale3D="163,50,50"  yaw=-120/>
     1457        <Model mesh="cube.mesh" mass=10 position="140,0,240" scale3D="163,50,50" yaw=-240/>
     1458        <Model mesh="cube.mesh" mass=10 position="0,530,0" scale3D="172,52,298" />
     1459        <Model mesh="cube.mesh" mass=10 position="0,530,0" scale3D="172,52,298" yaw=-120/>
     1460        <Model mesh="cube.mesh" mass=10 position="0,530,0" scale3D="172,52,298" yaw=-240/>
     1461        <Model mesh="cube.mesh" mass=10 position="0,400,0" scale3D="43,110,26" yaw=-30 />
     1462        <Model mesh="cube.mesh" mass=10 position="-200,100,0" scale3D="26,50,43" />
     1463        <Model mesh="cube.mesh" mass=10 position="100,100,-173" scale3D="43,50,26" yaw=-30/>
     1464        <Model mesh="cube.mesh" mass=10 position="100,100,173" scale3D="43,50,26" yaw=30/>
     1465        <Model mesh="cube.mesh" mass=10 position="-100,264,0" scale3D="26,105,43" roll=-49/>
     1466        <Model mesh="cube.mesh" mass=10 position="50,264,-87" scale3D="26,105,43" roll=-49 yaw=-120/>
     1467        <Model mesh="cube.mesh" mass=10 position="50,264,87" scale3D="26,105,43" roll=-49 yaw=-240/>     -->
     1468      </attached>
     1469      <collisionShapes>
     1470  <!--  <BoxCollisionShape  position="-560,0,0" halfExtents="115,100,245" /><!-- Three lower boxes --
     1471        <BoxCollisionShape  position="290,0,-480" halfExtents="115,100,245" yaw=-120 />
     1472        <BoxCollisionShape  position="290,0,480" halfExtents="115,100,245" yaw=-240 />
     1473        <BoxCollisionShape  position="-280,0,0" halfExtents="163,50,50" /><!-- Three lower connections --
     1474        <BoxCollisionShape  position="140,0,-240" halfExtents="163,50,50" yaw=-120 />
     1475        <BoxCollisionShape  position="140,0,240" halfExtents="163,50,50" yaw=-240 />
     1476        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" /><!-- Upper Tower --
     1477        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-120 />
     1478        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-240 />
     1479        <BoxCollisionShape  position="0,400,0" halfExtents="43,110,26" yaw=-30 /><!-- Middle one--
     1480        <BoxCollisionShape  position="-200,100,0" halfExtents="26,50,43" /><!--Three lower legs --
     1481        <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=-30 />
     1482        <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=30 />
     1483        <BoxCollisionShape  position="-100,264,0" halfExtents="26,105,43" roll=-49 /><!--Three upper legs --
     1484        <BoxCollisionShape  position="50,264,-87" halfExtents="26,105,43" roll=-49 yaw=-120 />
     1485        <BoxCollisionShape  position="50,264,87" halfExtents="26,105,43" roll=-49 yaw=-240 /> -->
     1486      </collisionShapes>
     1487      <events>
     1488        <visibility>
     1489          <EventListener event="negativeTimerEnd" />
     1490        </visibility>
     1491      </events>
     1492    </SpaceShip>
     1493
     1494    <!-- PARTICLE EFFECT -->
     1495
     1496    <ParticleSpawner position="-12000, -22000, 25000" source="Orxonox/RingExp" autostart="false" lifetime=500 loop=0 startdelay=2.5>
     1497        <events>
     1498            <spawn>
     1499                <EventListener event="timerEnd" />
     1500            </spawn>
     1501        </events>
     1502    </ParticleSpawner>
     1503    <ParticleSpawner position="-12000, -22000, 25000" source="Orxonox/RingExp2" autostart="false" lifetime=500 loop=0 startdelay=2>
     1504        <events>
     1505            <spawn>
     1506                <EventListener event="timerEnd" />
     1507            </spawn>
     1508        </events>
     1509    </ParticleSpawner>
     1510    <ParticleSpawner position="-12000, -22000, 25000" source="Orxonox/RingExp3" autostart="false" lifetime=500 loop=0 startdelay=2>
     1511        <events>
     1512            <spawn>
     1513                <EventListener event="timerEnd" />
     1514            </spawn>
     1515        </events>
     1516    </ParticleSpawner>
    13271517
    13281518  </Scene>
Note: See TracChangeset for help on using the changeset viewer.