| [9939] | 1 | <!----> | 
|---|
 | 2 |  | 
|---|
| [9016] | 3 | <LevelInfo | 
|---|
 | 4 |  name = "Under Attack" | 
|---|
 | 5 |  description = "Fight the transporter." | 
|---|
 | 6 |  tags = "gametype" | 
|---|
 | 7 |  screenshot = "underattack.png" | 
|---|
 | 8 | /> | 
|---|
 | 9 |  | 
|---|
| [5474] | 10 | <?lua | 
|---|
| [7679] | 11 |   include("HUDTemplates3.oxo") | 
|---|
| [5654] | 12 |   include("stats.oxo") | 
|---|
| [7679] | 13 |   include("templates/spaceshipAssff.oxt") | 
|---|
| [10297] | 14 |   include("templates/standardTurret.oxt") | 
|---|
| [7679] | 15 |   include("templates/lodInformation.oxt") | 
|---|
| [5474] | 16 | ?> | 
|---|
 | 17 |  | 
|---|
 | 18 | <Level | 
|---|
| [9016] | 19 |  gametype = "UnderAttack" | 
|---|
| [5474] | 20 | > | 
|---|
| [7163] | 21 |   <templates> | 
|---|
 | 22 |     <Template link=lodtemplate_default /> | 
|---|
 | 23 |   </templates> | 
|---|
| [8706] | 24 |   <?lua include("includes/notifications.oxi") ?> | 
|---|
| [9939] | 25 |   <WorldAmbientSound source="Jupiter.ogg" looping="true" playOnLoad="true" /> | 
|---|
| [7163] | 26 |  | 
|---|
| [5474] | 27 |   <Scene | 
|---|
 | 28 |    ambientlight = "0.5, 0.5, 0.5" | 
|---|
| [9348] | 29 |    skybox       = "Orxonox/skyBoxBasic" | 
|---|
| [5474] | 30 |   > | 
|---|
 | 31 |     <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" /> | 
|---|
 | 32 |  | 
|---|
| [5518] | 33 |     <?lua for i = 1, 30, 1 do ?> | 
|---|
| [7163] | 34 |       <MovableEntity | 
|---|
 | 35 |           position="<?lua print(math.random() * 10000 - 5000) ?>, <?lua print(math.random() * 10000 - 5000) ?>, <?lua print(math.random() * 10000 - 5000) ?>" | 
|---|
 | 36 |           velocity="<?lua print(math.random() * 500 - 250) ?>, <?lua print(math.random() * 500 - 250) ?>, <?lua print(math.random() * 500 - 250) ?>" | 
|---|
 | 37 |       > | 
|---|
 | 38 |         <attached> | 
|---|
 | 39 |           <Model | 
|---|
 | 40 |               <?lua x = math.random() * 150 + 30 ?> | 
|---|
 | 41 |               scale="<?lua print(x) ?>" | 
|---|
 | 42 |               mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" | 
|---|
 | 43 |               position="0,0,0" | 
|---|
 | 44 |           /> | 
|---|
 | 45 |         </attached> | 
|---|
 | 46 |           <collisionShapes> | 
|---|
| [8079] | 47 |             <SphereCollisionShape radius="<?lua print(x) ?>" position="0,0,0" /> | 
|---|
| [7163] | 48 |           </collisionShapes> | 
|---|
 | 49 |       </MovableEntity> | 
|---|
| [5518] | 50 |     <?lua end ?> | 
|---|
| [5528] | 51 |  | 
|---|
| [5518] | 52 |     <Destroyer | 
|---|
| [7163] | 53 |       position          = "100,150,0" | 
|---|
 | 54 |       collisionType     = dynamic | 
|---|
 | 55 |       mass              = 100000 | 
|---|
 | 56 |       velocity          = "-35,0,0" | 
|---|
 | 57 |       angularDamping    = 0.9999999 | 
|---|
 | 58 |       health            = 10000 | 
