[8773] | 1 | <LevelInfo |
---|
| 2 | name = "Tutorial" |
---|
| 3 | description = "First guided steps in the orxonoxian universe." |
---|
| 4 | tags = "" |
---|
| 5 | /> |
---|
| 6 | |
---|
| 7 | <?lua |
---|
| 8 | include("stats.oxo") |
---|
| 9 | include("HUDTemplates3.oxo") |
---|
| 10 | include("templates/lodInformation.oxt") |
---|
[8800] | 11 | include("templates/spaceshipAssff.oxt") |
---|
[8773] | 12 | include("templates/spaceshipPirate.oxt") |
---|
| 13 | ?> |
---|
| 14 | |
---|
[8800] | 15 | <?lua |
---|
| 16 | include("templates/pickupRepresentationTemplates.oxt") |
---|
| 17 | ?> |
---|
| 18 | |
---|
[8773] | 19 | <Level |
---|
| 20 | name = "Tutorial" |
---|
| 21 | description = "How to steer a spaceship." |
---|
| 22 | > |
---|
| 23 | <templates> |
---|
| 24 | <Template link=lodtemplate_default /> |
---|
| 25 | </templates> |
---|
| 26 | <?lua include("includes/notifications.oxi") ?> |
---|
| 27 | |
---|
[8800] | 28 | <NotificationQueueCEGUI |
---|
| 29 | name="narrative" |
---|
| 30 | targets="simpleNotification" |
---|
| 31 | size=1 |
---|
| 32 | displayTime=30 |
---|
| 33 | position="0.2, 0, 0.1, 0" |
---|
| 34 | fontSize="24" |
---|
| 35 | fontColor="0.3, 1, 0.2, 0.8" |
---|
| 36 | alignment="HorzCentred" |
---|
| 37 | displaySize="0.6, 0, 0, 0" |
---|
| 38 | /> |
---|
[8773] | 39 | <Scene |
---|
| 40 | ambientlight = "0.8, 0.8, 0.8" |
---|
| 41 | skybox = "Orxonox/Starbox" |
---|
| 42 | > |
---|
[8800] | 43 | <?lua |
---|
| 44 | include("includes/pickups.oxi") |
---|
| 45 | ?> |
---|
[8773] | 46 | |
---|
| 47 | <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"/> |
---|
[8800] | 48 | <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
| 49 | <!-- Script code="artificialcontroller setbotlevel 0.1" /--> <!-- Does not influence waypointPatrolController--> |
---|
[8773] | 50 | |
---|
[8800] | 51 | <!-- END OF INCLUDES & NECESSARITIES --> |
---|
| 52 | |
---|
| 53 | <!-- TUTORIAL-TODO: --> |
---|
| 54 | |
---|
| 55 | <!-- 1. Aiming & Weapons (static targets, moving targets, dangerous targets)--> <!-- 3 Mouse buttons + "T"--> |
---|
| 56 | <!-- 2. Flying & manoeuvring (basic flying, using pickups, forcefields, docks & portals) --> <!-- "W","S","SPACE"--> |
---|
| 57 | <!-- 3. Game handling (quests, knowing when a game is over :-), pausing, chat, ... ) --> <!--"F3", "F2", "ESC" --> |
---|
| 58 | <!-- 4. Extras (other things to discover) --> <!-- "Q","E","A","D","C", "CTRL", "", ... --> |
---|
| 59 | |
---|
| 60 | <!-- |
---|
| 61 | Four boxes for aiming |
---|
[8773] | 62 | TODO: Turn engine off at the beginning. |
---|
| 63 | TODO: display text: "Destroy those four boxes. Aim the a the box and shoot by using the left mouse button." |
---|
| 64 | "The laser is a standard weapon. It is fast and precise but does not deal much damage. Now do the same with the next target, but right click instead." |
---|
| 65 | "That was the lightning gun. Its plasma munition is quite slow, but a normal spaceship can't take more than three hits of such a strong weapon. That should be your favourite in close range combat or if you want to hit a really slow enemy. Try to destroy the next box by right clicking at it." |
---|
| 66 | "The target seeking rockets follow their target on their own and the explosive load shouldn't be underestimated. Now its time to hit the last target with the hand guided rocket. You can release one by pressing T once. Note: If you miss the target, you can get out of the rocket by clicking or pressing T once more." |
---|
| 67 | |
---|
| 68 | TODO: send in waypoint controlled ship that moves |
---|
| 69 | |
---|
| 70 | "Task complete. Manual rockets are your most powerful weapon. But since you have to steer it to your target yourself, you will leave your spaceship unprotected for a while. Now lets move to a slightly more difficult target. Take a look at your radar. The red dot is an enemy's ship. Try to turn your ship towards it, such that the red dot is in the radar's centre. You should be able to see it then directly. Your task is to destroy it." |
---|
| 71 | |
---|
| 72 | TODO: Turn engine on. Display a waypoint. |
---|
| 73 | "Lets start flying. Use W to accelerate and S to brake. The goal is to reach the spacestation which is displayed on the radar. If you want to be faster you can temporarily boost by hitting additionally to A the space button. If you use too much boost your engine heats up and you won't be able to use boost for a while. By the way boost could be useful during combat .." |
---|
| 74 | "That thing you've just collected is a drone. It will follow and protect you." |
---|
| 75 | TODO: send in a level 0.1 bot on a pirate ship. |
---|
| 76 | "Hi. We have been attacked by a pirate lately. Please protect us. The drone pickup will help you." |
---|
| 77 | |
---|
[8800] | 78 | --> |
---|
| 79 | <!-------------------------------------- PART ONE: Destroy boxes ---------------------------------------> |
---|
| 80 | <DistanceTrigger name="spawndelaytrigger1" position="-200,0,0" target="Pawn" distance=10 stayActive="true" delay=1 /> |
---|
| 81 | <SimpleNotification message="Destroy those four boxes."> |
---|
| 82 | <events> |
---|
| 83 | <trigger> |
---|
| 84 | <EventListener event=spawndelaytrigger1 /> |
---|
| 85 | </trigger> |
---|
| 86 | </events> |
---|
| 87 | </SimpleNotification> |
---|
| 88 | |
---|
| 89 | <DistanceTrigger name="spawndelaytrigger2" position="-200,0,0" target="Pawn" distance=10 stayActive="true" delay=2 /> |
---|
| 90 | <SimpleNotification message=" 1. Aim the a the red cycle."> |
---|
| 91 | <events> |
---|
| 92 | <trigger> |
---|
| 93 | <EventListener event=spawndelaytrigger2 /> |
---|
| 94 | </trigger> |
---|
| 95 | </events> |
---|
| 96 | </SimpleNotification> |
---|
| 97 | |
---|
| 98 | <DistanceTrigger name="spawndelaytrigger3" position="-200,0,0" target="Pawn" distance=10 stayActive="true" delay=4 /> |
---|
| 99 | <SimpleNotification message="2. Click! (hold the left mouse button)"> |
---|
| 100 | <events> |
---|
| 101 | <trigger> |
---|
| 102 | <EventListener event=spawndelaytrigger3 /> |
---|
| 103 | </trigger> |
---|
| 104 | </events> |
---|
| 105 | </SimpleNotification> |
---|
| 106 | |
---|
| 107 | <SimpleNotification message="Right click on the next target."> |
---|
| 108 | <events> |
---|
| 109 | <trigger> |
---|
| 110 | <EventListener event=PawnDied1 /> |
---|
| 111 | </trigger> |
---|
| 112 | </events> |
---|
| 113 | </SimpleNotification> |
---|
| 114 | |
---|
| 115 | |
---|
| 116 | <!-- BRIEFING END--> |
---|
| 117 | <!-- TODO: does NOT work. Intended effect: pawn death causes message to appear (and probably the next box) --> |
---|
| 118 | <SimpleNotification message="Right click on the next target."> |
---|
| 119 | <events> |
---|
| 120 | <trigger> |
---|
| 121 | <Pawn health=30 position="0,0,0" direction="0,-1,0" collisionType=dynamic mass=100000> |
---|
| 122 | <attached> |
---|
| 123 | <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" /> |
---|
| 124 | </attached> |
---|
| 125 | <collisionShapes> |
---|
| 126 | <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" /> |
---|
| 127 | </collisionShapes> |
---|
| 128 | </Pawn> |
---|
| 129 | </trigger> |
---|
| 130 | </events> |
---|
| 131 | </SimpleNotification> |
---|
| 132 | |
---|
| 133 | <Pawn health=30 position="0,100,0" direction="0,-1,0" collisionType=dynamic mass=100000> |
---|
[8773] | 134 | <attached> |
---|
| 135 | <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" /> |
---|
| 136 | </attached> |
---|
| 137 | <collisionShapes> |
---|
| 138 | <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" /> |
---|
| 139 | </collisionShapes> |
---|
| 140 | </Pawn> |
---|
[8800] | 141 | |
---|
| 142 | <Pawn health=30 position="0,200,0" direction="0,-1,0" collisionType=dynamic mass=100000> |
---|
[8773] | 143 | <attached> |
---|
| 144 | <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" /> |
---|
| 145 | </attached> |
---|
| 146 | <collisionShapes> |
---|
| 147 | <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" /> |
---|
| 148 | </collisionShapes> |
---|
| 149 | </Pawn> |
---|
[8800] | 150 | |
---|
| 151 | <Pawn health=30 position="0,300,0" direction="0,-1,0" collisionType=dynamic mass=100000> |
---|
[8773] | 152 | <attached> |
---|
[8800] | 153 | <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" /> |
---|
[8773] | 154 | </attached> |
---|
| 155 | <collisionShapes> |
---|
[8800] | 156 | <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" /> |
---|
[8773] | 157 | </collisionShapes> |
---|
| 158 | </Pawn> |
---|
[8800] | 159 | |
---|
| 160 | <!--------------------------------------PART TWO: Moving targets ---------------------------------------> |
---|
| 161 | |
---|
| 162 | <SpaceShip position="0,1500,200" lookat="0,0,0"> |
---|
| 163 | <templates> |
---|
| 164 | <Template link=spaceshippirate /> |
---|
| 165 | </templates> |
---|
| 166 | <controller> |
---|
| 167 | <WaypointController> |
---|
| 168 | <waypoints> |
---|
| 169 | <Model mesh="cube.mesh" scale=8 position=" 0,1300,-200" /> |
---|
| 170 | <Model mesh="cube.mesh" scale=8 position=" 0,1300,-700" /> |
---|
| 171 | <Model mesh="cube.mesh" scale=8 position="500,1300,-700" /> |
---|
| 172 | <Model mesh="cube.mesh" scale=8 position="500,1300,-200" /> |
---|
| 173 | </waypoints> |
---|
| 174 | </WaypointController> |
---|
| 175 | </controller> |
---|
| 176 | </SpaceShip> |
---|
| 177 | <PickupSpawner position="250,1300,-450" triggerDistance="10" respawnTime="30" maxSpawnedItems="1"> |
---|
| 178 | <pickup> |
---|
| 179 | <DronePickup template=dronepickup /> |
---|
| 180 | </pickup> |
---|
| 181 | </PickupSpawner> |
---|
| 182 | |
---|
| 183 | <SpaceShip position="0,1500,400" lookat="0,0,0"> |
---|
| 184 | <templates> |
---|
| 185 | <Template link=spaceshippirate /> |
---|
| 186 | </templates> |
---|
| 187 | <controller> |
---|
| 188 | <WaypointController> |
---|
| 189 | <waypoints> |
---|
| 190 | <Model mesh="cube.mesh" scale=8 position=" 0,1300,1000" /> |
---|
| 191 | <Model mesh="cube.mesh" scale=8 position=" 0,1300,500" /> |
---|
| 192 | <Model mesh="cube.mesh" scale=8 position="500,1300,500" /> |
---|
| 193 | <Model mesh="cube.mesh" scale=8 position="500,1300, 1000" /> |
---|
| 194 | </waypoints> |
---|
| 195 | </WaypointController> |
---|
| 196 | </controller> |
---|
| 197 | </SpaceShip> |
---|
| 198 | |
---|
| 199 | |
---|
| 200 | <!--------------------------------------PART THREE: to the space station ---------------------------------------> |
---|
| 201 | <DistanceTrigger name="duball1" position="-1000,-300,700" target="Pawn" distance=700 stayActive="true" delay=2 /> |
---|
| 202 | <SimpleNotification message="Welcome to the Duball Space Station!"> |
---|
| 203 | <events> |
---|
| 204 | <trigger> |
---|
| 205 | <EventListener event=duball1 /> |
---|
| 206 | </trigger> |
---|
| 207 | </events> |
---|
| 208 | </SimpleNotification> |
---|
| 209 | |
---|
| 210 | <DistanceTrigger name="duball2" position="-1000,-300,700" target="Pawn" distance=700 stayActive="true" delay=4 /> |
---|
| 211 | <SimpleNotification message="Warning: Something big is coming."> |
---|
| 212 | <events> |
---|
| 213 | <trigger> |
---|
| 214 | <EventListener event=duball2 /> |
---|
| 215 | </trigger> |
---|
| 216 | </events> |
---|
| 217 | </SimpleNotification> |
---|
| 218 | |
---|
| 219 | <DistanceTrigger name="duball2" position="-1000,-300,700" target="Pawn" distance=700 stayActive="true" delay=6 /> |
---|
| 220 | <SimpleNotification message="Be on your guard!"> |
---|
| 221 | <events> |
---|
| 222 | <trigger> |
---|
| 223 | <EventListener event=duball3 /> |
---|
| 224 | </trigger> |
---|
| 225 | </events> |
---|
| 226 | </SimpleNotification> |
---|
| 227 | |
---|
| 228 | <StaticEntity position="-1000,-300,700" collisionType=static> |
---|
[8773] | 229 | <attached> |
---|
[8800] | 230 | <Model scale=11 mesh="DuBall1.mesh" position = "-100,0,0"/> |
---|
| 231 | <Model scale=11 mesh="DuBall2.mesh" position = "100,0,0"/> |
---|
| 232 | <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "-100,0,0"/> |
---|
| 233 | <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "100,0,0"/> |
---|
[8773] | 234 | </attached> |
---|
| 235 | <collisionShapes> |
---|
[8800] | 236 | <SphereCollisionShape radius="80" position = "-100,0,0" /> |
---|
| 237 | <SphereCollisionShape radius="120" position = "100,0,0" /> |
---|
| 238 | <BoxCollisionShape halfExtents="90,25,45" position = "-155,0,40" /> |
---|
[8773] | 239 | </collisionShapes> |
---|
[8800] | 240 | </StaticEntity> |
---|
[8773] | 241 | |
---|
[8800] | 242 | <DistanceTrigger name="duball3" position="-1000,-300,700" target="Pawn" distance=700 stayActive="true" delay=6 /> |
---|
| 243 | <!-- SpaceShip position="-1000,900,700" lookat="0,0,0"> |
---|
| 244 | <templates> |
---|
| 245 | <Template link=spaceshipTransporter /> |
---|
| 246 | </templates> |
---|
| 247 | <controller> |
---|
| 248 | <WaypointPatrolController> |
---|
| 249 | <waypoints> |
---|
| 250 | <Model mesh="cube.mesh" scale=8 position="-1000,500,700" /> |
---|
| 251 | </waypoints> |
---|
| 252 | </WaypointPatrolController> |
---|
| 253 | </controller> |
---|
| 254 | <events> |
---|
| 255 | <trigger> |
---|
| 256 | <EventListener event=duball3 /> |
---|
| 257 | </trigger> |
---|
| 258 | </events> |
---|
| 259 | </SpaceShip --> |
---|
[8773] | 260 | |
---|
[8800] | 261 | <!--------------------------------------PART FOUR ---------------------------------------> |
---|
[8773] | 262 | |
---|
| 263 | </Scene> |
---|
| 264 | </Level> |
---|
| 265 | |
---|