Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 30, 2017, 4:18:35 PM (7 years ago)
Author:
lrigoni
Message:

Saving 30-10-2017

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ProtectBoss_HS17/data/levels/ProtectBoss.oxw

    r11500 r11522  
    2525  <?lua include("includes/notifications.oxi") ?>
    2626
     27  <NotificationQueueCEGUI
     28    name="narrative"
     29    targets="simpleNotification"
     30    size=3
     31    displayTime=7
     32    position="0.2, 0, 0.1, 0"
     33    fontSize="16"
     34    fontColor="0.3, 1, 0.2, 0.8"
     35    alignment="HorzCentred"
     36    displaySize="0.6, 0, 0, 0"
     37  />
     38
    2739  <Scene
    2840    ambientlight = "0.8, 0.8, 0.8"
     
    3345
    3446    <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"/>
    35     <SpawnPoint team=0 position="0,0,1" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
     47    <EventMultiTrigger name=spawntrigger>
     48      <events>
     49        <trigger>
     50          <SpawnPoint team=0 position="0,0,1" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
     51        </trigger>
     52      </events>
     53    </EventMultiTrigger>
    3654
    3755    <!-- Cargo ship / target -->
    38     <MovableEntity collisionType=kinematic linearDamping=0.8 angularDamping=0 mass="100" position="0,0,-2500" rotationaxis="0,0,1" rotationrate="4.5" velocity="0,0,30" radarname="target">
     56    <!--MovableEntity collisionType=kinematic linearDamping=0.8 angularDamping=0 mass="100" position="0,0,-2500" rotationaxis="0,0,1" rotationrate="4.5" velocity="0,0,30" radarname="Target">
    3957    <attached>
    4058        <Model scale="<?lua print(math.random(20,70)) ?>" mesh="Transporterspaceship.mesh" shadow=false/>
    4159    </attached>
    42     </MovableEntity>
     60    </MovableEntity-->
     61
     62    <SpaceShip
     63        team      = 0
     64        position  = "0,0,-2500"
     65        mass      = 10000
     66        health    = 100000 initialhealth=100000 maxhealth="100000"
     67        rotationaxis="0,0,1" rotationrate="4.5" velocity="0,0,30"
     68        name      = "target"
     69        radarname = "Target" >
     70      <attached>
     71        <Model mesh="Transporterspaceship.mesh" mass=10000 position="0,0,0" scale=50 />
     72      </attached>
     73      <collisionShapes>
     74        <BoxCollisionShape  position="-560,0,0" halfExtents="115,100,245" /><!-- Three lower boxes -->
     75        <BoxCollisionShape  position="290,0,-480" halfExtents="115,100,245" yaw=-120 />
     76        <BoxCollisionShape  position="290,0,480" halfExtents="115,100,245" yaw=-240 />
     77        <BoxCollisionShape  position="-280,0,0" halfExtents="163,50,50" /><!-- Three lower connections -->
     78        <BoxCollisionShape  position="140,0,-240" halfExtents="163,50,50" yaw=-120 />
     79        <BoxCollisionShape  position="140,0,240" halfExtents="163,50,50" yaw=-240 />
     80        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" /><!-- Upper Tower -->
     81        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-120 />
     82        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-240 />
     83        <BoxCollisionShape  position="0,400,0" halfExtents="43,110,26" yaw=-30 /><!-- Middle one-->
     84        <BoxCollisionShape  position="-200,100,0" halfExtents="26,50,43" /><!--Three lower legs -->
     85        <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=-30 />
     86        <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=30 />
     87        <BoxCollisionShape  position="-100,264,0" halfExtents="26,105,43" roll=-49 /><!--Three upper legs -->
     88        <BoxCollisionShape  position="50,264,-87" halfExtents="26,105,43" roll=-49 yaw=-120 />
     89        <BoxCollisionShape  position="50,264,87" halfExtents="26,105,43" roll=-49 yaw=-240 />
     90      </collisionShapes>
     91    </SpaceShip>
     92
     93    <!-- create asteroids -->
     94    <?lua
     95      for count = 1, 100, 1 do
     96        x = math.random(-1000, 1000)
     97        y = math.random(-1000, 1000)
     98        z = 125 * count + math.random(-250, 250)
     99        print("<Pawn health=30 position=\"" .. x .. "," .. y .. "," .. z .. "\" direction=\"0,0,-1\" collisionType=dynamic mass=100 name=asteroid radarname=Asteroid> <!--events> <visibility> <EventListener event=flying4 /> </visibility> </events--> <attached> <Model position=\"0,0,0\" mesh=\"ast" .. math.random(6) .. ".mesh\" scale3D=\"10,10,10\" /> </attached> <collisionShapes> <SphereCollisionShape position=\"0,0,0\" radius=4 /> </collisionShapes> <!--controller> <WaypointController team=1> </WaypointController> </controller--> <explosion> <ExplosionPart minspeed=0 maxspeed=0 effect1=\"orxonox/explosion_flash2\" effect2=\"orxonox/explosion_flame2\" /> <ExplosionPart minspeed=0 maxspeed=0 effect1=\"orxonox/explosion_shockwave2\" effect2=\"orxonox/explosion_sparks2\" /> <ExplosionPart minspeed=0 maxspeed=0 effect1=\"orxonox/explosion_streak2\" effect2=\"orxonox/explosion_afterglow\" /> </explosion> </Pawn>")
     100      end
     101    ?>
     102
     103    <QuestEffectBeacon times=1>
     104      <effects>
     105        <AddQuest questId="ProtectBoss.AsteroidField" />
     106      </effects>
     107      <events>
     108          <execute>
     109          <EventListener event=spawntrigger />
     110        </execute>
     111      </events>
     112    </QuestEffectBeacon>
     113
     114    <SimpleNotification message="Protect the cargo ship! (Info: F3)" broadcast="true">
     115        <events>
     116            <trigger>
     117                <EventListener event=spawntrigger />
     118            </trigger>
     119        </events>
     120    </SimpleNotification>
     121
     122    <LocalQuest id="ProtectBoss.AsteroidField">
     123        <QuestDescription title="Asteroid Field" description="The cargo ship in front of you is disabled and is drifting uncontrolled! Shoot the asteroids out of the way to protect it!" failmessage="The cargo ship has been hit!" completeMessage="" />
     124        <!--complete-effects>
     125            <AddQuest questId="missionOne.navigation" />
     126        </complete-effects-->
     127    </LocalQuest>
    43128   
    44129  </Scene>
Note: See TracChangeset for help on using the changeset viewer.