|---|
| [9941] | 59 |       maxhealth         = 10000000 | 
|---|
| [7163] | 60 |       initialhealth     = 10000 | 
|---|
| [9257] | 61 |       radarname         = "Transporter" | 
|---|
| [10297] | 62 |       team              = 1 | 
|---|
| [5518] | 63 |     > | 
|---|
| [5517] | 64 |  | 
|---|
| [7163] | 65 |       <attached> | 
|---|
| [9941] | 66 |         <SpaceBoundaries position="1,2,3" maxDistance="1600" warnDistance="300" showDistance="300" reactionMode="1" healthDecrease="5.0" /> | 
|---|
 | 67 |         <TeamSpawnPoint team=1 position="200,0,20" direction="-1,0,0" roll=90 yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff /> | 
|---|
 | 68 |         <TeamSpawnPoint team=1 position="50,0,100" lookat="-1,0,0" roll="90"  yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff /> | 
|---|
 | 69 |         <TeamSpawnPoint team=1 position="-200,0,-60" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff /> | 
|---|
 | 70 |         <TeamSpawnPoint team=1 position="100,0,-50" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff /> | 
|---|
 | 71 |         <TeamSpawnPoint team=1 position="400,0,20" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff /> | 
|---|
| [7163] | 72 |         <?lua for i = 1, 100, 1 do ?> | 
|---|
 | 73 |           <TeamSpawnPoint | 
|---|
 | 74 |             team=0 | 
|---|
| [9941] | 75 |             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] | 76 |             lookat="0,0,0" | 
|---|
 | 77 |             spawnclass=SpaceShip | 
|---|
 | 78 |             pawndesign=spaceshipassff | 
|---|
 | 79 |           /> | 
|---|
| [5518] | 80 |  | 
|---|
| [7163] | 81 |           <!--more spawnpoints for team1--> | 
|---|
 | 82 |           <!-- | 
|---|
 | 83 |           <TeamSpawnPoint | 
|---|
 | 84 |             team=1 position="<?lua print((math.random() * 500 + 500)) ?>,<?lua print((math.random() * 500 + 500) ) ?>,<?lua print((math.random() * 500 + 500)) ?>" | 
|---|
 | 85 |             lookat="0,0,0" | 
|---|
 | 86 |             spawnclass=SpaceShip | 
|---|
 | 87 |             pawndesign=spaceshipassff | 
|---|
 | 88 |           />--> | 
|---|
 | 89 |         <?lua end ?> | 
|---|
| [5528] | 90 |  | 
|---|
| [7163] | 91 |         <Model mesh="Carrier.mesh" scale="5" /> | 
|---|
 | 92 |         <Backlight | 
|---|
 | 93 |           mainstate=activity | 
|---|
 | 94 |           active=false | 
|---|
 | 95 |           scale=0.4 | 
|---|
 | 96 |           name=bltest | 
|---|
 | 97 |           position=" 7.6, 0, 6" | 
|---|
 | 98 |           colour="0.2, 0.65, 1.0, 1.0" | 
|---|
 | 99 |           width=15 | 
|---|
 | 100 |           length=1500 | 
|---|
 | 101 |           lifetime=2 | 
|---|
 | 102 |           elements=50 | 
|---|
 | 103 |           trailmaterial="Trail/backlighttrail" | 
|---|
 | 104 |           turnontime=1 | 
|---|
 | 105 |           turnofftime=1 | 
|---|
 | 106 |           material="Flares/ThrusterFlare1" | 
|---|
 | 107 |         /> | 
|---|
 | 108 |         <?lua for i=0,8,1 do ?> | 
|---|
 | 109 |           <BlinkingBillboard | 
|---|
 | 110 |             position="<?lua print(200-270/8*i)?> ,15,2" | 
|---|
 | 111 |             material="Examples/Flare" | 
|---|
 | 112 |             colour="1.0, 0.5, 0.3" | 
|---|
| [8079] | 113 |             phase="<?lua print(-360/8*i)?>" | 
|---|
| [7163] | 114 |             amplitude=0.1 | 
|---|
 | 115 |             frequency=0.5 | 
|---|
 | 116 |             quadratic=1 | 
|---|
 | 117 |           /> | 
|---|
| [5518] | 118 |  | 
|---|
| [7163] | 119 |           <BlinkingBillboard | 
|---|
 | 120 |             position="<?lua print(200-270/8*i)?>,-15,2" | 
|---|
 | 121 |             material="Examples/Flare" | 
|---|
 | 122 |             colour="1.0, 0.5, 0.3" | 
