Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/release2012/data/levels/underAttack.oxw @ 10256

Last change on this file since 10256 was 9372, checked in by jo, 12 years ago

Small improvements; adjusting values for better playfeeling. An irregular error occured concerning the SpaceBoundaries. Hopefully attaching the SpaceBoundary to the Transporter solves the problem.

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