Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9582


Ignore:
Timestamp:
Mar 26, 2013, 3:27:31 PM (11 years ago)
Author:
maxima
Message:

removed stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/formationupdate/data/levels/maxim.oxw

    r9581 r9582  
    99  include("stats.oxo")
    1010  include("HUDTemplates3.oxo")
     11  include("templates/lodInformation.oxt")
    1112?>
    1213
    1314<?lua
    14   include("templates/lodInformation.oxt")
    1515  include("templates/spaceshipAssff.oxt")
    1616  include("templates/spaceshipPirate.oxt")
    1717  include("templates/spaceshipSwallow.oxt")
    18   include("templates/pickupRepresentationTemplates.oxt")
     18  include("templates/spaceshipTransporter.oxt")
    1919?>
    2020
    2121<Level
    22  gametype = "TeamDeathmatch"
    23 >
     22 gametype = "Mission"
     23>                 
    2424  <templates>
    2525    <Template link=lodtemplate_default />
     
    2727  <?lua include("includes/notifications.oxi") ?>
    2828
     29  <NotificationQueueCEGUI
     30    name="narrative"
     31    targets="simpleNotification"
     32    size=3
     33    displayTime=3.9
     34    position="0.2, 0, 0.1, 0"
     35    fontSize="23"
     36    fontColor="0.3, 1, 0.2, 0.8"
     37    alignment="HorzCentred"
     38    displaySize="0.6, 0, 0, 0"
     39    />
     40
    2941  <Scene
    3042    ambientlight = "0.8, 0.8, 0.8"
    31     skybox       = "Orxonox/Starbox"
     43    skybox       = "Orxonox/skyBoxMoreNebula"
    3244  >
     45
     46  <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"/>
     47
     48  <TeamSpawnPoint team=0 position="800,700,600" direction="-1,0,0" spawnclass=SpaceShip pawndesign=spaceshipswallow/>
     49
     50  <!-- TRIGGERS -->
     51    <DistanceTrigger name="FormationInit" position="800,700,600"  target="Pawn" distance=60 stayActive="true" delay=0.1 />
     52      <BlinkingBillboard colour="1,1,0.05"position="200,-200,1000" frequency=0.6 amplitude=3 material="Flares/lensflare" >
     53      </BlinkingBillboard>
    3354
    3455
    3556
    36     <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     <SpawnPoint position="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipswallow >
    38         <controller>
    39           <HumanController formationFlight=true team=0 name=formation state_=MASTER />
    40         </controller>
    41     </SpawnPoint>
     57
     58    <Script code="formationcontroller formationflight true" onLoad="false">
     59        <events>
     60            <trigger>
     61                <EventListener event=FormationInit />
     62            </trigger>
     63        </events>
     64    </Script> <!-- !!! activates formation behaviour !!! -->
    4265
    4366
    44     <?lua
    45       for i = 1, 10, 1 do
    46         ?>
    47       <SpaceShip position="<?lua print(500 + math.random() * 4000 - 2000) ?>,<?lua print(math.random() * 2000 - 1000) ?>,<?lua print(math.random() * 2000 - 1000) ?>">
    48         <templates>
    49           <Template link=spaceshippirate />
    50         </templates>
    51         <controller>
    52           <AIController formationFlight=true passive=false team=0 name=formation active=true />
    53         </controller>
    54       </SpaceShip>
    55     <?lua end ?>
     67        <!-- ADDING FORMATION: 5 Swallows -->
     68        <?lua for i=0,4,1 do
     69        ?>
     70            <SpaceShip position="<?lua print(400+i*200) ?>,-200,1000" lookat="-1300,-600,900" visible="true">
     71                <templates>
     72                    <Template link=spaceshipswallow />
     73                </templates>
     74                <controller>
     75                    <AIController team=1/>
     76                </controller>
     77            </SpaceShip>
     78        <?lua end ?>
    5679
    57 <!--
    58     <?lua
    59       for i = 1, 10, 1 do
    60         ?>
    61       <SpaceShip position="<?lua print(math.random() * 4000 - 2000) ?>,<?lua print(0 + math.random() * 2000 - 1000) ?>,<?lua print(math.random() * 2000 - 1000) ?>">
    62         <templates>
    63           <Template link=spaceshipassff />
    64         </templates>
    65         <controller>
    66           <AIController formationFlight=true passive=false team=1 name=formation active=true/>
    67         </controller>
    68       </SpaceShip>
    69     <?lua end ?>
    70 -->
    71    
     80
    7281  </Scene>
    7382</Level>
     83
Note: See TracChangeset for help on using the changeset viewer.