Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10108


Ignore:
Timestamp:
Nov 5, 2014, 3:55:40 PM (9 years ago)
Author:
sujataj
Message:

modified level. works now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/leveljoemeHS14/data/levels/AnihilationThreat.oxw

    r10103 r10108  
    7171  <SpawnPoint
    7272        team=0 position="0,0,0"
    73         lookat="1,0,0"
     73        lookat="0,1,0"
    7474        spawnclass=SpaceShip
    75         pawndesign=spaceshipassff />
    76        
     75        pawndesign=spaceshipassff >
     76        <DistanceTriggerBeacon name="coolSpaceship" />
     77        </SpawnPoint>
    7778       
    7879        <Template name=PortalDefault>
     
    9394   
    9495    <!--Billboard which tirggers the next Quest and spawns the enemy ships-->
    95      <Billboard position=" 5000,3000, 3500" material="Examples/Flare" colour="1.0, 0.0, 0.0" />   
    96    
     96<Billboard position=" 500,500, 500" material="Examples/Flare" colour="1.0, 0.0, 0.0" /> 
     97<Billboard position=" 1500,1500, 1500" material="Examples/Flare" colour="1.0, 0.0, 0.0" /> 
     98<Billboard position=" 2500,2500, 2500" material="Examples/Flare" colour="1.0, 0.0, 0.0" /> 
     99<Billboard position=" 3500,3500, 3500" material="Examples/Flare" colour="1.0, 0.0, 0.0" /> 
     100<Billboard position=" 4500,4500, 4500" material="Examples/Flare" colour="1.0, 0.0, 0.0" /> 
     101<Billboard position=" 6500,6500, 6500" material="Examples/Flare" colour="1.0, 0.0, 0.0" /> 
     102<Billboard position=" 8500,8500, 8500" material="Examples/Flare" colour="1.0, 0.0, 0.0" /> 
     103<Billboard position=" 9500,9500, 9500" material="Examples/Flare" colour="1.0, 1.0, 0.0" /> 
     104
     105
     106
     107   
     108            <!--******************************-Mission starts here****************************-->
     109                       
     110                       
     111                         <!------------On-screen texts---------->
     112                         
     113
     114   
     115<DistanceTrigger name="flying2" position="0,0,0" target="Pawn" distance=40 stayActive="true" delay=7/>
     116    <SimpleNotification message="in order to reach our fleet,">
     117        <events>
     118            <trigger>
     119                <EventListener event="flying2" />
     120            </trigger>
     121        </events>
     122    </SimpleNotification>
     123   
     124   
     125<DistanceTrigger name="flying2" position="0,0,0" target="Pawn" distance=100 stayActive="true" delay=7/>
     126    <SimpleNotification message="read the quest description">
     127        <events>
     128            <trigger>
     129                <EventListener event="flying2" />
     130            </trigger>
     131        </events>
     132    </SimpleNotification>
     133   
     134    <DistanceTrigger name="flying1" position="0,0,0" target="Pawn" distance=100 stayActive="true" delay=1/>
     135    <SimpleNotification message="Welcome Mr. Walker">
     136        <events>
     137            <trigger>
     138                <EventListener event="flying1" />
     139            </trigger>
     140        </events>
     141    </SimpleNotification>       
     142
     143<DistanceTrigger name="flying3" position="500,500,500" target="Pawn" distance=50 stayActive="true" delay=1/>
     144<SimpleNotification message="follow the red dots">
     145    <events>
     146        <trigger>
     147            <EventListener event="flying3" />
     148        </trigger>
     149    </events>
     150</SimpleNotification>       
     151
     152
     153
     154
    97155<!-- Meteoriten, die sich bewegen -->
    98156   <?lua
    99       for i = 1, 300, 1
     157      for i = 1, 800, 1
    100158      do
    101159      j = math.random()
     
    106164
    107165   <MovableEntity   
    108       position = "<?lua print(math.random()* 600-300) ?>,<?lua print(math.random() * 40000 + 110000) ?>,<?lua print(math.random() * 600-300) ?>"
     166      position = "<?lua print(math.random()* 10000) ?>,<?lua print(math.random() * 10000 + 0) ?>,<?lua print(math.random() * 10000) ?>"
    109167      scale = "<?lua print(j * 40)?>"
    110       velocity = "<?lua print(x*20-10)?>, <?lua print(y*60-160)?>, <?lua print(z*20-10)?>"
     168      velocity = "0,0,0"
    111169      collisionType = dynamic
    112170      collisiondamage = 0.5
     
    128186      end
    129187   ?>
    130       <!-- Fiese Meteoriten, die direkt auf den Spieler zufliegen-->
    131 
    132          <?lua
    133             for i = 1, 240, 1
    134             do
    135             j = math.random()
    136             x = math.random()
    137             y = math.random()
    138             z = math.random()
    139          ?>
    140          <MovableEntity   
    141             position = "<?lua print(math.random()* 240-120) ?>,<?lua print(math.random() * 40000 + 110000) ?>,<?lua print(math.random()* 240-120) ?>"
    142             scale = "10"
    143             velocity = "0, -160, 0"
    144             collisionType = dynamic
    145             collisiondamage = 0.05
    146             enablecollisiondamage = true
    147             active = true
    148             visible = true
    149          >                     
    150                 <attached>           
    151                     <Model mass="2000" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" >
     188        <!--****************************In the Asteroid Field***************************-->
     189 <!--Enemy team-->
     190 
     191 <!--*****Spaceship 1******* -->
     192       
     193  <SpaceShip position="1900,1500,1500" lookat="2050,0,-1000" name="allied" health="500" maxhealth="500" initialhealth="500" >
     194          <templates>
     195            <Template link=spaceshipassff />
     196      </templates>
     197       <controller>
     198          <WaypointPatrolController alertnessradius=300 team=1 >
     199                                <waypoints>
     200                                  <Model mesh="cube.mesh" scale=0 position="1000,1500,1500" />
     201                  <Model mesh="cube.mesh" scale=0 position="1900,1500,1500" />
     202                          <Model mesh="cube.mesh" scale=0 position="1000,1500,1500" />
     203                  <Model mesh="cube.mesh" scale=0 position="1900,1500,1500" />
     204                          <Model mesh="cube.mesh" scale=0 position="1000,1500,1500" />
     205                  <Model mesh="cube.mesh" scale=0 position="1900,1500,1500" />
     206                          <Model mesh="cube.mesh" scale=0 position="1000,1500,1500" />
     207                 
     208              </waypoints>
     209                                               
     210          </WaypointPatrolController>
     211
     212       </controller>
     213         
     214  </SpaceShip>
     215     
     216     
     217      <!--*****Spaceship 2 and 3******* -->
     218     
     219      <SpaceShip position="2900,2500,2500" lookat="2050,0,-1000" name="allied" health="500" maxhealth="500" initialhealth="500" >
     220          <templates>
     221                <Template link=spaceshippirate />
     222          </templates>
     223           <controller>
     224              <WaypointPatrolController alertnessradius=300 team=1 >
     225                                <waypoints>
     226                                  <Model mesh="cube.mesh" scale=0 position="2000,2500,2500" />
     227                      <Model mesh="cube.mesh" scale=0 position="2900,2500,2500" />
     228                                  <Model mesh="cube.mesh" scale=0 position="2000,2500,2500" />
     229                      <Model mesh="cube.mesh" scale=0 position="2900,2500,2500" />
     230                                  <Model mesh="cube.mesh" scale=0 position="2000,2500,2500" />
     231                      <Model mesh="cube.mesh" scale=0 position="2900,2500,2500" />
     232                          <Model mesh="cube.mesh" scale=0 position="2000,2500,2500" />
    152233                     
    153                     </Model>                   
    154                 </attached>
    155                <collisionShapes>
    156                    <SphereCollisionShape radius="10" />
    157                </collisionShapes>   
    158          </MovableEntity>
    159          <?lua
    160             end
    161          ?>
    162 
    163 
    164    
    165    
    166             <!--******************************-Mission starts here****************************-->
    167                        
    168                        
    169                          <!------------On-screen texts---------->
    170    
    171 <DistanceTrigger name="flying2" position="0,0,0" target="Pawn" distance=40 stayActive="true" delay=7/>
    172     <SimpleNotification message="take the nearest portal">
    173         <events>
    174             <trigger>
    175                 <EventListener event="flying2" />
    176             </trigger>
    177         </events>
    178     </SimpleNotification>
    179    
    180    
    181 <DistanceTrigger name="flying2" position="0,0,0" target="Pawn" distance=100 stayActive="true" delay=7/>
    182     <SimpleNotification message="In order to reach our fleet,">
    183         <events>
    184             <trigger>
    185                 <EventListener event="flying2" />
    186             </trigger>
    187         </events>
    188     </SimpleNotification>
    189    
    190     <DistanceTrigger name="flying1" position="0,0,0" target="Pawn" distance=100 stayActive="true" delay=1/>
    191     <SimpleNotification message="Welcome Mr. Walker">
    192         <events>
    193             <trigger>
    194                 <EventListener event="flying1" />
    195             </trigger>
    196         </events>
    197     </SimpleNotification>       
    198        
     234                  </waypoints>
     235                                               
     236              </WaypointPatrolController>
     237
     238           </controller>
     239         
     240      </SpaceShip>
     241     
     242      <SpaceShip position="2020,2500,2500" lookat="2050,0,-1000" name="allied" health="500" maxhealth="500" initialhealth="500" >
     243          <templates>
     244                <Template link=spaceshippirate />
     245          </templates>
     246           <controller>
     247              <WaypointPatrolController alertnessradius=300 team=1 >
     248                                <waypoints>
     249                                 
     250                      <Model mesh="cube.mesh" scale=0 position="2920,2500,2500" />
     251                                  <Model mesh="cube.mesh" scale=0 position="2020,2500,2500" />
     252                      <Model mesh="cube.mesh" scale=0 position="2920,2500,2500" />
     253                                  <Model mesh="cube.mesh" scale=0 position="2020,2500,2500" />
     254                      <Model mesh="cube.mesh" scale=0 position="2920,2500,2500" />
     255                          <Model mesh="cube.mesh" scale=0 position="2020,2500,2500" />
     256                                  <Model mesh="cube.mesh" scale=0 position="2920,2500,2500" />
     257                  </waypoints>
     258                                               
     259              </WaypointPatrolController>
     260
     261           </controller>
     262         
     263      </SpaceShip>
     264 
    199265        <!--****************************After the Asteroid Field***************************-->
    200266       
    201         <DistanceTrigger name="afterPortal" position="3000,3000,3000" target="Pawn" distance=100 stayActive="true" delay=1/>
    202     <SimpleNotification message="Reach the red chekpoint">
    203         <events>
    204             <trigger>
    205                 <EventListener event="afterPortal" />
    206             </trigger>
    207         </events>
    208     </SimpleNotification>
    209    
     267   <DistanceTrigger name="afterPortal" position="9500,9500, 9500" target="Pawn"  distance=50 stayActive="true" delay=1/>
     268     
    210269   
    211270<!--Creating player's team OK-->
    212271        <!--Spaceships team 0 (player:team=0)-->
    213272       
    214         <SpaceShip position="3500,3000,3000" lookat="2050,0,-1000" name="allied" health="500" maxhealth="500" initialhealth="500" >
    215              <templates>
     273        <SpaceShip position="10000,10000,10000" lookat="2050,0,-1000" name="allied" health="500" maxhealth="500" initialhealth="500" >
     274          <templates>
    216275                  <Template link=spaceshipassff />
    217276            </templates>
    218277             <controller>
    219278                <WaypointPatrolController alertnessradius=2000 team=0 >
    220                     <waypoints>
     279                    <events>
     280                               <activity>
     281                                   <EventListener event="afterPortal" />
     282                                </activity>
     283                           </events>
     284                                        <waypoints>
     285                                        <Model mesh="cube.mesh" scale=0 position="1000,1500,1500" />
     286                        <Model mesh="cube.mesh" scale=0 position="1900,1500,1500" />
     287                                        <Model mesh="cube.mesh" scale=0 position="1000,1500,1500" />
     288                        <Model mesh="cube.mesh" scale=0 position="1900,1500,1500" />
     289                                        <Model mesh="cube.mesh" scale=0 position="1000,1500,1500" />
     290                        <Model mesh="cube.mesh" scale=0 position="1900,1500,1500" />
     291                                <Model mesh="cube.mesh" scale=0 position="1000,1500,1500" />
     292                        <Model mesh="cube.mesh" scale=0 position="1900,1500,1500" />
    221293                        <Model mesh="cube.mesh" scale=0 position="2050,0,-1000" />
    222294                        <Model mesh="cube.mesh" scale=0 position="6050,0,0" />
     
    225297                        <Model mesh="cube.mesh" scale=0 position="-4050,0,3000" />
    226298                    </waypoints>
     299                                                       
    227300                </WaypointPatrolController>
     301 
    228302             </controller>
     303         
    229304        </SpaceShip>
    230305        <!--Second Spaceship team 0 (player: team 0)-->
    231         <SpaceShip position="3500,3000,3600" lookat="2000,0,-950" name="allied" health="500" maxhealth="400" initialhealth="400" >
     306        <SpaceShip position="10100,10000,10100" lookat="2000,0,-950" name="allied" health="500" maxhealth="400" initialhealth="400" >
    232307             <templates>
    233308                  <Template link=spaceshipassff />
     
    235310             <controller>
    236311                <WaypointPatrolController alertnessradius=2000 team=0 >
     312                                  <events>
     313                                          <activity>
     314                                     <EventListener event="afterPortal" />
     315                          </activity>
     316                       </events>
     317
    237318                    <waypoints>
    238319                        <Model mesh="cube.mesh" scale=0 position="2000,0,-900" />
     
    246327        </SpaceShip>
    247328        <!--third Spaceship team 0 (player: team 0)-->
    248         <SpaceShip position="3500,3000,34000" lookat="2000,0,-1050" name="allied" health="500" maxhealth="400" initialhealth="400" >
     329        <SpaceShip position="9900,10000,9900" lookat="2000,0,-1050" name="allied" health="500" maxhealth="400" initialhealth="400" >
    249330             <templates>
    250331                  <Template link=spaceshipassff />
     
    252333             <controller>
    253334                <WaypointPatrolController alertnessradius=2000 team=0 >
     335                          <events>
     336                        <activity>
     337                             <EventListener event="afterPortal" />
     338                         </activity>
     339                  </events>
    254340                    <waypoints>
    255341                        <Model mesh="cube.mesh" scale=0 position="2000,0,-1100" />
     
    288374
    289375<GlobalQuest id="quest0">
    290                 <QuestDescription title="Mission" description="Humanity is at war! Recently, an ashrocian ship attacked two transporters carrying highly expensive ETHium. Despite the fact, that the Ashrocs are a technological superpower, we, the human race cannot allow them to treat us like insects. Your mission's to group up with yout fellow soldiers and retaliate even harder." />
     376                <QuestDescription title="Mission" description="Humanity is at war! Recently, an ashrocian ship attacked two transporters carrying highly expensive ETHium. Despite the fact, that the Ashrocs are a technological superpower, we, the human race cannot allow them to treat us like insects. Your mission's to group up with yout fellow soldiers and retaliate even harder. Follow the red marks which were left by the star fleet. But beware, there might be spies on your way. See to it, that you terminate their mission ;)" />
    291377        <hints>
    292378                <QuestHint id="quest1hint0">
     
    320406
    321407
    322 <?lua for i=0,0,1 do
    323 x=800
    324 health=1100
    325 ?>
    326     <!--Transporter 1-->
    327     <EventTrigger name="activateTeam1No1" acitvations=1 stayactive="true">
    328     <events>
    329     <trigger>
    330         <SpaceShip position="<?lua print(5000-i*x) ?>,3000,3000" lookat="<?lua print(4800-i*x) ?>,0,4000" health="<?lua print(health) ?>" maxhealth="<?lua print(health) ?>" initialhealth="<?lua print(health) ?>" >
    331             <templates>
    332                    <Template link=spaceshipTransporter />
    333              </templates>
    334                           <controller>
    335                 <WaypointPatrolController alertnessradius=2000 team=1 >
    336                     <waypoints>
    337                         <Model mesh="cube.mesh" scale=0 position="2000,0,-1100" />
    338                         <Model mesh="cube.mesh" scale=0 position="6000,0,-100" />
    339                         <Model mesh="cube.mesh" scale=0 position="10000,0,2900" />
    340                         <Model mesh="cube.mesh" scale=0 position="3000,0,2900" />
    341                         <Model mesh="cube.mesh" scale=0 position="-4000,0,2900" />
    342                     </waypoints>
    343                 </WaypointPatrolController>
    344              </controller>
    345         </SpaceShip><!---->
    346     </trigger>
    347     </events>
    348     </EventTrigger>
    349 <?lua end ?>
    350 
    351408   
    352409   
Note: See TracChangeset for help on using the changeset viewer.