Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Uniformized formatting, partially automatically.

The rules are now as follows:

  • All XML tags are indented with 4-space tabs
  • Object tags are separated by a newline
  • Strings are double-quoted unless representing another type (int, bool etc)
File:
1 edited

Legend:

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

    r10674 r10676  
    11<LevelInfo
    2  name = "CampaignHS15 1"
    3  description = "Protect the transporter!"
    4  tags = "mission"
    5  screenshot = "missionOne.png"
     2    name = "CampaignHS15 1"
     3    description = "Protect the transporter!"
     4    tags = "mission"
     5    screenshot = "missionOne.png"
    66/>
    77
    88<?lua
    9   include("stats.oxo")
    10   include("HUDTemplates3.oxo")
    11   include("templates/lodInformation.oxt")
     9    include("stats.oxo")
     10    include("HUDTemplates3.oxo")
     11    include("templates/lodInformation.oxt")
    1212?>
    1313
    1414<?lua
    15   include("templates/spaceshipAssff2.oxt")
    16   include("templates/spaceshipPirate.oxt")
    17   include("templates/spaceshipEscort.oxt")
    18   include("templates/spaceshipRing.oxt")
    19   include("templates/spaceshipSwallow.oxt")
    20   include("templates/spaceshipTransporter.oxt")
     15    include("templates/spaceshipAssff2.oxt")
     16    include("templates/spaceshipPirate.oxt")
     17    include("templates/spaceshipEscort.oxt")
     18    include("templates/spaceshipRing.oxt")
     19    include("templates/spaceshipSwallow.oxt")
     20    include("templates/spaceshipTransporter.oxt")
    2121?>
    2222
    23 <Level gametype     = "Mission">
    24   <templates>
    25     <Template link=lodtemplate_default />
    26   </templates>
    27   <?lua include("includes/notifications.oxi") ?>
    28 
    29   <Scene
    30     ambientlight = "0.8, 0.8, 0.8"
    31     skybox      = "Orxonox/Starbox"
    32   >
     23<Level gametype = "Mission">
     24    <templates>
     25        <Template link="lodtemplate_default" />
     26    </templates>
     27    <?lua include("includes/notifications.oxi") ?>
     28
     29    <Scene
     30        ambientlight = "0.8, 0.8, 0.8"
     31        skybox = "Orxonox/Starbox"
     32    >
    3333
    3434    <WorldAmbientSound source="Earth.ogg" looping="true" playOnLoad="true" />
     
    4141        <QuestDescription title="Reach the Station!" description="" failMessage="" completeMessage="" />
    4242        <hints>
    43            <QuestHint id="quest1hint1" />
     43            <QuestHint id="quest1hint1" />
    4444        </hints>
    4545        <subquests>
     
    5252        </hints>
    5353        <subquests>
    54           <GlobalQuest id="quest2.1">
    55               <QuestDescription title="Get a better Spaceship" description="" failMessage="" completeMessage="" />
    56           </GlobalQuest>
    57           <GlobalQuest id="quest2.2">
    58               <QuestDescription title="Get some Pickups" description="" failMessage="" completeMessage="" />
    59           </GlobalQuest>
    60           <GlobalQuest id="quest2.3">
    61               <QuestDescription title="Meet your Unit" description="" failMessage="" completeMessage="" />
    62           </GlobalQuest>
     54            <GlobalQuest id="quest2.1">
     55                <QuestDescription title="Get a better Spaceship" description="" failMessage="" completeMessage="" />
     56            </GlobalQuest>
     57            <GlobalQuest id="quest2.2">
     58                <QuestDescription title="Get some Pickups" description="" failMessage="" completeMessage="" />
     59            </GlobalQuest>
     60            <GlobalQuest id="quest2.3">
     61                <QuestDescription title="Meet your Unit" description="" failMessage="" completeMessage="" />
     62            </GlobalQuest>
    6363        </subquests>
    6464    </GlobalQuest>
     
    7777        </hints>
    7878        <subquests>
    79           <GlobalQuest id="quest4.1">
    80               <QuestDescription title="Get to the Defense Station" description="" failMessage="" completeMessage="" />
    81           </GlobalQuest>
    82           <GlobalQuest id="quest4.2">
    83               <QuestDescription title="Find the turret" description="" failMessage="" completeMessage="" />
    84           </GlobalQuest>
     79            <GlobalQuest id="quest4.1">
     80                <QuestDescription title="Get to the Defense Station" description="" failMessage="" completeMessage="" />
     81            </GlobalQuest>
     82            <GlobalQuest id="quest4.2">
     83                <QuestDescription title="Find the turret" description="" failMessage="" completeMessage="" />
     84            </GlobalQuest>
    8585        </subquests>
    8686    </GlobalQuest>
     
    100100        <subquests>
    101101            <GlobalQuest id="quest6.1">
    102               <QuestDescription title="Collect the local Pickups" description="" failMessage="" completeMessage="" />
    103           </GlobalQuest>
    104           <GlobalQuest id="quest6.2">
    105               <QuestDescription title="Use Portal to the Transporter" description="" failMessage="" completeMessage="" />
    106           </GlobalQuest>
     102                <QuestDescription title="Collect the local Pickups" description="" failMessage="" completeMessage="" />
     103            </GlobalQuest>
     104            <GlobalQuest id="quest6.2">
     105                <QuestDescription title="Use Portal to the Transporter" description="" failMessage="" completeMessage="" />
     106            </GlobalQuest>
    107107        </subquests>
    108108    </GlobalQuest>
     
    119119
    120120    <EventMultiTrigger name=spawntrigger>
    121       <events>
    122           <trigger>
    123               <SpawnPoint team=1 position="-50,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff2 />
    124           </trigger>
    125       </events>
     121        <events>
     122            <trigger>
     123                <SpawnPoint team=1 position="-50,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff2 />
     124            </trigger>
     125        </events>
    126126    </EventMultiTrigger>
    127 
    128127
    129128    <QuestEffectBeacon times=1>
     
    171170    </StaticEntity>
    172171
    173      <!--ELEMENTS -->
    174 
    175        <?lua
    176       max = 5
     172    <!--ELEMENTS -->
     173
     174    <?lua
     175    max = 5
    177176    for i = 1, max, 1
    178177    do
    179       x = math.cos(math.pi/8*(i+1))*1500
    180       y = math.sin(math.pi/8*(i+1))*1500
     178    x = math.cos(math.pi/8*(i+1))*1500
     179    y = math.sin(math.pi/8*(i+1))*1500
    181180    ?>
    182181    <SpaceShip position="<?lua print(y)?>,<?lua print(math.pow(-1,i)*250) ?>,<?lua print(x)?>" lookat="0,0,0" team=2>
    183182        <templates>
    184             <Template link=spaceshippirate />
     183            <Template link="spaceshippirate" />
    185184        </templates>
    186185        <controller>
    187186            <WaypointPatrolController alertnessradius=600 team=1>
    188               <waypoints>
    189                 <Attacher target="transporter" deletewithparent=false />
    190               </waypoints>
     187                <waypoints>
     188                    <Attacher target="transporter" deletewithparent=false />
     189                </waypoints>
    191190            </WaypointPatrolController>
    192191        </controller>
     
    194193    <?lua end ?>
    195194
    196         <SpaceShip position="-2500,0,1700" lookat="-2500,0,-1800" team=1 name="transporter">
    197                 <templates>
    198                         <Template link=spaceshipTransporter />
    199                 </templates>
    200                 <controller>
    201                     <WaypointController accuracy=10>
    202                         <waypoints>
    203                 <Model mesh="sphere.mesh" scale=100 position="-2500,0,1650" />
    204                 <?lua
    205                 max = 5
    206                 for i = 1, max, 1
    207                 do
    208                   x = math.cos(math.pi/8*(i+1))*3490
    209                   y = -math.sin(math.pi/8*(i+1))*3490
    210                 ?>
    211                             <Model mesh="sphere.mesh" scale=100 position="<?lua print(y) ?>+490,0,<?lua print(x) ?>" />
    212                 <?lua end ?>
    213                 <Model mesh="sphere.mesh" scale=100 position="-2500,0,-1650" />
    214                         </waypoints>
    215                     </WaypointController>
    216                 </controller>
    217         </SpaceShip>
    218 
    219 
    220 
    221   </Scene>
     195    <SpaceShip position="-2500,0,1700" lookat="-2500,0,-1800" team=1 name="transporter">
     196        <templates>
     197            <Template link="spaceshipTransporter" />
     198        </templates>
     199        <controller>
     200            <WaypointController accuracy=10>
     201                <waypoints>
     202                    <Model mesh="sphere.mesh" scale=100 position="-2500,0,1650" />
     203                    <?lua
     204                    max = 5
     205                    for i = 1, max, 1
     206                    do
     207                    x = math.cos(math.pi/8*(i+1))*3490
     208                    y = -math.sin(math.pi/8*(i+1))*3490
     209                    ?>
     210                    <Model mesh="sphere.mesh" scale=100 position="<?lua print(y) ?>+490,0,<?lua print(x) ?>" />
     211                    <?lua end ?>
     212                    <Model mesh="sphere.mesh" scale=100 position="-2500,0,-1650" />
     213                </waypoints>
     214            </WaypointController>
     215        </controller>
     216    </SpaceShip>
     217
     218    </Scene>
    222219</Level>
Note: See TracChangeset for help on using the changeset viewer.