Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 11, 2010, 2:42:47 PM (14 years ago)
Author:
dafrick
Message:

Adding new level notifications.oxw, to "showcase", or at this stage rather "test" Notifications.
Restoring tutorial.oxw to its old state, before it was hijacked by me for testing.

Extending Script class. Now also normal orxonox code can be executed with it, the execution of code can be triggered with Triggers (obviously) and cod can also executed on load.
I needed this to load the NotificationLayer in levels where it is needed.
Also inserted a Script that loads the NotificationQueue to display Notifications in all levels it was needed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/data/levels/tutorial.oxw

    r7403 r7404  
    1919  >
    2020
    21       <CommandNotification preMessage="Move '" postMessage="' to look left." command="scale 1 rotateYaw">
    22         <events>
    23             <trigger>
    24                 <DistanceTrigger name=trigger position="0,0,-100" distance=10 target="Pawn" />
    25             </trigger>
    26         </events>
    27     </CommandNotification>
    28     <Billboard position="0,0,-100" colour="1.0,1.0,0" material="Examples/Flare" />
    2921
    30     <SimpleNotification message="Awesome!!!">
    31         <events>
    32             <trigger>
    33                 <DistanceTrigger name=trigger position="0,0,100" distance=10 target="Pawn" />
    34             </trigger>
    35         </events>
    36     </SimpleNotification>
    37     <Billboard position="0,0,100" colour="1.0,0,1.0" material="Examples/Flare" />
    38  
    3922
     23
     24<Drone name="meineDrohne" primarythrust="80" auxilarythrust="10" rotationthrust="10" mass= "50" linearDamping = "0.9" angularDamping = "0.7">
     25  <attached>
     26    <Model scale="1" mesh="drone.mesh"/>
     27  </attached>
     28  <collisionShapes>
     29    <BoxCollisionShape position="0,0,0"      halfExtents="10, 10, 10" />
     30  </collisionShapes>
     31</Drone>
     32
     33    <Drone name="meineDrohne" primarythrust="80" auxilarythrust="10" rotationthrust="10" mass= "50" linearDamping = "0.9" angularDamping = "0.7">
     34      <attached>
     35        <Model scale="1" mesh="rocket.mesh"/>
     36      </attached>
     37      <collisionShapes>
     38        <BoxCollisionShape position="0,0,0"      halfExtents="10, 10, 10" />
     39      </collisionShapes>
     40    </Drone>
    4041
    4142    <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" />
    4243
     44    <Model mesh="hs-w01.mesh" scale=10 position="0,0,-100" />
     45    <Model mesh="hs-w01s.mesh" scale=10 position="0,0,-100" />
    4346
    4447    <?lua
     
    4851    <?lua end ?>
    4952
     53    <GlobalShader compositor="Bloom" visible=false>
     54      <events>
     55        <visibility>
     56          <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true />
     57        </visibility>
     58      </events>
     59    </GlobalShader>
     60    <Model position="0,0,0" scale=8 mesh="ast1.mesh" />
     61    <StaticEntity position="0,0,0" collisionType=static>
     62      <collisionShapes>
     63        <SphereCollisionShape radius="20" />
     64      </collisionShapes>
     65    </StaticEntity>
     66
     67<!--
     68    <?lua
     69      for i = 1, 70, 1 do
     70    ?>
     71      <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 1000 + 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
     72        <attached>
     73          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
     74        </attached>
     75      </MovableEntity>
     76      <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * -1000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
     77        <attached>
     78          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
     79        </attached>
     80      </MovableEntity>
     81
     82      <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 1000 + 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
     83        <attached>
     84          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
     85        </attached>
     86      </MovableEntity>
     87      <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * -1000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
     88        <attached>
     89          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
     90        </attached>
     91      </MovableEntity>
     92
     93      <MovableEntity position="<?lua print(math.random() * 1000 + 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
     94        <attached>
     95          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
     96        </attached>
     97      </MovableEntity>
     98      <MovableEntity position="<?lua print(math.random() * -1000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
     99        <attached>
     100          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
     101        </attached>
     102      </MovableEntity>
     103    <?lua end ?>
     104-->
    50105
    51106  </Scene>
Note: See TracChangeset for help on using the changeset viewer.