Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 30, 2015, 3:56:04 PM (9 years ago)
Author:
bhatiab
Message:

Added Waypoints for enemies

Location:
code/branches/campaignHS15/data/levels
Files:
2 edited

Legend:

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

    r10892 r10896  
    5050        cBeacon = {-6500, -5500, -4400}
    5151
     52        radSector = 12000
     53
    5254              cStationA = {1400, 400, -800}
    5355        cNewShip = {1000, 250, -350}
     
    6668        function printC(coord)
    6769          print(coord[1] .. [[,]] .. coord[2] .. [[,]] .. coord[3])
     70        end
     71
     72        --[[ Function to add Coordinates.]]--
     73        function addC(coord1, coord2)
     74            return {coord1[1]+coord2[1], coord1[2]+coord2[2], coord1[3]+coord2[3]}
    6875        end
    6976    ?>
     
    271278    <!--ELEMENTS -->
    272279
     280    <?lua
     281    for i = 1, 64, 1
     282    do
     283    rBillboard = {math.sin(i*math.pi/32)*radSector, 0, math.cos(i*math.pi/32)*radSector}
     284    cBillNow = addC(cSector,rBillboard)
     285    ?>
     286    <Billboard position="<?lua printC(cBillNow) ?>"  scale=10 material="Flares/lensflare" colour="1,0.2,0.2"/>
     287    <?lua end ?>
     288
    273289    <!-- Asteroids you have to fly through to get to the EnemyBase -->
    274290
     
    400416    <?lua end ?>
    401417
    402    
     418    <SpaceShip visible=true active=true name="Enemies" radarname="Attacker" position="-2700,-800,-800" lookat="0,0,0" team=1>
     419    <templates>
     420        <Template link=spaceshipescort />
     421    </templates>
     422    <controller>
     423      <WaypointController accuracy=10 team=3>
     424        <waypoints>
     425            <Model mesh="cube.mesh" scale=8 position="-2700,-800,-800" />
     426            <Model mesh="cube.mesh" scale=8 position="-3400,-1200,-200" />
     427            <Model mesh="cube.mesh" scale=8 position="-1600,-1000,-200" />
     428            <Model mesh="cube.mesh" scale=8 position="-2000,-1600,-1700" />
     429            <StaticEntity position="-2700,-800,-800" />
     430        </waypoints>
     431      </WaypointController>
     432    </controller>
     433</SpaceShip>
     434
    403435
    404436    </Scene>
  • code/branches/campaignHS15/data/levels/templates/spaceshipShuttle.oxt

    r10804 r10896  
    2424    </engines>
    2525    <attached>
    26       <Model position="0,0,0" yaw=0 pitch=0 roll=0 scale=10 mesh="Transporter.mesh" />
     26      <Model position="0,0,0" yaw=0 pitch=0 roll=0 scale=10 mesh="Spaceshiptransporter.mesh" />
    2727    </attached>
    2828    <collisionShapes>
Note: See TracChangeset for help on using the changeset viewer.