Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 11, 2013, 3:20:20 PM (11 years ago)
Author:
lumperte
Message:

Asteroid Fields around planet. Start the architecture of the Homeplanet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/levelElias/data/levels/EscapeTheBastards.oxw

    r9747 r9772  
    9696        <events>
    9797            <trigger>
    98                 <TeamSpawnPoint team=0 position="-8050,0,0" direction="1,0.3,0.2" spawnclass=SpaceShip pawndesign=spaceshipcollateraldamage>>
     98                <TeamSpawnPoint team=0 position="-3000,12000,-5500" direction="0.3,1.2,-5.5" spawnclass=SpaceShip pawndesign=spaceshipcollateraldamage>>
     99<!-- Spawnpoint aendern zu 8050 nachher direction="1,0.3,0.2"-->
    99100                  <EventTrigger invert=true>
    100101                    <events>
     
    160161        <DistanceTrigger name="reachedally" position="-120,0,0" target="Pawn" distance=60 stayActive="true" delay=2>
    161162    </DistanceTrigger>
    162         <DistanceTrigger name="reachedhomeplanet" position="8000,7500,-1990" target="Pawn" distance=60 stayActive="true" delay=2>
     163        <DistanceTrigger name="reachedhomeplanet" position="-3000,12000,-6990" target="Pawn" distance=60 stayActive="true" delay=2>
    163164    </DistanceTrigger>
    164165
     
    239240<!-- Billboard Homeplanet -->
    240241
    241 <BlinkingBillboard position="8000,7500,-1990" frequency=0.4 amplitude=3 material="Flares/lensflare" colour="1,1,0.05">
     242<!-- evt Blinking light before landing on planet, Entfernen nach architektur-->
     243<BlinkingBillboard position="-3000,12000,-6990" frequency=0.4 amplitude=3 material="Flares/lensflare" colour="1,1,0.05">
    242244          <events>
    243245            <visibility>
     
    245247                <events>
    246248                  <trigger>
    247                     <EventListener event="reachedhomeplanet" />
     249                    <EventListener event="target3"/> <!-- reachedhomeplanet-->
    248250                  </trigger>
    249251                </events>
     
    253255</BlinkingBillboard>
    254256
    255 <Billboard position="8000,7500,-1990" amplitude=1 material="Flares/lensflare" colour="0,0.8,0.1">
     257
     258<BlinkingBillboard position="-3000,12000,-6990" frequency=0.4 amplitude=3 material="Flares/lensflare" colour="1,1,0.05">
    256259          <events>
    257260            <visibility>
     
    259262                <events>
    260263                  <trigger>
    261                     <EventListener event="reachedhomeplanet" />
     264                    <EventListener event="boxtrigger" />
    262265                  </trigger>
    263266                </events>
     
    265268            </visibility>
    266269          </events>
    267 </Billboard>
     270</BlinkingBillboard>
    268271
    269272<!-- Billboard Homeplanet END-->
     
    288291                      <WaypointPatrolController alertnessradius=750  team=1 active=false>
    289292                         <waypoints>
    290                         <Model mesh="cube.mesh" scale=10 position="1000,0,0"/>
    291                         <Model mesh="cube.mesh" scale=10 position="500,500,0"/>
    292                         <Model mesh="cube.mesh" scale=10 position="0,1000,0"/>
    293                         <Model mesh="cube.mesh" scale=10 position="-500,500,0"/>
    294                         <Model mesh="cube.mesh" scale=10 position="-1000,0,0"/>
    295                         <Model mesh="cube.mesh" scale=10 position="-500,-500,0"/>
    296                         <Model mesh="cube.mesh" scale=10 position="0,-1000,0"/>
    297                         <Model mesh="cube.mesh" scale=10 position="500,-500,0"/>
     293                        <Model mesh="cube.mesh" scale=0 position="1000,0,0"/>
     294                        <Model mesh="cube.mesh" scale=0 position="500,500,0"/>
     295                        <Model mesh="cube.mesh" scale=0 position="0,1000,0"/>
     296                        <Model mesh="cube.mesh" scale=0 position="-500,500,0"/>
     297                        <Model mesh="cube.mesh" scale=0 position="-1000,0,0"/>
     298                        <Model mesh="cube.mesh" scale=0 position="-500,-500,0"/>
     299                        <Model mesh="cube.mesh" scale=0 position="0,-1000,0"/>
     300                        <Model mesh="cube.mesh" scale=0 position="500,-500,0"/>
    298301                       </waypoints>
    299302                       <events>
     
    318321                      <WaypointPatrolController alertnessradius=750  team=1 active=false>
    319322                         <waypoints>
    320                         <Model mesh="cube.mesh" scale=10 position="0,1000,0"/>
    321                         <Model mesh="cube.mesh" scale=10 position="0,500,500"/>
    322                         <Model mesh="cube.mesh" scale=10 position="0,0,1000"/>
    323                         <Model mesh="cube.mesh" scale=10 position="0,-500,500"/>
    324                         <Model mesh="cube.mesh" scale=10 position="0,-1000,0"/>
    325                         <Model mesh="cube.mesh" scale=10 position="0,-500,-500"/>
    326                         <Model mesh="cube.mesh" scale=10 position="0,0,-1000"/>
    327                         <Model mesh="cube.mesh" scale=10 position="0,500,-500"/>
     323                        <Model mesh="cube.mesh" scale=0 position="0,1000,0"/>
     324                        <Model mesh="cube.mesh" scale=0 position="0,500,500"/>
     325                        <Model mesh="cube.mesh" scale=0 position="0,0,1000"/>
     326                        <Model mesh="cube.mesh" scale=0 position="0,-500,500"/>
     327                        <Model mesh="cube.mesh" scale=0 position="0,-1000,0"/>
     328                        <Model mesh="cube.mesh" scale=0 position="0,-500,-500"/>
     329                        <Model mesh="cube.mesh" scale=0 position="0,0,-1000"/>
     330                        <Model mesh="cube.mesh" scale=0 position="0,500,-500"/>
    328331                       </waypoints>
    329332                       <events>
     
    348351                      <WaypointPatrolController alertnessradius=750  team=1 active=false>
    349352                         <waypoints>
    350                         <Model mesh="cube.mesh" scale=10 position="1000,0,0"/>
    351                         <Model mesh="cube.mesh" scale=10 position="500,0,500"/>
    352                         <Model mesh="cube.mesh" scale=10 position="0,0,1000"/>
    353                         <Model mesh="cube.mesh" scale=10 position="-500,0,500"/>
    354                         <Model mesh="cube.mesh" scale=10 position="-1000,0,0"/>
    355                         <Model mesh="cube.mesh" scale=10 position="-500,0,-500"/>
    356                         <Model mesh="cube.mesh" scale=10 position="0,0,-1000"/>
    357                         <Model mesh="cube.mesh" scale=10 position="500,0,-500"/>
     353                        <Model mesh="cube.mesh" scale=0 position="1000,0,0"/>
     354                        <Model mesh="cube.mesh" scale=0 position="500,0,500"/>
     355                        <Model mesh="cube.mesh" scale=0 position="0,0,1000"/>
     356                        <Model mesh="cube.mesh" scale=0 position="-500,0,500"/>
     357                        <Model mesh="cube.mesh" scale=0 position="-1000,0,0"/>
     358                        <Model mesh="cube.mesh" scale=0 position="-500,0,-500"/>
     359                        <Model mesh="cube.mesh" scale=0 position="0,0,-1000"/>
     360                        <Model mesh="cube.mesh" scale=0 position="500,0,-500"/>
    358361                       </waypoints>
    359362                       <events>
     
    497500    </SimpleNotification>
    498501
    499     <DistanceTrigger name="PickedUpAlly" position="-2580,300,-209" target="Pawn" distance=30 stayActive="true" delay=0.1/>
     502    <DistanceTrigger name="PickedUpAlly" position="-120,0,0" target="Pawn" distance=30 stayActive="true" delay=0.1/>
    500503    <SimpleNotification message="Hi .... are you an enemy?">
    501504        <events>
     
    506509    </SimpleNotification>
    507510
    508     <DistanceTrigger name="PickedUpAlly2" position="-2580,300,-209" target="Pawn" distance=30 stayActive="true" delay=4.4/>
     511    <DistanceTrigger name="PickedUpAlly2" position="-120,0,0" target="Pawn" distance=30 stayActive="true" delay=4.4/>
    509512    <SimpleNotification message="Shoot the enemies staying on the planet">
    510513        <events>
     
    567570        scale=math.random(20,70)
    568571        ?>
    569         <MovableEntity collisionType=kinematic linearDamping=0.8 angularDamping=0 mass="<?lua print(scale * 5) ?>" position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" rotationaxis="<?lua print(math.random()) ?>,<?lua print(math.random()) ?>,<?lua print(math.random()) ?>" rotationrate="<?lua print(math.random()*15) ?>">
     572        <MovableEntity collisionType=kinematic linearDamping=0.8 angularDamping=0 mass="<?lua print(scale * 5) ?>" position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" rotationaxis="<?lua print(math.random()) ?>,<?lua print(math.random()) ?>,<?lua print(math.random()) ?>" rotationrate="<?lua print(math.random()*15) ?>"       collisiondamage = 0.01
     573      enablecollisiondamage = true >
    570574        <attached>
    571575                <Model scale="<?lua print(scale) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false/>
     
    587591                z=math.random(-8000,8000)
    588592        ?>
    589         <MovableEntity collisionType=kinematic linearDamping=0.8 angularDamping=0 mass="<?lua print(scale * 5) ?>" position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" rotationaxis="<?lua print(math.random()) ?>,<?lua print(math.random()) ?>,<?lua print(math.random()) ?>" rotationrate="<?lua print(math.random()*15) ?>" >
     593        <MovableEntity collisionType=kinematic linearDamping=0.8 angularDamping=0 mass="<?lua print(scale * 5) ?>" position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" rotationaxis="<?lua print(math.random()) ?>,<?lua print(math.random()) ?>,<?lua print(math.random()) ?>" rotationrate="<?lua print(math.random()*15) ?>"      collisiondamage = 0.01
     594      enablecollisiondamage = true  >
    590595        <attached>
    591596                <Model scale="<?lua print(math.random(20,70)) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false/>
     
    600605
    601606                                                        <!--Asteroid Elipse-->
     607
     608    <?lua
     609        dofile("includes/asteroidField.lua")
     610        asteroidBelt(-3000,12000,-10000, 30, 0, 30, 30, 50, 7190, 7800, 250, 1)
     611    ?>
     612
     613    <?lua
     614        dofile("includes/asteroidField.lua")
     615        asteroidBelt(-3000,12000,-10000, 30, 0, 30, 30, 50, 14000, 15000, 350, 1)
     616    ?>
     617
     618
     619
    602620    <?lua
    603621    max = 20
     
    640658
    641659                                                        <!--Planet-->
    642     <Planet position="15000,0,0" scale=1500 pitch=-90 mesh="planets/sol.mesh" atmosphere="atmosphere1" rotationaxis="8,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f />
     660    <Planet position="15000,0,0" scale=1500 pitch=-90 mesh="planets/sol.mesh" atmosphere="atmosphere1" rotationaxis="8,1,0" rotationrate="1" atmospheresize=0 imagesize=1024.0f />
    643661    <StaticEntity position="2600,0,0" collisionType=static>
    644662        <collisionShapes>
     
    646664        </collisionShapes>
    647665    </StaticEntity>
     666    <Billboard position="15100,0,0" material="Flares/backlightflare" colour="0.7,0.4,0.1" scale=600 />
    648667                                                        <!--Planet END-->
    649668
     
    676695                                                        <!-- Homeplanet -->
    677696    <Planet
    678       position="8000,7500,-5000"
     697      position="-3000,12000,-10000"
    679698      scale="3000"
    680699      collisionType="dynamic"
     
    697716      </collisionShapes>
    698717    </Planet>
    699 
     718                                                        <!-- Homeplanet  END-->
     719
     720                                                        <!-- Anotherplanet -->
     721    <Planet
     722      position="-20000,6000,7000"
     723      scale="3000"
     724      collisionType="dynamic"
     725      linearDamping="0.8"
     726      angularDamping="0"
     727      mass="5000000000000"
     728      pitch="0"
     729      mesh="planets/ganymede.mesh"
     730      atmosphere="atmosphere1"
     731      rotationaxis="0,0,0"
     732      rotationrate="0.0"
     733      atmospheresize="80.0f"
     734      imagesize="1024.0f"
     735    >
     736      <collisionShapes>
     737        <SphereCollisionShape radius="3000" position="0,0,0" />
     738      </collisionShapes>
     739    </Planet>
     740
     741    <?lua
     742        dofile("includes/asteroidField.lua")
     743        asteroidBelt(-20000,6000,7000, 30, 0, 30, 30, 50, 7190, 7800, 250, 1)
     744    ?>
     745                                                        <!-- Anotherplanet  END-->
     746
     747                                                        <!-- Homeplanet Architecture-->
     748<!-- -3000,12000,-6990  = Billboard position-->
     749
     750     <!--       <Model  position="-3070,12070,-6990" yaw="90" pitch="-90" roll="0" scale="70" mesh="asteroid_ice.mesh" >
     751      <collisionShapes>
     752        <SphereCollisionShape radius="70" position="0,0,0" />
     753      </collisionShapes>
     754        </Model>
     755-->
     756
     757        <MovableEntity collisionType=kinematic linearDamping=0.8 angularDamping=0 mass="500" position="-2900,12080,-6990" rotationaxis="0,0,0" rotationrate="0"       collisiondamage = 0.01  enablecollisiondamage = true >
     758        <attached>
     759                <Model scale="70" mesh="asteroid_ice.mesh"  shadow=false/>
     760         </attached>
     761         <collisionShapes>
     762                <SphereCollisionShape radius="70" />
     763        </collisionShapes>
     764        </MovableEntity>
     765
     766        <MovableEntity collisionType=kinematic linearDamping=0.8 angularDamping=5 mass="500" position="-3200,11950,-6990" rotationaxis="0,0,0" rotationrate="0"       collisiondamage = 0.01  enablecollisiondamage = true >
     767        <attached>
     768                <Model scale="90" mesh="asteroid_ice.mesh"  shadow=false/>
     769         </attached>
     770         <collisionShapes>
     771                <SphereCollisionShape radius="90" />
     772        </collisionShapes>
     773        </MovableEntity>
     774
     775                                                        <!-- Homeplanet Architecture END-->
    700776
    701777
Note: See TracChangeset for help on using the changeset viewer.