Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10690


Ignore:
Timestamp:
Oct 25, 2015, 11:13:49 AM (9 years ago)
Author:
paulsc
Message:

Replaced shuttle Waypoints with Billboards and started work on stations. Note: We may need to rethink level scale.

File:
1 edited

Legend:

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

    r10689 r10690  
    2727
    2828    <?lua include("includes/notifications.oxi") ?>
     29
    2930    <NotificationQueueCEGUI
    3031        name="narrative"
     
    5960
    6061    <GlobalQuest id="quest1">
    61         <QuestDescription title="Reach the Station!" description="" failMessage="" completeMessage="" />
     62        <QuestDescription title="Reach the Station A!" description="" failMessage="" completeMessage="" />
    6263        <hints>
    6364            <QuestHint id="quest1hint1" />
     
    290291    </SimpleNotification>
    291292
    292     <SimpleNotification broadcast="true" message="yippie kai yay motherf*cker!">
     293    <SimpleNotification broadcast="true" message="yippie ki yay motherf*cker!">
    293294        <events>
    294295            <trigger>
     
    320321    <!--STRUCTURE -->
    321322
     323    <!-- (Temporary) Template for stations. Used to define common features of all Stations. -->
     324    <Template name="station">
     325        <Pawn position="2800,0,0" health=1000 mass=10000 collisionType=dynamic friction=0.01>
     326          <attached>
     327            <Model mesh="HydroHarvester.mesh" position="0,0,0" scale=50 />
     328          </attached>
     329          <collisionShapes>
     330            <BoxCollisionShape  position="-560,0,0" halfExtents="115,100,245" /><!-- Three lower boxes -->
     331            <BoxCollisionShape  position="290,0,-480" halfExtents="115,100,245" yaw=-120 />
     332            <BoxCollisionShape  position="290,0,480" halfExtents="115,100,245" yaw=-240 />
     333            <BoxCollisionShape  position="-280,0,0" halfExtents="163,50,50" /><!-- Three lower connections -->
     334            <BoxCollisionShape  position="140,0,-240" halfExtents="163,50,50" yaw=-120 />
     335            <BoxCollisionShape  position="140,0,240" halfExtents="163,50,50" yaw=-240 />
     336            <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" /><!-- Upper Tower -->
     337            <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-120 />
     338            <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-240 />
     339            <BoxCollisionShape  position="0,400,0" halfExtents="43,110,26" yaw=-30 /><!-- Middle one-->
     340            <BoxCollisionShape  position="-200,100,0" halfExtents="26,50,43" /><!--Three lower legs -->
     341            <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=-30 />
     342            <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=30 />
     343            <BoxCollisionShape  position="-100,264,0" halfExtents="26,105,43" roll=-49 /><!--Three upper legs -->
     344            <BoxCollisionShape  position="50,264,-87" halfExtents="26,105,43" roll=-49 yaw=-120 />
     345            <BoxCollisionShape  position="50,264,87" halfExtents="26,105,43" roll=-49 yaw=-240 />
     346          </collisionShapes>
     347      </Pawn>
     348    </Template>
     349
    322350    <!-- A, Coordinates are approx. (cos(29pi/16), sin(29pi/16), 0)*3000 -->
    323     <StaticEntity name="statA" position="2494,-1667,0" direction="0,-1,0" collisionType=static mass=100000 friction=0.01>
    324         <attached>
    325             <Model position="0,0,0" mesh="cube.mesh" scale3D="40,40,40" />
    326         </attached>
    327         <collisionShapes>
    328             <BoxCollisionShape position="0,0,0" halfExtents="10,10,10" />
    329         </collisionShapes>
    330     </StaticEntity>
     351    <Pawn name="statA" radarname="Station A" position="2494,-1667,0" direction="0,1,0">
     352        <templates>
     353            <Template link="station" />
     354        </templates>
     355    </Pawn>
    331356
    332357    <!-- B, Coordinates are approx. (-cos(29pi/16), sin(29pi/16), 0)*3000 -->
    333     <StaticEntity name="statB" position="-2494,-1667,0" direction="0,-1,0" collisionType=static mass=100000 friction=0.01>
    334         <attached>
    335             <Model position="0,0,0" mesh="cube.mesh" scale3D="40,40,40" />
    336         </attached>
    337         <collisionShapes>
    338             <BoxCollisionShape position="0,0,0" halfExtents="10,10,10" />
    339         </collisionShapes>
    340     </StaticEntity>
     358    <Pawn name="statB" radarname="Station B" position="-2494,-1667,0" direction="0,1,0">
     359        <templates>
     360            <Template link="station" />
     361        </templates>
     362    </Pawn>
    341363
    342364    <!-- C -->
    343     <StaticEntity name="statC" position="0,-1400,0" direction="0,-1,0" collisionType=static mass=100000 friction=0.01>
    344         <attached>
    345             <Model position="0,0,0" mesh="cube.mesh" scale3D="40,40,40" />
    346         </attached>
    347         <collisionShapes>
    348             <BoxCollisionShape position="0,0,0" halfExtents="10,10,10" />
    349         </collisionShapes>
    350     </StaticEntity>
     365    <Pawn name="statC" radarname="Station C" position="0,-1400,0" direction="0,1,0">
     366        <templates>
     367            <Template link="station" />
     368        </templates>
     369    </Pawn>
    351370
    352371    <!--ELEMENTS -->
     
    413432                    y = -math.sin(math.pi*(i+1)/8)*2613-887
    414433                    ?>
    415                     <Model mesh="sphere.mesh" scale=100 position="<?lua print(x) ?>,<?lua print(y) ?>,0" />
     434                    <Billboard position="<?lua print(x) ?>,<?lua print(y) ?>,0" amplitude=1 material="Flares/lensflare" colour="1,1,0.05"/>
    416435                    <?lua end ?>
    417436
    418437                    <!-- Return Point -->
    419                     <Model mesh="sphere.mesh" scale=100 position="-2450, -1667, 0" />
     438                    <Billboard position="-2450, -1667, 0" amplitude=1 material="Flares/lensflare" colour="1,1,0.05"/>
    420439
    421440                    <!-- B to A -->
     
    427446                    y = -math.sin(math.pi*(max+2-i)/8)*2613-887
    428447                    ?>
    429                     <Model mesh="sphere.mesh" scale=100 position="<?lua print(x) ?>,<?lua print(y) ?>,0" />
     448                    <Billboard position="<?lua print(x) ?>,<?lua print(y) ?>,0" amplitude=1 material="Flares/lensflare" colour="1,1,0.05"/>
    430449                    <?lua end ?>
    431450
    432451                    <!-- Start Point -->
    433                     <Model mesh="sphere.mesh" scale=100 position="2450,-1667,0" />
     452                    <Billboard position="2450,-1667,0" amplitude=1 material="Flares/lensflare" colour="1,1,0.05"/>
    434453                </waypoints>
    435454            </WaypointController>
Note: See TracChangeset for help on using the changeset viewer.