Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/gametype_underattack.oxw @ 5781

Last change on this file since 5781 was 5781, checked in by rgrieder, 15 years ago

Reverted trunk again. We might want to find a way to delete these revisions again (x3n's changes are still available as diff in the commit mails).

  • Property svn:eol-style set to native
File size: 6.4 KB
Line 
1<?lua
2  include("hudtemplates3.oxo")
3  include("stats.oxo")
4  include("underattackhud.oxo")
5  include("templates/spaceship_assff.oxt")
6?>
7
8<Level
9 name         = "UnderAttack testing"
10 description  = "A simple testlevel"
11 gametype     = UnderAttack
12>
13  <Scene
14   ambientlight = "0.5, 0.5, 0.5"
15   skybox       = "Orxonox/skypanoramagen1"
16  >
17    <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" />
18
19    <?lua for i = 1, 30, 1 do ?>
20        <MovableEntity
21            position="<?lua print(math.random() * 10000 - 5000) ?>, <?lua print(math.random() * 10000 - 5000) ?>, <?lua print(math.random() * 10000 - 5000) ?>"
22            velocity="<?lua print(math.random() * 500 - 250) ?>, <?lua print(math.random() * 500 - 250) ?>, <?lua print(math.random() * 500 - 250) ?>"
23        >
24            <attached>
25                <Model
26                    <?lua x = math.random() * 150 + 30 ?>
27                    scale="<?lua print(x) ?>"
28                    mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh"
29                    position="0,0,0"
30                />
31            </attached>
32            <collisionShapes>
33                <SphereCollisionShape radius=<?lua print(x) ?> position="0,0,0" />
34            </collisionShapes>
35        </MovableEntity>
36    <?lua end ?>
37
38    <Destroyer
39        position          = "100,150,0"
40        collisionType     = dynamic
41        mass              = 100000
42        velocity          = "-35,0,0"
43        angularDamping    = 0.9999999
44        health            = 10000
45        maxhealth         = 10000
46        initialhealth     = 10000
47    >
48
49        <attached>
50            <TeamSpawnPoint team=1 position="150,0,7" direction="-1,0,0" roll=90 yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
51            <TeamSpawnPoint team=1 position="0,0,7" lookat="-1,0,0" roll="90"  yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
52            <TeamSpawnPoint team=1 position="-50,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
53            <TeamSpawnPoint team=1 position="100,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
54            <TeamSpawnPoint team=1 position="50,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
55            <?lua for i = 1, 100, 1 do ?>
56                <TeamSpawnPoint
57                    team=0
58                    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)) ?>"
59                    lookat="0,0,0"
60                    spawnclass=SpaceShip
61                    pawndesign=spaceshipassff
62                />
63
64                <!--more spawnpoints for team1-->
65                <!--
66                <TeamSpawnPoint
67                    team=1 position="<?lua print((math.random() * 500 + 500)) ?>,<?lua print((math.random() * 500 + 500) ) ?>,<?lua print((math.random() * 500 + 500)) ?>"
68                    lookat="0,0,0"
69                    spawnclass=SpaceShip
70                    pawndesign=spaceshipassff
71                />-->
72            <?lua end ?>
73
74            <Model mesh="Carrier.mesh" scale="5" />
75            <Backlight
76                mainstate=activity
77                active=false
78                scale=0.4
79                name=bltest
80                position=" 7.6, 0, 6"
81                colour="0.2, 0.65, 1.0, 1.0"
82                width=15
83                length=1500
84                lifetime=2
85                elements=50
86                trailmaterial="Trail/backlighttrail"
87                turnontime=1
88                turnofftime=1
89                material="Flares/ThrusterFlare1"
90            />
91            <?lua for i=0,8,1 do ?>
92                <BlinkingBillboard
93                    position="<?lua print(200-270/8*i)?> ,15,2"
94                    material="Examples/Flare"
95                    colour="1.0, 0.5, 0.3"
96                    phase=<?lua print(-360/8*i)?>
97                    amplitude=0.1
98                    frequency=0.5
99                    quadratic=1
100                />
101
102                <BlinkingBillboard
103                    position="<?lua print(200-270/8*i)?>,-15,2"
104                    material="Examples/Flare"
105                    colour="1.0, 0.5, 0.3"
106                    phase=<?lua print(-360/8*i)?>
107                    amplitude=0.1
108                    frequency=0.5
109                    quadratic=1
110                />
111            <?lua end ?>
112
113            <Backlight
114                scale=1
115                position=" 169, 75, -15"
116                colour="1, 0.85, 0.5, 0.5"
117                width=40
118                length=1000
119                lifetime=5
120                elements=15
121                trailmaterial="Trail/backlighttrail"
122                material="Examples/Flare"
123            />
124            <Backlight
125                scale=1
126                position=" 169, -75, -15"
127                colour="1, 0.85, 0.5, 0.5"
128                width=40
129                length=1000
130                lifetime=5
131                elements=15
132                trailmaterial="Trail/backlighttrail"
133                material="Examples/Flare" />
134        </attached>
135        <collisionShapes>
136            <BoxCollisionShape position="70,0,-25"      halfExtents="150, 50, 25" />
137            <BoxCollisionShape position="95,75,-16"     halfExtents="70, 10, 12" />
138            <BoxCollisionShape position="95,-75,-16"    halfExtents="70, 10, 12" />
139            <BoxCollisionShape position="77,47,30"      halfExtents="110, 2, 30" />
140            <BoxCollisionShape position="77,-47,30"     halfExtents="110, 2, 30" />
141            <BoxCollisionShape position="77,0,50"       halfExtents="110, 45, 6" />
142            <BoxCollisionShape position="167,0,70"      halfExtents="17, 20, 20" />
143        </collisionShapes>
144    </Destroyer>
145
146    <GlobalShader compositor="Bloom" visible=false>
147      <events>
148        <visibility>
149          <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true />
150        </visibility>
151      </events>
152    </GlobalShader>
153
154    <Model position="0,0,0" scale=8 mesh="ast1.mesh" />
155    <StaticEntity position="0,0,0" collisionType=static>
156      <collisionShapes>
157        <SphereCollisionShape radius="20" />
158      </collisionShapes>
159    </StaticEntity>
160  </Scene>
161</Level>
Note: See TracBrowser for help on using the repository browser.