Changeset 10103 for code/branches/leveljoemeHS14/data
- Timestamp:
- Oct 29, 2014, 4:01:03 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/leveljoemeHS14/data/levels/AnihilationThreat.oxw
r10094 r10103 22 22 include("templates/spaceshipAssff.oxt") 23 23 include("templates/spaceshipAssff2.oxt") 24 include("templates/spaceshipTransporter.oxt") 25 24 26 ?> 25 27 … … 31 33 <?lua include("includes/notifications.oxi") ?> 32 34 35 <NotificationQueueCEGUI 36 name="narrative" 37 targets="simpleNotification" 38 size=8 39 displayTime=4 40 position="0.2, 0, 0.1, 0" 41 fontSize="23" 42 fontColor="0.8, 0.5, 0.2, 0.8" 43 alignment="HorzCentred" 44 displaySize="0.6, 0, 0, 0" 45 /> 33 46 34 47 <?lua … … 57 70 58 71 <SpawnPoint 59 team=0 position=" 500,0,0"60 lookat="1, 1,0"72 team=0 position="0,0,0" 73 lookat="1,0,0" 61 74 spawnclass=SpaceShip 62 pawndesign=spaceship swallow/>75 pawndesign=spaceshipassff /> 63 76 64 77 … … 70 83 </PortalEndPoint> 71 84 </Template> 72 73 <PortalEndPoint position="0,0,0" id="1" distance="40" target="MobileEntity" design="PortalDefault" reenterDelay="0"/> 74 <PortalEndPoint position="-1000,0,0" id="2" distance="40" target="MobileEntity" design="PortalDefault" reenterDelay="0"/> 75 <PortalLink fromID="1" toID="2" /> 76 <PortalLink fromID="2" toID="1" /> 77 78 <DistanceTrigger name="switchPlanets" position="-1100,0,0" target="Pawn" distance=70 stayActive="true" delay=1/> 79 80 <!-- switchBillboards makes this billboard INVISIBLE --> 81 <Planet 82 position="-100000,0,0" 83 scale="10000" 84 collisionType="dynamic" 85 linearDamping="0.8" 86 angularDamping="0" 87 mass="5.9e21" 88 pitch="0" 89 mesh="planets/earth.mesh" 90 atmosphere="atmosphere1" 91 rotationaxis="0,1,0" 92 rotationrate="0.2" 93 atmospheresize="80.0f" 94 imagesize="1024.0f" 95 collisiondamage = 2 96 enablecollisiondamage = true 97 > 98 <events> 99 <visibility> 100 <EventTrigger invert=true> 101 <events> 102 <trigger> 103 <EventListener event=switchPlanets /> 104 </trigger> 105 </events> 106 </EventTrigger> 107 </visibility> 108 </events> 109 </Planet> 110 111 112 <!-- This is a model of Earth: mass=EarthMass/1000 and radius=EarthRadius[km]*10 --> 113 <Planet 114 position="-100000,0,0" 115 scale="10000" 116 collisionType="dynamic" 117 linearDamping="0.8" 118 angularDamping="0" 119 mass="5.9e21" 120 pitch="0" 121 mesh="planets/earth.mesh" 122 atmosphere="atmosphere1" 123 rotationaxis="0,1,0" 124 rotationrate="0.2" 125 atmospheresize="80.0f" 126 imagesize="1024.0f" 127 collisiondamage = 2 128 enablecollisiondamage = true 129 > 130 <attached> 131 <ForceField position="0,0,0" mode="newtonianGravity" diameter="140000" massDiameter="126000" mass="5.9e21" /> 132 </attached> 133 <collisionShapes> 134 <SphereCollisionShape radius="63000" position="0,0,0" /> 135 </collisionShapes> 136 </Planet> 137 138 139 85 86 87 88 <!----------------Objects------------------> 89 90 91 92 93 94 <!--Billboard which tirggers the next Quest and spawns the enemy ships--> 95 <Billboard position=" 5000,3000, 3500" material="Examples/Flare" colour="1.0, 0.0, 0.0" /> 96 97 <!-- Meteoriten, die sich bewegen --> 98 <?lua 99 for i = 1, 300, 1 100 do 101 j = math.random() 102 x = math.random() 103 y = math.random() 104 z = math.random() 105 ?> 106 107 <MovableEntity 108 position = "<?lua print(math.random()* 600-300) ?>,<?lua print(math.random() * 40000 + 110000) ?>,<?lua print(math.random() * 600-300) ?>" 109 scale = "<?lua print(j * 40)?>" 110 velocity = "<?lua print(x*20-10)?>, <?lua print(y*60-160)?>, <?lua print(z*20-10)?>" 111 collisionType = dynamic 112 collisiondamage = 0.5 113 enablecollisiondamage = true 114 active = true 115 visible = true 116 > 117 <attached> 118 <Model mass="<?lua print(j * 1000) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" > 119 120 </Model> 121 </attached> 122 <collisionShapes> 123 <SphereCollisionShape radius="<?lua print(j * 50) ?>" /> 124 </collisionShapes> 125 </MovableEntity> 126 127 <?lua 128 end 129 ?> 130 <!-- Fiese Meteoriten, die direkt auf den Spieler zufliegen--> 131 132 <?lua 133 for i = 1, 240, 1 134 do 135 j = math.random() 136 x = math.random() 137 y = math.random() 138 z = math.random() 139 ?> 140 <MovableEntity 141 position = "<?lua print(math.random()* 240-120) ?>,<?lua print(math.random() * 40000 + 110000) ?>,<?lua print(math.random()* 240-120) ?>" 142 scale = "10" 143 velocity = "0, -160, 0" 144 collisionType = dynamic 145 collisiondamage = 0.05 146 enablecollisiondamage = true 147 active = true 148 visible = true 149 > 150 <attached> 151 <Model mass="2000" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" > 152 153 </Model> 154 </attached> 155 <collisionShapes> 156 <SphereCollisionShape radius="10" /> 157 </collisionShapes> 158 </MovableEntity> 159 <?lua 160 end 161 ?> 162 163 164 165 166 <!--******************************-Mission starts here****************************--> 167 168 169 <!------------On-screen texts----------> 170 171 <DistanceTrigger name="flying2" position="0,0,0" target="Pawn" distance=40 stayActive="true" delay=7/> 172 <SimpleNotification message="take the nearest portal"> 173 <events> 174 <trigger> 175 <EventListener event="flying2" /> 176 </trigger> 177 </events> 178 </SimpleNotification> 179 180 181 <DistanceTrigger name="flying2" position="0,0,0" target="Pawn" distance=100 stayActive="true" delay=7/> 182 <SimpleNotification message="In order to reach our fleet,"> 183 <events> 184 <trigger> 185 <EventListener event="flying2" /> 186 </trigger> 187 </events> 188 </SimpleNotification> 189 190 <DistanceTrigger name="flying1" position="0,0,0" target="Pawn" distance=100 stayActive="true" delay=1/> 191 <SimpleNotification message="Welcome Mr. Walker"> 192 <events> 193 <trigger> 194 <EventListener event="flying1" /> 195 </trigger> 196 </events> 197 </SimpleNotification> 198 199 <!--****************************After the Asteroid Field***************************--> 200 201 <DistanceTrigger name="afterPortal" position="3000,3000,3000" target="Pawn" distance=100 stayActive="true" delay=1/> 202 <SimpleNotification message="Reach the red chekpoint"> 203 <events> 204 <trigger> 205 <EventListener event="afterPortal" /> 206 </trigger> 207 </events> 208 </SimpleNotification> 209 210 211 <!--Creating player's team OK--> 212 <!--Spaceships team 0 (player:team=0)--> 213 214 <SpaceShip position="3500,3000,3000" lookat="2050,0,-1000" name="allied" health="500" maxhealth="500" initialhealth="500" > 215 <templates> 216 <Template link=spaceshipassff /> 217 </templates> 218 <controller> 219 <WaypointPatrolController alertnessradius=2000 team=0 > 220 <waypoints> 221 <Model mesh="cube.mesh" scale=0 position="2050,0,-1000" /> 222 <Model mesh="cube.mesh" scale=0 position="6050,0,0" /> 223 <Model mesh="cube.mesh" scale=0 position="10050,0,3000" /> 224 <Model mesh="cube.mesh" scale=0 position="3050,0,3000" /> 225 <Model mesh="cube.mesh" scale=0 position="-4050,0,3000" /> 226 </waypoints> 227 </WaypointPatrolController> 228 </controller> 229 </SpaceShip> 230 <!--Second Spaceship team 0 (player: team 0)--> 231 <SpaceShip position="3500,3000,3600" lookat="2000,0,-950" name="allied" health="500" maxhealth="400" initialhealth="400" > 232 <templates> 233 <Template link=spaceshipassff /> 234 </templates> 235 <controller> 236 <WaypointPatrolController alertnessradius=2000 team=0 > 237 <waypoints> 238 <Model mesh="cube.mesh" scale=0 position="2000,0,-900" /> 239 <Model mesh="cube.mesh" scale=0 position="6000,0,0" /> 240 <Model mesh="cube.mesh" scale=0 position="10000,0,3100" /> 241 <Model mesh="cube.mesh" scale=0 position="3000,0,3100" /> 242 <Model mesh="cube.mesh" scale=0 position="-4000,0,3100"/> 243 </waypoints> 244 </WaypointPatrolController> 245 </controller> 246 </SpaceShip> 247 <!--third Spaceship team 0 (player: team 0)--> 248 <SpaceShip position="3500,3000,34000" lookat="2000,0,-1050" name="allied" health="500" maxhealth="400" initialhealth="400" > 249 <templates> 250 <Template link=spaceshipassff /> 251 </templates> 252 <controller> 253 <WaypointPatrolController alertnessradius=2000 team=0 > 254 <waypoints> 255 <Model mesh="cube.mesh" scale=0 position="2000,0,-1100" /> 256 <Model mesh="cube.mesh" scale=0 position="6000,0,-100" /> 257 <Model mesh="cube.mesh" scale=0 position="10000,0,2900" /> 258 <Model mesh="cube.mesh" scale=0 position="3000,0,2900" /> 259 <Model mesh="cube.mesh" scale=0 position="-4000,0,2900" /> 260 </waypoints> 261 </WaypointPatrolController> 262 </controller> 263 </SpaceShip> 264 <!--Creating player's team END --> 265 266 267 268 269 <!------------Quest----------> 270 271 272 <QuestEffectBeacon times=1> 273 <effects> 274 <AddQuest questId="quest0" /> 275 <AddQuestHint hintId ="quest1hint2" /> 276 <AddQuestHint hintId ="quest1hint3" /> 277 </effects> 278 <events> 279 <execute> 280 <EventListener event=spawntrigger /> 281 </execute> 282 </events> 283 </QuestEffectBeacon> 284 285 286 287 <Script code="showGUI NotificationLayer false true" needsGraphics="true" /> 288 289 <GlobalQuest id="quest0"> 290 <QuestDescription title="Mission" description="Humanity is at war! Recently, an ashrocian ship attacked two transporters carrying highly expensive ETHium. Despite the fact, that the Ashrocs are a technological superpower, we, the human race cannot allow them to treat us like insects. Your mission's to group up with yout fellow soldiers and retaliate even harder." /> 291 <hints> 292 <QuestHint id="quest1hint0"> 293 <QuestDescription title="The super Hint." description="Be proud of yourself." /> 294 </QuestHint> 295 </hints> 296 </GlobalQuest> 297 298 299 300 <DistanceTrigger name=QuestTrigger0 position="0,0,0" distance=10 target="Pawn" /> 301 302 303 304 <QuestEffectBeacon times=1> 305 <effects> 306 <AddQuest questId="quest0" /> 307 <AddQuestHint hintId ="quest1hint2" /> 308 <AddQuestHint hintId ="quest1hint3" /> 309 </effects> 310 <events> 311 <execute> 312 <EventListener event=QuestTrigger0 /> 313 </execute> 314 </events> 315 </QuestEffectBeacon> 316 317 318 319 320 321 322 <?lua for i=0,0,1 do 323 x=800 324 health=1100 325 ?> 326 <!--Transporter 1--> 327 <EventTrigger name="activateTeam1No1" acitvations=1 stayactive="true"> 328 <events> 329 <trigger> 330 <SpaceShip position="<?lua print(5000-i*x) ?>,3000,3000" lookat="<?lua print(4800-i*x) ?>,0,4000" health="<?lua print(health) ?>" maxhealth="<?lua print(health) ?>" initialhealth="<?lua print(health) ?>" > 331 <templates> 332 <Template link=spaceshipTransporter /> 333 </templates> 334 <controller> 335 <WaypointPatrolController alertnessradius=2000 team=1 > 336 <waypoints> 337 <Model mesh="cube.mesh" scale=0 position="2000,0,-1100" /> 338 <Model mesh="cube.mesh" scale=0 position="6000,0,-100" /> 339 <Model mesh="cube.mesh" scale=0 position="10000,0,2900" /> 340 <Model mesh="cube.mesh" scale=0 position="3000,0,2900" /> 341 <Model mesh="cube.mesh" scale=0 position="-4000,0,2900" /> 342 </waypoints> 343 </WaypointPatrolController> 344 </controller> 345 </SpaceShip><!----> 346 </trigger> 347 </events> 348 </EventTrigger> 349 <?lua end ?> 350 351 352 140 353 141 354
Note: See TracChangeset
for help on using the changeset viewer.