Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10674 for code


Ignore:
Timestamp:
Oct 19, 2015, 10:07:28 PM (9 years ago)
Author:
paulsc
Message:

Added enemy WaypointPatrolController with Attacher waypoint

File:
1 edited

Legend:

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

    r10667 r10674  
    3535
    3636    <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"/>
    37    
     37
    3838    <!--QUEST DEFINITIONS-->
    3939
     
    117117
    118118    <!--EVENTS-->
    119 
    120119
    121120    <EventMultiTrigger name=spawntrigger>
    122121      <events>
    123122          <trigger>
    124               <SpawnPoint team=0 position="-50,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff2 />
     123              <SpawnPoint team=1 position="-50,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff2 />
    125124          </trigger>
    126125      </events>
     
    152151    </QuestEffectBeacon>
    153152
    154     <!--STRUCTURE -->   
     153    <!--STRUCTURE -->
    155154
    156155    <StaticEntity position="-2500,0,1800" direction="0,-1,0" collisionType=static mass=100000 friction=0.01 >
    157         <attached> 
    158             <Model position="0,0,0" mesh="cube.mesh" scale3D="10,10,10" /> 
    159         </attached> 
    160         <collisionShapes> 
    161             <BoxCollisionShape position="0,0,0" halfExtents="10,10,10" /> 
    162         </collisionShapes> 
     156        <attached>
     157            <Model position="0,0,0" mesh="cube.mesh" scale3D="10,10,10" />
     158        </attached>
     159        <collisionShapes>
     160            <BoxCollisionShape position="0,0,0" halfExtents="10,10,10" />
     161        </collisionShapes>
    163162    </StaticEntity>
    164163
    165164    <StaticEntity position="-2500,0,-1800" direction="0,-1,0" collisionType=static mass=100000 friction=0.01 >
    166         <attached> 
    167             <Model position="0,0,0" mesh="cube.mesh" scale3D="10,10,10" /> 
    168         </attached> 
    169         <collisionShapes> 
    170             <BoxCollisionShape position="0,0,0" halfExtents="10,10,10" /> 
    171         </collisionShapes> 
     165        <attached>
     166            <Model position="0,0,0" mesh="cube.mesh" scale3D="10,10,10" />
     167        </attached>
     168        <collisionShapes>
     169            <BoxCollisionShape position="0,0,0" halfExtents="10,10,10" />
     170        </collisionShapes>
    172171    </StaticEntity>
    173172
     
    177176      max = 5
    178177    for i = 1, max, 1
    179     do 
     178    do
    180179      x = math.cos(math.pi/8*(i+1))*1500
    181180      y = math.sin(math.pi/8*(i+1))*1500
    182181    ?>
    183     <SpaceShip position="<?lua print(y)?>,<?lua print(math.pow(-1,i)*250) ?>,<?lua print(x)?>" lookat="0,0,0" team=1>
     182    <SpaceShip position="<?lua print(y)?>,<?lua print(math.pow(-1,i)*250) ?>,<?lua print(x)?>" lookat="0,0,0" team=2>
    184183        <templates>
    185184            <Template link=spaceshippirate />
    186185        </templates>
    187        
     186        <controller>
     187            <WaypointPatrolController alertnessradius=600 team=1>
     188              <waypoints>
     189                <Attacher target="transporter" deletewithparent=false />
     190              </waypoints>
     191            </WaypointPatrolController>
     192        </controller>
    188193    </SpaceShip>
    189194    <?lua end ?>
    190195
    191         <SpaceShip position="-2500,0,1700" lookat="-2500,0,-1800" team=0>
     196        <SpaceShip position="-2500,0,1700" lookat="-2500,0,-1800" team=1 name="transporter">
    192197                <templates>
    193198                        <Template link=spaceshipTransporter />
     
    216221  </Scene>
    217222</Level>
    218 
Note: See TracChangeset for help on using the changeset viewer.