Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7099 for code/branches


Ignore:
Timestamp:
Jun 3, 2010, 1:22:09 AM (14 years ago)
Author:
decapitb
Message:

formationFlight demo added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation3/data/levels/presentationFS10.oxw

    r7096 r7099  
    88  include("templates/spaceship_assff.oxt")
    99  include("templates/spaceship_pirate.oxt")
     10  include("templates/spaceship_swallow.oxt")
    1011  include("templates/pickup_representation_templates.oxt")
    1112?>
     
    1415 name         = "Sample"
    1516 description  = "Just a few tests"
     17 gametype     = TeamDeathmatch
    1618>
    1719  <templates>
     
    3335    <Billboard position="12.5, -30, -500" material="Banners/Pickups" scale="0.5"/>
    3436    <Billboard position="500, -30, -500" material="Banners/Drone" scale="0.5"/>
     37    <EventDispatcher>
     38      <targets>
     39        <EventTarget target=pirate />
     40      </targets>
     41      <events>
     42        <activity>
     43          <DistanceTrigger position="500, -50, -500" distance=20 target="SpaceShip" stayactive=true />
     44        </activity>
     45      </events>
     46    </EventDispatcher>
    3547
    36     <PickupSpawner position="500,-50,-500" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
     48    <Billboard position="1000, -30, -500" material="Banners/Formation" scale="0.5"/>
     49    <Billboard position="1000, -50, -500" material="Examples/Flare" scale="0.5"/>
     50    <EventDispatcher>
     51      <targets>
     52        <EventTarget target=formation />
     53      </targets>
     54      <events>
     55        <activity>
     56          <DistanceTrigger position="1000, -50, -500" distance=20 target="SpaceShip" stayactive=true />
     57        </activity>
     58      </events>
     59    </EventDispatcher>
     60
     61    <SpaceShip position="500,0,-1500">
     62        <templates>
     63          <Template link=spaceshippirate />
     64        </templates>
     65        <controller>
     66          <AIController team=1 active=false name=pirate />
     67        </controller>
     68    </SpaceShip>
     69
     70
     71    <?lua
     72      for i = 1, 10, 1 do
     73        ?>
     74      <SpaceShip position="<?lua print(5000 + math.random() * 4000 - 2000) ?>,<?lua print(0 + math.random() * 2000 - 1000) ?>,<?lua print(math.random() * 2000 - 1000) ?>">
     75        <templates>
     76          <Template link=spaceshippirate />
     77        </templates>
     78        <controller>
     79          <AIController formationFlight=true passive=true team=0 name=formation active=false />
     80        </controller>
     81      </SpaceShip>
     82    <?lua end ?>
     83
     84
     85    <?lua
     86      for i = 1, 10, 1 do
     87        ?>
     88      <SpaceShip position="<?lua print(5000 + math.random() * 4000 - 2000) ?>,<?lua print(0 + math.random() * 2000 - 1000) ?>,<?lua print(math.random() * 2000 - 1000) ?>">
     89        <templates>
     90          <Template link=spaceshipassff />
     91        </templates>
     92        <controller>
     93          <AIController formationFlight=true passive=true team=1 name=formation active=false/>
     94        </controller>
     95      </SpaceShip>
     96    <?lua end ?>
     97
     98    <PickupSpawner position="500,-50,-500" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
    3799      <pickup>
    38100        <DronePickup template=dronepickup />
Note: See TracChangeset for help on using the changeset viewer.