Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/media/levels/gametype_underattack.oxw @ 5517

Last change on this file since 5517 was 5517, checked in by mockm, 15 years ago

new levelfile for gametype UnderAttack

File size: 4.6 KB
Line 
1<?lua
2  include("levels/hudtemplates3.oxw")
3  include("overlay/stats.oxo")
4  include("levels/spaceshiptemplates_presentation.oxw")
5?>
6
7<Level
8 name         = "UnderAttack testing"
9 description  = "A simple testlevel"
10 gametype     = UnderAttack
11>
12  <Scene
13   ambientlight = "0.5, 0.5, 0.5"
14   skybox       = "Orxonox/skypanoramagen1"
15  >
16    <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" />
17
18
19        <Destroyer
20            position          = "100,150,0"
21            collisionType     = dynamic
22            mass              = 1000
23            velocity          = "-35,0,0"
24            angularDamping    = 0.9999999
25            health            = 10000
26            maxhealth         = 10000
27            initialhealth     = 10000
28        >
29
30          <attached>
31            <TeamSpawnPoint team=1 position="150,0,7" direction="-1,0,0" roll=90 yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />           
32            <TeamSpawnPoint team=1 position="0,0,7" lookat="-1,0,0" roll="90"  yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />           
33            <TeamSpawnPoint team=1 position="-50,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />           
34            <TeamSpawnPoint team=1 position="100,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />           
35            <TeamSpawnPoint team=1 position="50,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
36            <?lua
37            for i = 1, 100, 1
38            do ?>
39            <TeamSpawnPoint team=0 position="<?lua print((math.random() * 500 + 500) * (math.floor(math.random() + 0.5) * 2 - 1)) ?>,<?lua print((math.random() * 500 + 500) * (math.floor(math.random() + 0.5) * 2 - 1)) ?>,<?lua print((math.random() * 500 + 500) * (math.floor(math.random() + 0.5) * 2 - 1)) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
40            <!--more spawnpoints for team1-->             
41            <!--<TeamSpawnPoint team=1 position="<?lua print((math.random() * 500 + 500)) ?>,<?lua print((math.random() * 500 + 500) ) ?>,<?lua print((math.random() * 500 + 500)) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
42            <?lua end ?>-->
43           
44           
45            <Model mesh="Carrier.mesh" scale="5" />
46            <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 7.6, 0, 6" colour="0.2, 0.65, 1.0, 1.0" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
47            <?lua for i=0,8,1 do ?>
48            <BlinkingBillboard position="<?lua print(200-270/8*i)?> ,15,2" material="Examples/Flare" colour="1.0, 0.5, 0.3" phase=<?lua print(-360/8*i)?> amplitude=0.1 frequency=0.5 quadratic=1 />
49            <BlinkingBillboard position="<?lua print(200-270/8*i)?>,-15,2" material="Examples/Flare" colour="1.0, 0.5, 0.3" phase=<?lua print(-360/8*i)?> amplitude=0.1 frequency=0.5 quadratic=1 />
50            <?lua end ?>
51            <Backlight scale=1 position=" 169, 75, -15" colour="1, 0.85, 0.5, 0.5" width=40 length=1000 lifetime=5 elements=15 trailmaterial="Trail/backlighttrail"  material="Examples/Flare" />
52            <Backlight scale=1 position=" 169, -75, -15" colour="1, 0.85, 0.5, 0.5" width=40 length=1000 lifetime=5 elements=15 trailmaterial="Trail/backlighttrail"  material="Examples/Flare" />
53           </attached>     
54            <collisionShapes>
55                <BoxCollisionShape position="70,0,-25"      halfExtents="150, 50, 25" />
56                <BoxCollisionShape position="95,75,-16"     halfExtents="70, 10, 12" />
57                <BoxCollisionShape position="95,-75,-16"    halfExtents="70, 10, 12" />
58                <BoxCollisionShape position="77,47,30"      halfExtents="110, 2, 30" />
59                <BoxCollisionShape position="77,-47,30"     halfExtents="110, 2, 30" />
60                <BoxCollisionShape position="77,0,50"       halfExtents="110, 45, 6" />
61                <BoxCollisionShape position="167,0,70"      halfExtents="17, 20, 20" />
62            </collisionShapes>
63        </Destroyer>
64
65    <GlobalShader compositor="Bloom" visible=false>
66      <events>
67        <visibility>
68          <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true />
69        </visibility>
70      </events>
71    </GlobalShader>
72
73    <Model position="0,0,0" scale=8 mesh="ast1.mesh" />
74    <StaticEntity position="0,0,0" collisionType=static>
75      <collisionShapes>
76        <SphereCollisionShape radius="20" />
77      </collisionShapes>
78    </StaticEntity>
79  </Scene>
80</Level>
Note: See TracBrowser for help on using the repository browser.