1 | <LevelInfo |
---|
2 | name = "Under Attack" |
---|
3 | description = "Fight the transporter." |
---|
4 | tags = "gametype" |
---|
5 | screenshot = "underattack.png" |
---|
6 | /> |
---|
7 | |
---|
8 | <?lua |
---|
9 | include("HUDTemplates3.oxo") |
---|
10 | include("stats.oxo") |
---|
11 | include("templates/spaceshipAssff.oxt") |
---|
12 | include("templates/lodInformation.oxt") |
---|
13 | ?> |
---|
14 | |
---|
15 | <Level |
---|
16 | gametype = "UnderAttack" |
---|
17 | > |
---|
18 | <templates> |
---|
19 | <Template link=lodtemplate_default /> |
---|
20 | </templates> |
---|
21 | <?lua include("includes/notifications.oxi") ?> |
---|
22 | |
---|
23 | <Scene |
---|
24 | ambientlight = "0.5, 0.5, 0.5" |
---|
25 | skybox = "Orxonox/skyBoxBasic" |
---|
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 | |
---|
29 | <?lua for i = 1, 30, 1 do ?> |
---|
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> |
---|
43 | <SphereCollisionShape radius="<?lua print(x) ?>" position="0,0,0" /> |
---|
44 | </collisionShapes> |
---|
45 | </MovableEntity> |
---|
46 | <?lua end ?> |
---|
47 | |
---|
48 | |
---|
49 | <Destroyer |
---|
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 = 10000000 |
---|
57 | initialhealth = 10000 |
---|
58 | radarname = "Transporter" |
---|
59 | > |
---|
60 | |
---|
61 | <attached> |
---|
62 | <SpaceBoundaries position="1,2,3" maxDistance="1600" warnDistance="300" showDistance="300" reactionMode="1" healthDecrease="5.0" /> |
---|
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 /> |
---|
65 | <TeamSpawnPoint team=1 position="-200,0,-60" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
66 | <TeamSpawnPoint team=1 position="100,0,-50" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
67 | <TeamSpawnPoint team=1 position="400,0,20" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
68 | <?lua for i = 1, 100, 1 do ?> |
---|
69 | <TeamSpawnPoint |
---|
70 | team=0 |
---|
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)) ?>" |
---|
72 | lookat="0,0,0" |
---|
73 | spawnclass=SpaceShip |
---|
74 | pawndesign=spaceshipassff |
---|
75 | /> |
---|
76 | |
---|
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 ?> |
---|
86 | |
---|
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" |
---|
109 | phase="<?lua print(-360/8*i)?>" |
---|
110 | amplitude=0.1 |
---|
111 | frequency=0.5 |
---|
112 | quadratic=1 |
---|
113 | /> |
---|
114 | |
---|
115 | <BlinkingBillboard |
---|
116 | position="<?lua print(200-270/8*i)?>,-15,2" |
---|
117 | material="Examples/Flare" |
---|
118 | colour="1.0, 0.5, 0.3" |
---|
119 | phase="<?lua print(-360/8*i)?>" |
---|
120 | amplitude=0.1 |
---|
121 | frequency=0.5 |
---|
122 | quadratic=1 |
---|
123 | /> |
---|
124 | <?lua end ?> |
---|
125 | |
---|
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> |
---|
157 | </Destroyer> |
---|
158 | |
---|
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> |
---|
166 | |
---|
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> |
---|
173 | |
---|
174 | </Scene> |
---|
175 | </Level> |
---|