[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 | ?> |
---|
[9016] | 14 | <!--OUTDATED: include("underAttackHUD.oxo") --> |
---|
[5474] | 15 | |
---|
| 16 | <Level |
---|
[9016] | 17 | gametype = "UnderAttack" |
---|
[5474] | 18 | > |
---|
[7163] | 19 | <templates> |
---|
| 20 | <Template link=lodtemplate_default /> |
---|
| 21 | </templates> |
---|
[8706] | 22 | <?lua include("includes/notifications.oxi") ?> |
---|
[7163] | 23 | |
---|
[5474] | 24 | <Scene |
---|
| 25 | ambientlight = "0.5, 0.5, 0.5" |
---|
| 26 | skybox = "Orxonox/skypanoramagen1" |
---|
| 27 | > |
---|
| 28 | <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" /> |
---|
| 29 | |
---|
[5518] | 30 | <?lua for i = 1, 30, 1 do ?> |
---|
[7163] | 31 | <MovableEntity |
---|
| 32 | position="<?lua print(math.random() * 10000 - 5000) ?>, <?lua print(math.random() * 10000 - 5000) ?>, <?lua print(math.random() * 10000 - 5000) ?>" |
---|
| 33 | velocity="<?lua print(math.random() * 500 - 250) ?>, <?lua print(math.random() * 500 - 250) ?>, <?lua print(math.random() * 500 - 250) ?>" |
---|
| 34 | > |
---|
| 35 | <attached> |
---|
| 36 | <Model |
---|
| 37 | <?lua x = math.random() * 150 + 30 ?> |
---|
| 38 | scale="<?lua print(x) ?>" |
---|
| 39 | mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" |
---|
| 40 | position="0,0,0" |
---|
| 41 | /> |
---|
| 42 | </attached> |
---|
| 43 | <collisionShapes> |
---|
[8079] | 44 | <SphereCollisionShape radius="<?lua print(x) ?>" position="0,0,0" /> |
---|
[7163] | 45 | </collisionShapes> |
---|
| 46 | </MovableEntity> |
---|
[5518] | 47 | <?lua end ?> |
---|
[5528] | 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 |
---|
| 56 | maxhealth = 10000 |
---|
| 57 | initialhealth = 10000 |
---|
[9257] | 58 | radarname = "Transporter" |
---|
[5518] | 59 | > |
---|
[5517] | 60 | |
---|
[7163] | 61 | <attached> |
---|
| 62 | <TeamSpawnPoint team=1 position="150,0,7" direction="-1,0,0" roll=90 yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
| 63 | <TeamSpawnPoint team=1 position="0,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
| 64 | <TeamSpawnPoint team=1 position="-50,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
| 65 | <TeamSpawnPoint team=1 position="100,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
| 66 | <TeamSpawnPoint team=1 position="50,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
| 67 | <?lua for i = 1, 100, 1 do ?> |
---|
| 68 | <TeamSpawnPoint |
---|
| 69 | team=0 |
---|
| 70 | 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)) ?>" |
---|
| 71 | lookat="0,0,0" |
---|
| 72 | spawnclass=SpaceShip |
---|
| 73 | pawndesign=spaceshipassff |
---|
| 74 | /> |
---|
[5518] | 75 | |
---|
[7163] | 76 | <!--more spawnpoints for team1--> |
---|
| 77 | <!-- |
---|
| 78 | <TeamSpawnPoint |
---|
| 79 | team=1 position="<?lua print((math.random() * 500 + 500)) ?>,<?lua print((math.random() * 500 + 500) ) ?>,<?lua print((math.random() * 500 + 500)) ?>" |
---|
| 80 | lookat="0,0,0" |
---|
| 81 | spawnclass=SpaceShip |
---|
| 82 | pawndesign=spaceshipassff |
---|
| 83 | />--> |
---|
| 84 | <?lua end ?> |
---|
[5528] | 85 | |
---|
[7163] | 86 | <Model mesh="Carrier.mesh" scale="5" /> |
---|
| 87 | <Backlight |
---|
| 88 | mainstate=activity |
---|
| 89 | active=false |
---|
| 90 | scale=0.4 |
---|
| 91 | name=bltest |
---|
| 92 | position=" 7.6, 0, 6" |
---|
| 93 | colour="0.2, 0.65, 1.0, 1.0" |
---|
| 94 | width=15 |
---|
| 95 | length=1500 |
---|
| 96 | lifetime=2 |
---|
| 97 | elements=50 |
---|
| 98 | trailmaterial="Trail/backlighttrail" |
---|
| 99 | turnontime=1 |
---|
| 100 | turnofftime=1 |
---|
| 101 | material="Flares/ThrusterFlare1" |
---|
| 102 | /> |
---|
| 103 | <?lua for i=0,8,1 do ?> |
---|
| 104 | <BlinkingBillboard |
---|
| 105 | position="<?lua print(200-270/8*i)?> ,15,2" |
---|
| 106 | material="Examples/Flare" |
---|
| 107 | colour="1.0, 0.5, 0.3" |
---|
[8079] | 108 | phase="<?lua print(-360/8*i)?>" |
---|
[7163] | 109 | amplitude=0.1 |
---|
| 110 | frequency=0.5 |
---|
| 111 | quadratic=1 |
---|
| 112 | /> |
---|
[5518] | 113 | |
---|
[7163] | 114 | <BlinkingBillboard |
---|
| 115 | position="<?lua print(200-270/8*i)?>,-15,2" |
---|
| 116 | material="Examples/Flare" |
---|
| 117 | colour="1.0, 0.5, 0.3" |
---|
[8079] | 118 | phase="<?lua print(-360/8*i)?>" |
---|
[7163] | 119 | amplitude=0.1 |
---|
| 120 | frequency=0.5 |
---|
| 121 | quadratic=1 |
---|
| 122 | /> |
---|
| 123 | <?lua end ?> |
---|
[5487] | 124 | |
---|
[7163] | 125 | <Backlight |
---|
| 126 | scale=1 |
---|
| 127 | position=" 169, 75, -15" |
---|
| 128 | colour="1, 0.85, 0.5, 0.5" |
---|
| 129 | width=40 |
---|
| 130 | length=1000 |
---|
| 131 | lifetime=5 |
---|
| 132 | elements=15 |
---|
| 133 | trailmaterial="Trail/backlighttrail" |
---|
| 134 | material="Examples/Flare" |
---|
| 135 | /> |
---|
| 136 | <Backlight |
---|
| 137 | scale=1 |
---|
| 138 | position=" 169, -75, -15" |
---|
| 139 | colour="1, 0.85, 0.5, 0.5" |
---|
| 140 | width=40 |
---|
| 141 | length=1000 |
---|
| 142 | lifetime=5 |
---|
| 143 | elements=15 |
---|
| 144 | trailmaterial="Trail/backlighttrail" |
---|
| 145 | material="Examples/Flare" /> |
---|
| 146 | </attached> |
---|
| 147 | <collisionShapes> |
---|
| 148 | <BoxCollisionShape position="70,0,-25" halfExtents="150, 50, 25" /> |
---|
| 149 | <BoxCollisionShape position="95,75,-16" halfExtents="70, 10, 12" /> |
---|
| 150 | <BoxCollisionShape position="95,-75,-16" halfExtents="70, 10, 12" /> |
---|
| 151 | <BoxCollisionShape position="77,47,30" halfExtents="110, 2, 30" /> |
---|
| 152 | <BoxCollisionShape position="77,-47,30" halfExtents="110, 2, 30" /> |
---|
| 153 | <BoxCollisionShape position="77,0,50" halfExtents="110, 45, 6" /> |
---|
| 154 | <BoxCollisionShape position="167,0,70" halfExtents="17, 20, 20" /> |
---|
| 155 | </collisionShapes> |
---|
[5518] | 156 | </Destroyer> |
---|
| 157 | |
---|
[5474] | 158 | <GlobalShader compositor="Bloom" visible=false> |
---|
| 159 | <events> |
---|
| 160 | <visibility> |
---|
| 161 | <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true /> |
---|
| 162 | </visibility> |
---|
| 163 | </events> |
---|
| 164 | </GlobalShader> |
---|
[5487] | 165 | |
---|
[5474] | 166 | <Model position="0,0,0" scale=8 mesh="ast1.mesh" /> |
---|
| 167 | <StaticEntity position="0,0,0" collisionType=static> |
---|
| 168 | <collisionShapes> |
---|
| 169 | <SphereCollisionShape radius="20" /> |
---|
| 170 | </collisionShapes> |
---|
| 171 | </StaticEntity> |
---|
[7163] | 172 | |
---|
[5474] | 173 | </Scene> |
---|
| 174 | </Level> |
---|