|---|
| [8079] | 123 |             phase="<?lua print(-360/8*i)?>" | 
|---|
| [7163] | 124 |             amplitude=0.1 | 
|---|
 | 125 |             frequency=0.5 | 
|---|
 | 126 |             quadratic=1 | 
|---|
 | 127 |           /> | 
|---|
 | 128 |         <?lua end ?> | 
|---|
| [5487] | 129 |  | 
|---|
| [7163] | 130 |         <Backlight | 
|---|
 | 131 |           scale=1 | 
|---|
 | 132 |           position=" 169, 75, -15" | 
|---|
 | 133 |           colour="1, 0.85, 0.5, 0.5" | 
|---|
 | 134 |           width=40 | 
|---|
 | 135 |           length=1000 | 
|---|
 | 136 |           lifetime=5 | 
|---|
 | 137 |           elements=15 | 
|---|
 | 138 |           trailmaterial="Trail/backlighttrail" | 
|---|
 | 139 |           material="Examples/Flare" | 
|---|
 | 140 |         /> | 
|---|
 | 141 |         <Backlight | 
|---|
 | 142 |           scale=1 | 
|---|
 | 143 |           position=" 169, -75, -15" | 
|---|
 | 144 |           colour="1, 0.85, 0.5, 0.5" | 
|---|
 | 145 |           width=40 | 
|---|
 | 146 |           length=1000 | 
|---|
 | 147 |           lifetime=5 | 
|---|
 | 148 |           elements=15 | 
|---|
 | 149 |           trailmaterial="Trail/backlighttrail" | 
|---|
 | 150 |           material="Examples/Flare" /> | 
|---|
| [10297] | 151 |         <Turret position="170,47,35" pitch="90" scale="0.5"> | 
|---|
 | 152 |           <templates> | 
|---|
 | 153 |             <Template link=standardturret /> | 
|---|
 | 154 |           </templates> | 
|---|
 | 155 |         </Turret> | 
|---|
 | 156 |         <Turret position="170,-47,35" pitch="-90" scale="0.5"> | 
|---|
 | 157 |           <templates> | 
|---|
 | 158 |             <Template link=standardturret /> | 
|---|
 | 159 |           </templates> | 
|---|
 | 160 |         </Turret> | 
|---|
 | 161 |         <Turret position="167,0,90" pitch="180" scale="0.5"> | 
|---|
 | 162 |           <templates> | 
|---|
 | 163 |             <Template link=standardturret /> | 
|---|
 | 164 |           </templates> | 
|---|
 | 165 |         </Turret> | 
|---|
 | 166 |         <Turret position="140,85,-15" pitch="90" scale="0.5"> | 
|---|
 | 167 |           <templates> | 
|---|
 | 168 |             <Template link=standardturret /> | 
|---|
 | 169 |           </templates> | 
|---|
 | 170 |         </Turret> | 
|---|
 | 171 |         <Turret position="70,85,-15" pitch="90" scale="0.5"> | 
|---|
 | 172 |           <templates> | 
|---|
 | 173 |             <Template link=standardturret /> | 
|---|
 | 174 |           </templates> | 
|---|
 | 175 |         </Turret> | 
|---|
 | 176 |         <Turret position="105,75,-3" pitch="180" scale="0.5"> | 
|---|
 | 177 |           <templates> | 
|---|
 | 178 |             <Template link=standardturret /> | 
|---|
 | 179 |           </templates> | 
|---|
 | 180 |         </Turret> | 
|---|
 | 181 |         <Turret position="25,75,-15" yaw="90" scale="0.5"> | 
|---|
 | 182 |           <templates> | 
|---|
 | 183 |             <Template link=standardturret /> | 
|---|
 | 184 |           </templates> | 
|---|
 | 185 |         </Turret> | 
|---|
 | 186 |         <Turret position="140,-85,-15" pitch="-90" scale="0.5"> | 
|---|
 | 187 |           <templates> | 
|---|
 | 188 |             <Template link=standardturret /> | 
|---|
 | 189 |           </templates> | 
|---|
 | 190 |         </Turret> | 
|---|
 | 191 |         <Turret position="70,-85,-15" pitch="-90" scale="0.5"> | 
|---|
 | 192 |           <templates> | 
