[5474] | 1 | <?lua |
---|
[5654] | 2 | include("hudtemplates3.oxo") |
---|
| 3 | include("stats.oxo") |
---|
| 4 | include("underattackhud.oxo") |
---|
| 5 | include("templates/spaceship_assff.oxt") |
---|
[5474] | 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 | |
---|
[5518] | 19 | <?lua for i = 1, 30, 1 do ?> |
---|
[5528] | 20 | <MovableEntity |
---|
[5518] | 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) ?>" |
---|
[5487] | 23 | > |
---|
[5518] | 24 | <attached> |
---|
| 25 | <Model |
---|
| 26 | <?lua x = math.random() * 150 + 30 ?> |
---|
[5528] | 27 | scale="<?lua print(x) ?>" |
---|
| 28 | mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" |
---|
[5518] | 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 ?> |
---|
[5528] | 37 | |
---|
[5518] | 38 | <Destroyer |
---|
| 39 | position = "100,150,0" |
---|
| 40 | collisionType = dynamic |
---|
[5549] | 41 | mass = 100000 |
---|
[5518] | 42 | velocity = "-35,0,0" |
---|
| 43 | angularDamping = 0.9999999 |
---|
| 44 | health = 10000 |
---|
[5528] | 45 | maxhealth = 10000 |
---|
[5518] | 46 | initialhealth = 10000 |
---|
| 47 | > |
---|
[5517] | 48 | |
---|
[5518] | 49 | <attached> |
---|
[5528] | 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 /> |
---|
[5517] | 54 | <TeamSpawnPoint team=1 position="50,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
[5518] | 55 | <?lua for i = 1, 100, 1 do ?> |
---|
[5528] | 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 |
---|
[5518] | 62 | /> |
---|
| 63 | |
---|
[5528] | 64 | <!--more spawnpoints for team1--> |
---|
[5518] | 65 | <!-- |
---|
[5528] | 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 |
---|
[5518] | 71 | />--> |
---|
| 72 | <?lua end ?> |
---|
[5528] | 73 | |
---|
[5517] | 74 | <Model mesh="Carrier.mesh" scale="5" /> |
---|
[5528] | 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" |
---|
[5518] | 90 | /> |
---|
[5517] | 91 | <?lua for i=0,8,1 do ?> |
---|
[5528] | 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 |
---|
[5518] | 100 | /> |
---|
| 101 | |
---|
[5528] | 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 |
---|
[5518] | 110 | /> |
---|
[5487] | 111 | <?lua end ?> |
---|
| 112 | |
---|
[5528] | 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" |
---|
[5518] | 123 | /> |
---|
[5528] | 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" |
---|
[5518] | 133 | material="Examples/Flare" /> |
---|
[5528] | 134 | </attached> |
---|
[5518] | 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 | |
---|
[5474] | 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> |
---|
[5487] | 153 | |
---|
[5474] | 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> |
---|