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 | <!--- A SpaceBoundary moving along with the transporter, in order to filter out bots that are too far away from the transporter ----> |
---|
49 | <MovableEntity |
---|
50 | position="0,0,0" |
---|
51 | velocity="-35,0,0" |
---|
52 | > |
---|
53 | <attached> |
---|
54 | <SpaceBoundaries position="1,2,3" maxDistance="1600" warnDistance="300" showDistance="300" reactionMode="1" healthDecrease="5.0" /> |
---|
55 | <BlinkingBillboard |
---|
56 | position="0,0,0" |
---|
57 | material="Flares/ringflare2" |
---|
58 | colour="1.0, 0.5, 0.3" |
---|
59 | phase="-180" |
---|
60 | amplitude=0.1 |
---|
61 | frequency=0.5 |
---|
62 | quadratic=1 |
---|
63 | /> |
---|
64 | </attached> |
---|
65 | </MovableEntity> |
---|
66 | |
---|
67 | |
---|
68 | <Destroyer |
---|
69 | position = "100,150,0" |
---|
70 | collisionType = dynamic |
---|
71 | mass = 100000 |
---|
72 | velocity = "-35,0,0" |
---|
73 | angularDamping = 0.9999999 |
---|
74 | health = 10000 |
---|
75 | maxhealth = 10000000 |
---|
76 | initialhealth = 10000 |
---|
77 | radarname = "Transporter" |
---|
78 | > |
---|
79 | |
---|
80 | <attached> |
---|
81 | <TeamSpawnPoint team=1 position="200,0,20" direction="-1,0,0" roll=90 yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
82 | <TeamSpawnPoint team=1 position="50,0,100" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
83 | <TeamSpawnPoint team=1 position="-200,0,20" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
84 | <TeamSpawnPoint team=1 position="100,0,-50" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
85 | <TeamSpawnPoint team=1 position="400,0,20" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
86 | <?lua for i = 1, 100, 1 do ?> |
---|
87 | <TeamSpawnPoint |
---|
88 | team=0 |
---|
89 | 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)) ?>" |
---|
90 | lookat="0,0,0" |
---|
91 | spawnclass=SpaceShip |
---|
92 | pawndesign=spaceshipassff |
---|
93 | /> |
---|
94 | |
---|
95 | <!--more spawnpoints for team1--> |
---|
96 | <!-- |
---|
97 | <TeamSpawnPoint |
---|
98 | team=1 position="<?lua print((math.random() * 500 + 500)) ?>,<?lua print((math.random() * 500 + 500) ) ?>,<?lua print((math.random() * 500 + 500)) ?>" |
---|
99 | lookat="0,0,0" |
---|
100 | spawnclass=SpaceShip |
---|
101 | pawndesign=spaceshipassff |
---|
102 | />--> |
---|
103 | <?lua end ?> |
---|
104 | |
---|
105 | <Model mesh="Carrier.mesh" scale="5" /> |
---|
106 | <Backlight |
---|
107 | mainstate=activity |
---|
108 | active=false |
---|
109 | scale=0.4 |
---|
110 | name=bltest |
---|
111 | position=" 7.6, 0, 6" |
---|
112 | colour="0.2, 0.65, 1.0, 1.0" |
---|
113 | width=15 |
---|
114 | length=1500 |
---|
115 | lifetime=2 |
---|
116 | elements=50 |
---|
117 | trailmaterial="Trail/backlighttrail" |
---|
118 | turnontime=1 |
---|
119 | turnofftime=1 |
---|
120 | material="Flares/ThrusterFlare1" |
---|
121 | /> |
---|
122 | <?lua for i=0,8,1 do ?> |
---|
123 | <BlinkingBillboard |
---|
124 | position="<?lua print(200-270/8*i)?> ,15,2" |
---|
125 | material="Examples/Flare" |
---|
126 | colour="1.0, 0.5, 0.3" |
---|
127 | phase="<?lua print(-360/8*i)?>" |
---|
128 | amplitude=0.1 |
---|
129 | frequency=0.5 |
---|
130 | quadratic=1 |
---|
131 | /> |
---|
132 | |
---|
133 | <BlinkingBillboard |
---|
134 | position="<?lua print(200-270/8*i)?>,-15,2" |
---|
135 | material="Examples/Flare" |
---|
136 | colour="1.0, 0.5, 0.3" |
---|
137 | phase="<?lua print(-360/8*i)?>" |
---|
138 | amplitude=0.1 |
---|
139 | frequency=0.5 |
---|
140 | quadratic=1 |
---|
141 | /> |
---|
142 | <?lua end ?> |
---|
143 | |
---|
144 | <Backlight |
---|
145 | scale=1 |
---|
146 | position=" 169, 75, -15" |
---|
147 | colour="1, 0.85, 0.5, 0.5" |
---|
148 | width=40 |
---|
149 | length=1000 |
---|
150 | lifetime=5 |
---|
151 | elements=15 |
---|
152 | trailmaterial="Trail/backlighttrail" |
---|
153 | material="Examples/Flare" |
---|
154 | /> |
---|
155 | <Backlight |
---|
156 | scale=1 |
---|
157 | position=" 169, -75, -15" |
---|
158 | colour="1, 0.85, 0.5, 0.5" |
---|
159 | width=40 |
---|
160 | length=1000 |
---|
161 | lifetime=5 |
---|
162 | elements=15 |
---|
163 | trailmaterial="Trail/backlighttrail" |
---|
164 | material="Examples/Flare" /> |
---|
165 | </attached> |
---|
166 | <collisionShapes> |
---|
167 | <BoxCollisionShape position="70,0,-25" halfExtents="150, 50, 25" /> |
---|
168 | <BoxCollisionShape position="95,75,-16" halfExtents="70, 10, 12" /> |
---|
169 | <BoxCollisionShape position="95,-75,-16" halfExtents="70, 10, 12" /> |
---|
170 | <BoxCollisionShape position="77,47,30" halfExtents="110, 2, 30" /> |
---|
171 | <BoxCollisionShape position="77,-47,30" halfExtents="110, 2, 30" /> |
---|
172 | <BoxCollisionShape position="77,0,50" halfExtents="110, 45, 6" /> |
---|
173 | <BoxCollisionShape position="167,0,70" halfExtents="17, 20, 20" /> |
---|
174 | </collisionShapes> |
---|
175 | </Destroyer> |
---|
176 | |
---|
177 | <GlobalShader compositor="Bloom" visible=false> |
---|
178 | <events> |
---|
179 | <visibility> |
---|
180 | <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true /> |
---|
181 | </visibility> |
---|
182 | </events> |
---|
183 | </GlobalShader> |
---|
184 | |
---|
185 | <Model position="0,0,0" scale=8 mesh="ast1.mesh" /> |
---|
186 | <StaticEntity position="0,0,0" collisionType=static> |
---|
187 | <collisionShapes> |
---|
188 | <SphereCollisionShape radius="20" /> |
---|
189 | </collisionShapes> |
---|
190 | </StaticEntity> |
---|
191 | |
---|
192 | </Scene> |
---|
193 | </Level> |
---|