Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9849 for code/branches


Ignore:
Timestamp:
Dec 2, 2013, 3:30:55 PM (11 years ago)
Author:
schlaem
Message:

in progress…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/levelMichael/data/levels/Spacefight.oxw

    r9843 r9849  
    44To Do:
    55- Different Colors of the light!
    6 - visibility of light only for a little time
    76- If possible, do the spion with DistanceTriggerBeacon
    87- More health for spacestations
    98-->
     9
    1010<LevelInfo
    1111 name = "Spacefight"
     
    6565<!-- SPAWNTRIGGER -->
    6666
    67 <!-- Spawntrigger -->   
     67<!-- Spawntrigger -->
     68        <!-- StartPoint --> 
    6869        <SpawnPoint team=0 position="0, 0, 0" lookat="100,0,0" spawnclass=SpaceShip pawndesign=spaceshipswallow > <!-- pawndesign=spaceshipcollateraldamage -->
    6970          <events>
     
    8283        </EventTrigger>
    8384
    84 
     85        <!-- Second Spawnpoint (after first guard) -->
    8586        <SpawnPoint team=0 position="13500, 2500, 10500" lookat="18000,5000,18000" spawnclass=SpaceShip pawndesign=spaceshipswallow delay=0.1><!-- pawndesign=spaceshipcollateraldamage -->
    8687          <events>
    8788            <activity>
    8889              <EventListener event="flying1" />
     90            </activity>
     91          </events> -->
     92        </SpawnPoint>
     93       
     94        <!-- Thirth Spawnpoint (when reached Captain Hood) -->
     95        <SpawnPoint team=0 position="-4000, -18000, 19000" lookat="-12000, -22000, 25000" spawnclass=SpaceShip pawndesign=spaceshipswallow delay=0.1><!-- pawndesign=spaceshipcollateraldamage -->
     96          <events>
     97            <activity>
     98              <EventListener event="reached" />
    8999            </activity>
    90100          </events> -->
     
    243253        </SimpleNotification>
    244254
     255        <EventTrigger name="flying1delay" activations="1" stayactive="true" delay=0.1 >
     256          <events>
     257            <trigger>
     258              <EventListener event="flying1" />
     259            </trigger>
     260          </events>
     261        </EventTrigger>
     262
    245263        <SimpleNotification message="The blinking light shows you the way!"  broadcast="true" >
    246264                <events>
    247265                        <trigger>
    248                                 <EventListener event="flying1" />
     266                                <EventListener event="flying1delay" />
    249267                        </trigger>
    250268                </events>
     
    316334        </SimpleNotification>
    317335
    318         <SimpleNotification message="before he reachs the light!"  broadcast="true" delay=5.0 >
     336        <EventTrigger name="flying2delay" activations="1" stayactive="true" delay=0.1 >
     337          <events>
     338            <trigger>
     339              <EventListener event="flying2" />
     340            </trigger>
     341          </events>
     342        </EventTrigger>
     343
     344        <SimpleNotification message="Before he reachs the light!"  broadcast="true" >
    319345                <events>
    320346                        <trigger>
    321                                 <EventListener event="flying2" />
     347                                <EventListener event="flying2delay" />
    322348                        </trigger>
    323349                </events>
     
    483509                </EventTrigger>
    484510        </DistanceTrigger>
    485        
    486         <!-- Helper-Trigger for the Escape-Quest -->
    487         <DistanceTrigger name="escape10" position="18000,5000,21000" target="SpaceShip" distance=10000 stayActive="true" delay=0.1 >
    488                 <EventTrigger>
    489                         <events>
    490                                 <trigger>
    491                                         <EventListener event="guard2trigger1" />
    492                                 </trigger>
    493                         </events>
    494                 </EventTrigger>
    495         </DistanceTrigger>
    496511
    497512        <!-- DistanceTrigger for spion -->
    498         <DistanceTrigger name="spionTrigger" position="15000,4000,19000" target="SpaceShip" distance=50 stayActive="true" delay=0.1 />
    499         <SimpleNotification message="spion is arrived!"  broadcast="true">
     513        <DistanceTrigger name="spionTrigger" position="0,-10000,42000" target="SpaceShip" distance=50 stayActive="true" delay=0.1 />
     514        <SimpleNotification message="Scout is arrived!"  broadcast="true">
    500515                <events>
    501516                        <trigger>
     
    515530        </SimpleNotification>   
    516531
    517         <!-- Helper-Trigger for mainship -->
    518         <DistanceTrigger name="flying3" position="11000, 3000, 21000" target="SpaceShip" distance=1000 stayActive="true" delay=0.1 />
    519         <SimpleNotification message="Mainship sighted!"  broadcast="true">
    520                 <events>
    521                         <trigger>
    522                                 <EventListener event="flying3" />
    523                         </trigger>
    524                 </events>
    525         </SimpleNotification>
    526 
    527532        <!-- If spion destroyed -->
    528         <DistanceTrigger name="destroyed" position="8500,-3000,32000" target="SpaceShip" distance=100000 stayActive="true" delay=0.1 >
    529                 <EventTrigger>
    530                         <events>
    531                                 <trigger>
    532                                         <EventListener event="spion" />
    533                                 </trigger>
    534                         </events>
    535                 </EventTrigger>
    536         </DistanceTrigger>
    537 
    538533        <SimpleNotification message="Scout destroyed!"  broadcast="true">
    539534                <events>
     
    572567                        <trigger>
    573568                                <EventListener event="spion5delay2" />
     569                        </trigger>
     570                </events>
     571        </SimpleNotification>
     572
     573        <!-- Trigger for Monologue from Captain Hood -->
     574        <DistanceTrigger name="discuss" position="-4000, -18000, 19000" target="SpaceShip" distance=50 stayActive="true" delay=0.1 />
     575        <SimpleNotification message="Look, there is the mainship!"  broadcast="true">
     576                <events>
     577                        <trigger>
     578                                <EventListener event="discuss" />
    574579                        </trigger>
    575580                </events>
     
    644649      </EventTrigger>
    645650    </EventTrigger>
    646 
    647 
    648651
    649652<!-- For Escape -->
     
    927930    <WaypointController team=1>
    928931      <waypoints>
    929         <Model mesh="cube.mesh" scale=100 position="-7000,-10000,42000" /> <!-- "-7000,-10000,42000" -->
     932        <Model mesh="cube.mesh" scale=100 position="0,-10000,42000" />
    930933        <Model mesh="cube.mesh" scale=0 position="-12000, -22000, 25000" />
    931934      </waypoints>
     
    937940    </WaypointController>
    938941  </controller>
    939 <!--
     942<!--  Should be realized, if possible...
    940943  <attached>
    941944    <DistanceTriggerBeacon name="spionBeacon" />
     
    948951  <events>
    949952    <visibility>
    950       <EventListener event="guard2trigger4" /> <!-- "guard2trigger4" -->
     953      <EventListener event="guard2trigger4" />
    951954    </visibility>
    952955  </events>
     
    968971      <events>
    969972        <activity>
    970           <EventListener event="guard2trigger4" /> <!-- "guard2trigger4" -->
     973          <EventListener event="guard2trigger4" />
    971974        </activity>
    972975      </events>
     
    978981  <events>
    979982    <visibility>
    980       <EventListener event="guard2trigger4" /> <!-- "guard2trigger4" -->
     983      <EventListener event="guard2trigger4" />
    981984    </visibility>
    982985  </events>
     
    9981001      <events>
    9991002        <activity>
    1000           <EventListener event="guard2trigger4" /> <!-- "guard2trigger4" -->
     1003          <EventListener event="guard2trigger4" />
    10011004        </activity>
    10021005      </events>
     
    10081011  <events>
    10091012    <visibility>
    1010       <EventListener event="guard2trigger4" /> <!-- "guard2trigger4" -->
     1013      <EventListener event="guard2trigger4" />
    10111014    </visibility>
    10121015  </events>
     
    10281031      <events>
    10291032        <activity>
    1030           <EventListener event="guard2trigger4" /> <!-- "guard2trigger4" -->
     1033          <EventListener event="guard2trigger4" />
    10311034        </activity>
    10321035      </events>
     
    10381041  <events>
    10391042    <visibility>
    1040       <EventListener event="guard2trigger4" /> <!-- "guard2trigger4" -->
     1043      <EventListener event="guard2trigger4" />
    10411044    </visibility>
    10421045  </events>
     
    10581061      <events>
    10591062        <activity>
    1060           <EventListener event="guard2trigger4" /> <!-- "guard2trigger4" -->
     1063          <EventListener event="guard2trigger4" />
    10611064        </activity>
    10621065      </events>
     
    10691072  <events>
    10701073    <visibility>
    1071       <EventListener event="escaped" /> <!-- escaped -->
     1074      <EventListener event="spionTrigger" />
    10721075    </visibility>
    10731076  </events>
     
    10891092      <events>
    10901093        <activity>
    1091           <EventListener event="escaped" /> <!-- escaped -->
     1094          <EventListener event="spionTrigger" />
    10921095        </activity>
    10931096      </events>
     
    10991102  <events>
    11001103    <visibility>
    1101       <EventListener event="escaped" /> <!-- escaped -->
     1104      <EventListener event="spionTrigger" />
    11021105    </visibility>
    11031106  </events>
     
    11191122      <events>
    11201123        <activity>
    1121           <EventListener event="escaped" /> <!-- escaped -->
     1124          <EventListener event="spionTrigger" />
    11221125        </activity>
    11231126      </events>
     
    11271130
    11281131<!-- FRIEND-SHIPS -->
    1129 <SpaceShip position="8500, 2000, 17000" lookat="0, 0, 18000" name="friend" visible="true" radarname="Hood" >
     1132<SpaceShip position="8500, 2000, 17000" lookat="0, -1000, 18000" name="friend" visible="true" radarname="Hood" >
    11301133  <events>
    11311134    <visibility>
     
    11391142    <WaypointPatrolController alertnessradius=2000 team=0 active=false>
    11401143      <waypoints>
    1141         <Model mesh="cube.mesh" scale=100 position="0, -5000, 18000" />
     1144        <Model mesh="cube.mesh" scale=100 position="0, -1000, 18000" />
     1145        <Model mesh="cube.mesh" scale=100 position="-4000, -18000, 19000" />
    11421146        <Model mesh="cube.mesh" scale=100 position="-11500, -22000, 25000" />
    11431147      </waypoints>
     
    11721176</BlinkingBillboard>
    11731177
     1178<SimpleNotification message="Your friend, Captain Hood, is dead..."  broadcast="true">
     1179        <events>
     1180                <trigger>
     1181                        <EventListener event="friend" />
     1182                </trigger>
     1183        </events>
     1184</SimpleNotification>
     1185
     1186<EventTrigger name="frienddelay" activations="1" stayactive="true" delay=5.0 >
     1187  <events>
     1188    <trigger>
     1189      <EventListener event="friend" />
     1190    </trigger>
     1191  </events>
     1192</EventTrigger>
     1193
     1194<SimpleNotification message="He died in a fight, like he wished it!"  broadcast="true">
     1195        <events>
     1196                <trigger>
     1197                        <EventListener event="frienddelay" />
     1198                </trigger>
     1199        </events>
     1200</SimpleNotification>
    11741201
    11751202<!-- ----------------------------------------------------- -->
    11761203
    1177     <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"/>
     1204<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"/>
    11781205
    11791206
    11801207<!-- ASTEROIDS & ASTEROID-FIELDS -->
    1181 
    11821208        <!-- Asteroids -->
    1183 
    11841209        <Model  position="9800, -5000, 5700"
    11851210                yaw="90"
     
    12071232        <!-- other asteroid fileds -->
    12081233
    1209                 <!-- left before guard 1 -->   
     1234        <!-- left before guard 1 -->   
     1235        <?lua
     1236                dofile("includes/asteroidField.lua")
     1237                asteroidField(-5000, -5000, -20000, 20, 50, 10000, 200, 0)
     1238        ?>
     1239
     1240        <!-- left behind guard 1 -->
     1241        <?lua
     1242                dofile("includes/asteroidField.lua")
     1243                asteroidField(20000, -10000, -12000, 30, 100, 10000, 200, 0)
     1244        ?>
     1245
     1246        <!-- between guard 2 & mainship -->
     1247                <!-- Core -->   
    12101248                <?lua
    12111249                        dofile("includes/asteroidField.lua")
    1212                         asteroidField(-5000, -5000, -20000, 20, 50, 10000, 200, 0)
     1250                        asteroidField(-5000, -10000, 30000, 10, 700, 8000, 80, 0)
    12131251                ?>
    1214 
    1215                 <!-- left behind guard 1 -->
     1252       
     1253                <!-- Peripherie -->
    12161254                <?lua
    12171255                        dofile("includes/asteroidField.lua")
    1218                         asteroidField(20000, -10000, -12000, 30, 100, 10000, 200, 0)
     1256                        asteroidField(-5000, -10000, 30000, 10, 50, 10000, 100, 0)
    12191257                ?>
    12201258
    1221                 <!-- between guard 2 & mainship -->
    1222                         <!-- Core -->   
    1223                         <?lua
    1224                                 dofile("includes/asteroidField.lua")
    1225                                 asteroidField(-5000, -10000, 30000, 10, 700, 8000, 80, 0)
    1226                         ?>
    1227        
    1228                         <!-- Peripherie -->
    1229                         <?lua
    1230                                 dofile("includes/asteroidField.lua")
    1231                                 asteroidField(-5000, -10000, 30000, 10, 50, 10000, 100, 0)
    1232                         ?>
    1233 
    1234                         <?lua
    1235                                 dofile("includes/asteroidField.lua")
    1236                                 asteroidBelt(-10000, -12500, 0, 0, 0, 30, 30, 500, 0, 7850, 150, 0)
    1237                         ?>
    1238 
    1239 <!-- PLANETS -->
    1240 
     1259                <?lua
     1260                        dofile("includes/asteroidField.lua")
     1261                        asteroidBelt(-10000, -12500, 0, 0, 0, 30, 30, 500, 0, 7850, 150, 0)
     1262                ?>
     1263
     1264        <!-- PLANETS -->
    12411265        <Planet         position="2000,-250,9000"
    12421266                        scale=5000
     
    12561280
    12571281<!-- ----------------Rotating SpaceStation--------------- -->
    1258 
    12591282        <!-- first guard -->
    12601283        <StaticEntity position="9000,0,0" collisionType=static yaw=112 pitch=67 >
     
    12761299
    12771300<!-- ------------------------- Mainship ------------------ -->
    1278     <Pawn team=1 health=50000 position="-12000, -22000, 25000" direction="0,-1,0" collisionType=dynamic mass=100000 name=box radarname = "Mainship" yaw=112 pitch=67>
    1279         <events>
    1280           <visibility>
    1281             <EventListener event=spawntrigger2 />
    1282           </visibility>
    1283         </events>
    1284         <attached>
    1285                 <?lua
    1286                         createSpaceStationPar(0,2,1,2,1,4,1,50)
    1287                 ?>
    1288         </attached>
    1289         <collisionShapes>
    1290             <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />
    1291         </collisionShapes>
    1292     </Pawn>
     1301        <StaticEntity position="-12000, -22000, 25000" collisionType=static yaw=112 pitch=67 >
     1302          <attached>
     1303            <?lua
     1304              createSpaceStationPar(0,2,1,2,1,4,1,50)
     1305            ?>
     1306          </attached>
     1307        </StaticEntity>
    12931308
    12941309  </Scene>
Note: See TracChangeset for help on using the changeset viewer.