|---|
 | 193 |             <Template link=standardturret /> | 
|---|
 | 194 |           </templates> | 
|---|
 | 195 |         </Turret> | 
|---|
 | 196 |         <Turret position="105,-75,-3" pitch="180" scale="0.5"> | 
|---|
 | 197 |           <templates> | 
|---|
 | 198 |             <Template link=standardturret /> | 
|---|
 | 199 |           </templates> | 
|---|
 | 200 |         </Turret> | 
|---|
 | 201 |         <Turret position="25,-75,-15" yaw="90" scale="0.5"> | 
|---|
 | 202 |           <templates> | 
|---|
 | 203 |             <Template link=standardturret /> | 
|---|
 | 204 |           </templates> | 
|---|
 | 205 |         </Turret> | 
|---|
 | 206 |         <Turret position="203,-35,-15" yaw="-90" scale="0.5"> | 
|---|
 | 207 |           <templates> | 
|---|
 | 208 |             <Template link=standardturret /> | 
|---|
 | 209 |           </templates> | 
|---|
 | 210 |         </Turret> | 
|---|
 | 211 |         <Turret position="203,35,-15" yaw="-90" scale="0.5"> | 
|---|
 | 212 |           <templates> | 
|---|
 | 213 |             <Template link=standardturret /> | 
|---|
 | 214 |           </templates> | 
|---|
 | 215 |         </Turret> | 
|---|
 | 216 |         <Turret position="-55,42,-15" yaw="90" pitch="73" scale="0.5"> | 
|---|
 | 217 |           <templates> | 
|---|
 | 218 |             <Template link=standardturret /> | 
|---|
 | 219 |           </templates> | 
|---|
 | 220 |         </Turret> | 
|---|
 | 221 |         <Turret position="-55,-42,-15" yaw="90" pitch="-73" scale="0.5"> | 
|---|
 | 222 |           <templates> | 
|---|
 | 223 |             <Template link=standardturret /> | 
|---|
 | 224 |           </templates> | 
|---|
 | 225 |         </Turret> | 
|---|
| [7163] | 226 |       </attached> | 
|---|
 | 227 |       <collisionShapes> | 
|---|
 | 228 |         <BoxCollisionShape position="70,0,-25"      halfExtents="150, 50, 25" /> | 
|---|
 | 229 |         <BoxCollisionShape position="95,75,-16"     halfExtents="70, 10, 12" /> | 
|---|
 | 230 |         <BoxCollisionShape position="95,-75,-16"    halfExtents="70, 10, 12" /> | 
|---|
 | 231 |         <BoxCollisionShape position="77,47,30"      halfExtents="110, 2, 30" /> | 
|---|
 | 232 |         <BoxCollisionShape position="77,-47,30"     halfExtents="110, 2, 30" /> | 
|---|
 | 233 |         <BoxCollisionShape position="77,0,50"       halfExtents="110, 45, 6" /> | 
|---|
 | 234 |         <BoxCollisionShape position="167,0,70"      halfExtents="17, 20, 20" /> | 
|---|
 | 235 |       </collisionShapes> | 
|---|
| [5518] | 236 |     </Destroyer> | 
|---|
 | 237 |  | 
|---|
| [5474] | 238 |     <GlobalShader compositor="Bloom" visible=false> | 
|---|
 | 239 |       <events> | 
|---|
 | 240 |         <visibility> | 
|---|
 | 241 |           <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true /> | 
|---|
 | 242 |         </visibility> | 
|---|
 | 243 |       </events> | 
|---|
 | 244 |     </GlobalShader> | 
|---|
| [5487] | 245 |  | 
|---|
| [5474] | 246 |     <Model position="0,0,0" scale=8 mesh="ast1.mesh" /> | 
|---|
 | 247 |     <StaticEntity position="0,0,0" collisionType=static> | 
|---|
 | 248 |       <collisionShapes> | 
|---|
 | 249 |         <SphereCollisionShape radius="20" /> | 
|---|
 | 250 |       </collisionShapes> | 
|---|
 | 251 |     </StaticEntity> | 
|---|
| [7163] | 252 |      | 
|---|
| [5474] | 253 |   </Scene> | 
|---|
 | 254 | </Level> | 
|---|