Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10748


Ignore:
Timestamp:
Nov 2, 2015, 2:10:11 PM (8 years ago)
Author:
paulsc
Message:

Added Allies.

File:
1 edited

Legend:

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

    r10743 r10748  
    4545        waves = 3
    4646        enemies = 5
     47        allies = 5
    4748    ?>
    4849
     
    188189
    189190    <!-- TODO: fictive unit; to be added later -->
    190     <DistanceTrigger name="joinedUnit" position="3500,-1500,0" distance=100 target="SpaceShip" beaconMode="exclude" targetname="NPC" stayactive=true />
    191     <Billboard position="3500,-1500,0" amplitude=1 material="Flares/lensflare" colour="1,0,0.05" />     <!-- For debugging puropses -->
     191    <DistanceTrigger name="joinedUnit" position="3000,-2000,0" distance=100 target="SpaceShip" beaconMode="exclude" targetname="NPC" stayactive=true />
     192    <Billboard position="3000,-1000,0" amplitude=1 material="Flares/lensflare" colour="1,0,0.05" />     <!-- For debugging puropses -->
    192193
    193194    <EventMultiTrigger name="wave1" activations="1" stayactive="true" delay=4>
     
    555556
    556557    <!-- FPS Player as destination of dock C-->
    557     <FpsPlayer team=0 template = "fps" radarname = "First Person Player" position = "0,-2300,1201">
     558    <FpsPlayer team=0 template = "fps" rotationaxis="0,0,1" radarname = "First Person Player" position = "0,-2300,1201">
    558559        <attached>
    559560            <DockingTarget name="fpsMode" />
     
    610611    ?>
    611612
     613    <!-- Allies, 3000,-2000 -->
     614    <?lua
     615    for i = 1, allies, 1
     616    do
     617    x = 3000 + math.cos(2*math.pi/5*(i+1))*100
     618    y = -2000 + math.sin(2*math.pi/5*(i+1))*100
     619    ?>
     620    <SpaceShip visible=false active=false name="allies<?lua print(k)?>" radarname="Ally" position="<?lua print(x)?>,<?lua print(y)?>,<?lua print(math.pow(-1,i)*100) ?>" lookat="0,0,0" team=0>
     621        <templates>
     622            <Template link="spaceshipassff2" />
     623        </templates>
     624        <events>
     625            <visibility>
     626                <EventListener event="dockedA" />
     627            </visibility>
     628            <activity>
     629                <EventListener event="dockedA" />
     630            </activity>
     631        </events>
     632        <attached>
     633            <DistanceTriggerBeacon name="NPC" />
     634        </attached>
     635        <controller>
     636            <WaypointPatrolController accuracy=1000 name="allyController" alertnessradius=500 team=0 active=false>
     637                <waypoints>
     638                    <StaticEntity position="0,0,0" />
     639                </waypoints>
     640                <events>
     641                    <activity>
     642                        <EventListener event="joinedUnit" />
     643                    </activity>
     644                </events>
     645            </WaypointPatrolController>
     646        </controller>
     647    </SpaceShip>
     648    <?lua end ?>
     649
    612650    <!-- Enemies. Outer loop defines waves, inner loop defines enemies in every wave. -->
    613651    <?lua
     
    621659    y = math.sin(math.pi/8*(i+1))*1500
    622660    ?>
    623     <SpaceShip visible=false active=flase name="attackers<?lua print(k)?>" radarname="Attacker" position="<?lua print(x)?>,<?lua print(y)?>,<?lua print(math.pow(-1,i)*250) ?>" lookat="0,0,0" team=1>
     661    <SpaceShip visible=false active=false name="attackers<?lua print(k)?>" radarname="Attacker" position="<?lua print(x)?>,<?lua print(y)?>,<?lua print(math.pow(-1,i)*250) ?>" lookat="0,0,0" team=1>
    624662        <templates>
    625663            <Template link="spaceshippirate" />
     
    637675        </attached>
    638676        <controller>
    639             <WaypointPatrolController name="attackController" alertnessradius=50 team=1 active=false>
     677            <WaypointPatrolController name="attackController" accuracy=100 alertnessradius=200 team=1 active=false>
    640678                <waypoints>
    641679                    <Attacher target="transporter" deletewithparent=false />
     
    652690    <?lua end ?>
    653691
    654     <Formation>
    655 
    656     </Formation>
    657692
    658693    <!-- Transporter, starting Point is near A, end Point near B, the circle parameters for the waypoints are: Center = (0, -887, 0), r = 2613 -->
Note: See TracChangeset for help on using the changeset viewer.