Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 23, 2015, 3:58:23 PM (9 years ago)
Author:
bhatiab
Message:

Worked on the Prologue

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/campaignHS15/data/levels/expeditionSector.oxw

    r10823 r10839  
    4646        cSpawn = {-50, 0, 0}
    4747
    48         cField1 = {400, 0, 2500}
    49         cField2 = {400, 0, -2500}
    50         cPlanet1 = {8000, -2000, 15000}
    51         cPlanet2 = {-20000, 4000, -1000}
     48        cStationA = {1400, 400, -800}   
     49        cNewShip = {1000, 250, -350}
     50
     51        cPlanet1 = {-9000, -8000, 14000}
     52        cPlanet2 = {12000, -1500, -10000}
     53
     54        cEnemyBasePlanet = {-20000, -5500, -8000}
     55
     56        cField1 = {-5000, -4000, -3000}
     57        cField2 = {4000, 2000, 4500}
    5258
    5359        --[[ Function to print Coordinates. Quotes not included! ]]--
     
    7278
    7379    <GlobalQuest id="quest1">
    74         <QuestDescription title="Quest 1" description="" failMessage="" completeMessage="" />
     80        <QuestDescription title="Quest 1" description="We received some extraterrestial binary radio signals from Sector 5C! We'd like yout to take the portal and fly over there to check out if life can be found there as we believed to be an inhabitated region in space." failMessage="" completeMessage="" />
    7581        <hints>
    7682        </hints>
     
    156162    </SimpleNotification>
    157163
     164    <SimpleNotification broadcast="true" message="Please check your quests!">
     165        <events>
     166            <trigger>
     167                <EventTrigger stayactive="true" delay=7 >
     168                   <events>
     169                      <trigger>
     170                         <EventListener event="spawntrigger" />
     171                      </trigger>
     172                   </events>
     173                </EventTrigger>
     174            </trigger>
     175        </events>
     176    </SimpleNotification>
     177
    158178    <!--STATIONS -->
    159179
     180    <Template name="station">
     181        <Pawn mass=10000000 collisionType=dynamic friction=0.01>
     182            <attached>
     183                <Model mesh="HydroHarvester.mesh" position="0,0,0" scale=50 />
     184                <DistanceTriggerBeacon name="NPC" />
     185            </attached>
     186            <collisionShapes>
     187                <BoxCollisionShape  position="-560,0,0" halfExtents="115,100,245" /><!-- Three lower boxes -->
     188                <BoxCollisionShape  position="290,0,-480" halfExtents="115,100,245" yaw=-120 />
     189                <BoxCollisionShape  position="290,0,480" halfExtents="115,100,245" yaw=-240 />
     190                <BoxCollisionShape  position="-280,0,0" halfExtents="163,50,50" /><!-- Three lower connections -->
     191                <BoxCollisionShape  position="140,0,-240" halfExtents="163,50,50" yaw=-120 />
     192                <BoxCollisionShape  position="140,0,240" halfExtents="163,50,50" yaw=-240 />
     193                <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" /><!-- Upper Tower -->
     194                <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-120 />
     195                <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-240 />
     196                <BoxCollisionShape  position="0,400,0" halfExtents="43,110,26" yaw=-30 /><!-- Middle one-->
     197                <BoxCollisionShape  position="-200,100,0" halfExtents="26,50,43" /><!--Three lower legs -->
     198                <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=-30 />
     199                <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=30 />
     200                <BoxCollisionShape  position="-100,264,0" halfExtents="26,105,43" roll=-49 /><!--Three upper legs -->
     201                <BoxCollisionShape  position="50,264,-87" halfExtents="26,105,43" roll=-49 yaw=-120 />
     202                <BoxCollisionShape  position="50,264,87" halfExtents="26,105,43" roll=-49 yaw=-240 />
     203            </collisionShapes>
     204        </Pawn>
     205    </Template>
     206
     207    <Pawn name="statA" team=0 radarname="Outer Base - Sector 4B" position="<?lua printC(cStationA) ?>" direction="<?lua printC(cSpawn) ?>" yaw=45 pitch=-5 roll=-25 initialhealth=10000 maxhealth=10000 >
     208        <templates>
     209            <Template link="station" />
     210        </templates>
     211        <attached>
     212            <DockingTarget name="dockTargetA" />
     213            <Dock position="0,0,0" active=true>
     214                <animations>
     215                    <MoveToDockingTarget target="dockTargetA" />
     216                </animations>
     217                <effects>
     218                    <DockToShip target="newSpaceShip" />
     219                </effects>
     220                <events>
     221                    <execute>
     222                        <EventListener event="dockA" />
     223                    </execute>
     224                </events>
     225            </Dock>
     226        </attached>
     227    </Pawn>
     228
     229    <!-- New SpaceShip as destination of dock A-->
     230    <SpaceShip
     231            template            = "spaceshipassff"
     232            team                = "0"
     233            position            = "<?lua printC(cNewShip) ?>"
     234            lookat              = "0, 0, 0"
     235            health              = "400"
     236            initialhealth       = "400"
     237            maxhealth           = "1500"
     238            shieldhealth        = "80"
     239            initialshieldhealth = "80"
     240            maxshieldhealth     = "120"
     241            shieldabsorption    = "0.8"
     242            reloadrate          = "1"
     243            reloadwaittime      = "1"
     244            name                = "newSpaceShip"
     245            radarname           = "ScoutShip" >
     246        <attached>
     247            <DockingTarget name="newSpaceShip" />
     248            <DistanceTriggerBeacon name="newSpaceShip" />
     249        </attached>
     250    </SpaceShip>
     251
    160252    <!--ELEMENTS -->
    161253
    162     <!-- Planets from the shuttle defense Level. Remove or keep at will. -->
    163 
    164     <Planet
     254    <!-- Asteroids you have to fly through to get to the EnemyBase -->
     255   
     256    <?lua
     257        dofile("includes/asteroidField.lua")
     258       asteroidField(cField1[1], cField1[2], cField1[3], 20, 30, 4500, 500, 0)
     259    ?>   
     260
     261    <!-- Other Asteroid-Fields -->
     262
     263    <?lua
     264        dofile("includes/asteroidField.lua")
     265       asteroidField(cField2[1], cField2[2], cField2[3], 20, 30, 4500, 500, 0)
     266    ?>
     267
     268    <!-- Planets -->
     269
     270   <Planet
    165271        position="<?lua printC(cPlanet1) ?>"
    166         scale="2000"
     272        scale="3000"
    167273        collisionType="dynamic"
    168274        linearDamping="0.8"
     
    178284        collisiondamage = 2
    179285        enablecollisiondamage = true
     286        visible=true
     287        active=true
     288      >
     289      <attached>
     290        <ForceField position="0,0,0" mode="sphere" diameter="6000" velocity="-500" />
     291        </attached>
     292          <collisionShapes>
     293            <SphereCollisionShape radius="3000" position="0,0,0" />
     294      </collisionShapes>
     295    </Planet>
     296
     297    <?lua
     298        dofile("includes/asteroidField.lua")
     299        asteroidBelt(cPlanet1[1], cPlanet1[2], cPlanet1[3], 30, 20, 100, 20, 40, 3400, 3700, 400, 1)
     300    ?>
     301
     302    <Planet
     303        position="<?lua printC(cPlanet2) ?>"
     304        scale="2000"
     305        collisionType="dynamic"
     306        linearDamping="0.8"
     307        angularDamping="0"
     308        mass="5000000"
     309        pitch="0"
     310        mesh="planets/ganymede.mesh"
     311        atmosphere="atmosphere1"
     312        rotationaxis="1,0,0"
     313        rotationrate="1.0"
     314        atmospheresize="80.0f"
     315        imagesize="1024.0f"
     316        collisiondamage = 2
     317        enablecollisiondamage = true
     318        visible=true
     319        active=true
    180320      >
    181321      <attached>
     
    189329    <?lua
    190330        dofile("includes/asteroidField.lua")
    191         asteroidBelt(cPlanet1[1], cPlanet1[2], cPlanet1[3], 30, 0, 30, 20, 40, 2800, 3000, 200, 1)
     331        asteroidBelt(cPlanet2[1], cPlanet2[2], cPlanet2[3], 30, 20, 100, 20, 40, 3400, 3700, 400, 1)
    192332    ?>
    193333
     334    <!-- EnemyPlanet(s) -->
     335
    194336    <Planet
    195         position="<?lua printC(cPlanet2) ?>"
    196         scale="3000"
     337        position="<?lua printC(cEnemyBasePlanet) ?>"
     338        scale="5000"
    197339        collisionType="dynamic"
    198340        linearDamping="0.8"
     
    200342        mass="5000000"
    201343        pitch="0"
    202         mesh="planets/planet3.mesh"
     344        mesh="planets/jupiter.mesh"
    203345        atmosphere="atmosphere1"
    204346        rotationaxis="1,0,0"
     
    208350        collisiondamage = 2
    209351        enablecollisiondamage = true
     352        visible=true
     353        active=true
    210354      >
    211355      <attached>
    212         <ForceField position="0,0,0" mode="sphere" diameter="6000" velocity="-500" />
     356        <ForceField position="0,0,0" mode="sphere" diameter="10000" velocity="-500" />
    213357        </attached>
    214358          <collisionShapes>
    215             <SphereCollisionShape radius="3000" position="0,0,0" />
     359            <SphereCollisionShape radius="5000" position="0,0,0" />
    216360      </collisionShapes>
    217361    </Planet>
    218362
    219     <?lua
    220         dofile("includes/asteroidField.lua")
    221         asteroidBelt(cPlanet2[1], cPlanet2[2], cPlanet2[3], 30, 20, 100, 20, 40, 3400, 3700, 400, 1)
    222     ?>
    223 
    224363    </Scene>
    225364</Level>
Note: See TracChangeset for help on using the changeset viewer.