Changeset 8909
- Timestamp:
- Oct 28, 2011, 6:09:10 PM (13 years ago)
- Location:
- code/branches/gamecontent
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gamecontent/data/levels/missionOne.oxw
r8904 r8909 48 48 ?> 49 49 50 <WorldAmbientSound source=" Mars.ogg" looping="true" playOnLoad="true" /> <!-- AlphaCentauri.ogg-->50 <WorldAmbientSound source="Earth.ogg" looping="true" playOnLoad="true" /> <!-- AlphaCentauri.ogg, Mars.ogg--> 51 51 52 52 <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"/> 53 <TeamSpawnPoint team=0 position="800,700,600" direction="-1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />54 55 56 53 <!-- END OF INCLUDES & NECESSARITIES --> 57 54 55 <!-- SPAWNPOINT & START OF QUESTS via spawntrigger --> 56 <EventMultiTrigger name=spawntrigger> 57 <events> 58 <trigger> 59 <TeamSpawnPoint team=0 position="800,700,600" direction="-1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /> 60 </trigger> 61 </events> 62 </EventMultiTrigger> 63 64 <QuestEffectBeacon times=1> 65 <effects> 66 <AddQuest questId="missionOne.basicFlying" /> 67 <!--AddQuestHint hintId ="quest1hint3" /--> 68 </effects> 69 <events> 70 <execute> 71 <EventListener event=spawntrigger /> 72 </execute> 73 </events> 74 </QuestEffectBeacon> 75 76 <QuestEffectBeacon times=1> 77 <effects> 78 <CompleteQuest questId="missionOne.basicFlying" /> 79 </effects> 80 <events> 81 <execute> 82 <EventListener event=flying4 /> 83 </execute> 84 </events> 85 </QuestEffectBeacon> 86 87 <!-- //TODO: end navigation quest --> 88 89 90 <QuestEffectBeacon times=1> 91 <effects> 92 <CompleteQuest questId="missionOne.navigation" /> 93 </effects> 94 <events> 95 <execute> 96 <EventListener event="navigationend" /> 97 </execute> 98 </events> 99 </QuestEffectBeacon> 100 101 <QuestEffectBeacon times=1> 102 <effects> 103 <CompleteQuest questId="missionOne.weaponsystemI" /> 104 </effects> 105 <events> 106 <execute> 107 <EventListener event=boxtrigger4 /> 108 </execute> 109 </events> 110 </QuestEffectBeacon> 111 112 <QuestEffectBeacon times=1> 113 <effects> 114 <CompleteQuest questId="missionOne.weaponsystemII" /> 115 <CompleteQuest questId="missionOne.weaponsystem" /> 116 </effects> 117 <events> 118 <execute> 119 <EventListener event=movingpirates2 /> 120 </execute> 121 </events> 122 </QuestEffectBeacon> 123 124 <QuestEffectBeacon times=1> 125 <effects> 126 <CompleteQuest questId="missionOne.DuballStation" /> 127 </effects> 128 <events> 129 <execute> 130 <EventListener event=duball3 /> 131 </execute> 132 </events> 133 </QuestEffectBeacon> 134 135 <QuestEffectBeacon times=1> 136 <effects> 137 <CompleteQuest questId="missionOne.getHelp" /> 138 </effects> 139 <events> 140 <execute> 141 <EventListener event=ondock /> 142 </execute> 143 </events> 144 </QuestEffectBeacon> 145 146 <QuestEffectBeacon times=1> 147 <effects> 148 <CompleteQuest questId="missionOne.getHome" /> 149 </effects> 150 <events> 151 <execute> 152 <EventListener event=attack /> 153 </execute> 154 </events> 155 </QuestEffectBeacon> 156 157 <QuestEffectBeacon times=1> 158 <effects> 159 <CompleteQuest questId="missionOne.defence" /> 160 </effects> 161 <events> 162 <execute> 163 <EventListener event=attacktrigger6 /> 164 </execute> 165 </events> 166 </QuestEffectBeacon> 167 168 58 169 <LocalQuest id="missionOne.basicFlying"> 59 <QuestDescription title="Flying" description="INSERT STORY HERE. The first thing you have to learn is flying. Use 'W' to accelerate and steer with your mouse. In order to know where to fly there are two detection systems. The navigation markers highlite important objects directly in the level. If you can't directly see those objects, there are arrows which indicate how you have to steer. The second device is the radar. There you get an overview of all objects near you. In order to find an object that you spotted on radar, you have to steer in a way that the corresponding dot is in the center of the radar. Now you can find the corresponding object straight ahead. Your goal is to fly to the first waypoint. It's that orange dot on the radar." failmessage="" completeMessage="Well done." /> 170 <QuestDescription title="Flying" description="Can you see the blinking light straight ahead? Your goal is to fly through it. 171 Use 'W' to accelerate and steer with your mouse. 172 173 Further flying moves: 174 S : break 175 Q and E : roll 176 Space : boost 177 178 P.S: Whenever a new quest is added you can view it by pressing F3." failmessage="" completeMessage="" /> 179 <complete-effects> 180 <AddQuest questId="missionOne.navigation" /> 181 </complete-effects> 182 </LocalQuest> 183 184 <LocalQuest id="missionOne.navigation"> 185 <QuestDescription title="Navigation" description="The next goal is to find and move towards the test targets for your weaponsystem. The three arrows that just appeared down in the right corner of your screen indicate in which direction you have to turn your spacefighter to find your next targets. 186 187 Alternative navigation: There's a the green circle in the left corner - the radar. The red dots on the radar represent your targets. If you manage to move your spaceship in a way such that a dot is at the center of the radar, you will be able to see the concerning object straight ahead." failmessage="" completeMessage="" /> 60 188 <complete-effects> 61 189 <AddQuest questId="missionOne.weaponsystem" /> 190 <AddQuest questId="missionOne.weaponsystemI" /> 62 191 </complete-effects> 63 192 </LocalQuest> … … 98 227 99 228 <LocalQuest id="missionOne.DuballStation"> 100 <QuestDescription title="Duball Space Station" description="Fly towards the Duball Space Station. The grey radar marker will lead you to its position." failmessage="" completeMessage=" Well done." />229 <QuestDescription title="Duball Space Station" description="Fly towards the Duball Space Station. The grey radar marker will lead you to its position." failmessage="" completeMessage="" /> 101 230 <complete-effects> 102 231 <AddQuest questId="missionOne.getHelp" /> … … 105 234 106 235 <LocalQuest id="missionOne.getHelp"> 107 <QuestDescription title="Get Help" description="There are enemies approaching. You can't handle it on your own. Fortunately there's a shortcut to the next friendly unit. Use the portal (grey dot) to get near the Hydrogen Farmer. There you might get help - as far as we know there should be a stronger spaceship docked to the Hydrogen Farmer. In order to be able to use that stronger spaceship you have to dock to the Hydrogen Farmer. Simply fly to the center of the Hydrogen Farmer, which is between its three legs." failmessage="" completeMessage=" Well done." />236 <QuestDescription title="Get Help" description="There are enemies approaching. You can't handle it on your own. Fortunately there's a shortcut to the next friendly unit. Use the portal (grey dot) to get near the Hydrogen Farmer. There you might get help - as far as we know there should be a stronger spaceship docked to the Hydrogen Farmer. In order to be able to use that stronger spaceship you have to dock to the Hydrogen Farmer. Simply fly to the center of the Hydrogen Farmer, which is between its three legs." failmessage="" completeMessage="" /> 108 237 <complete-effects> 109 238 <AddQuest questId="missionOne.getHome" /> … … 119 248 120 249 <LocalQuest id="missionOne.defence"> 121 <QuestDescription title="Defence" description="" failmessage="" completeMessage=" Well done." />250 <QuestDescription title="Defence" description="" failmessage="" completeMessage="Yeah! You did it." /> 122 251 </LocalQuest> 123 252 124 253 125 < QuestEffectBeacon position="800,700,600" times="1">254 <!--QuestEffectBeacon position="800,700,600" times="1"> 126 255 <effects> 127 256 <AddQuest questId="missionOne.basicFlying" /> … … 135 264 <DistanceTrigger name="questStart" position="0,0,0" distance="50" target="Pawn" beaconMode="identify" targetname="PlayerDistanceTrigger" delay="2" /> 136 265 </attached> 137 </QuestEffectBeacon >266 </QuestEffectBeacon--> 138 267 139 268 … … 144 273 <!-- 4. Extras (other things to discover) --> <!-- "Q","E","A","D","C", "CTRL", "", ... --> 145 274 146 <!-- 147 148 "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 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 .." 149 150 --> 151 152 <DistanceTrigger name="spawndelaytrigger0" position="800,700,600" target="Pawn" distance=10 stayActive="true"/> 153 <SimpleNotification message="Welcome to the Orxonox Tutorial."> 275 <DistanceTrigger name="spawndelaytrigger0" position="800,700,600" target="Pawn" distance=10 stayActive="true" delay=2/> 276 <SimpleNotification message="Press 'F3' to see your mission briefing."> 154 277 <events> 155 278 <trigger> … … 185 308 </events> 186 309 </Billboard> 310 187 311 <!-------------------------------------- PART ZERO: How to fly ---------------------------------------> 188 <DistanceTrigger name="flying1" position="800,700,600" target="Pawn" distance=10 stayActive="true" delay=4/> 312 313 <DistanceTrigger name="flying1" position="800,700,600" target="Pawn" distance=10 stayActive="true" delay=6/> 189 314 <SimpleNotification message="Let's fly to the blinking light."> 190 315 <events> … … 195 320 </SimpleNotification> 196 321 197 <DistanceTrigger name="flying2" position="800,700,600" target="Pawn" distance=10 stayActive="true" delay= 8/>322 <DistanceTrigger name="flying2" position="800,700,600" target="Pawn" distance=10 stayActive="true" delay=10/> 198 323 <SimpleNotification message="Use 'W' to accelerate and the mouse to steer."> 199 324 <events> … … 203 328 </events> 204 329 </SimpleNotification> 205 206 <!--DistanceTrigger name="flying3" position="800,700,600" target="Pawn" distance=20 stayActive="true" delay=12/> 207 <SimpleNotification message="Point with the mouse to the blinking light."> 208 <events> 209 <trigger> 210 <EventListener event="flying3" /> 211 </trigger> 212 </events> 213 </SimpleNotification--> 214 215 <DistanceTrigger name="flying4" position="-900,640,600" target="Pawn" distance=60 stayActive="true" delay=1/> 330 <!-- QUEST-Trigger && Message Trigger --> 331 <DistanceTrigger name="navigationend" position="0,0,0" distance=800 target="ControllableEntity" stayActive="false" delay=1.1> 332 <DistanceTrigger name="flying4" position="-900,640,600" target="Pawn" distance=60 stayActive="true" delay=1/> 333 </DistanceTrigger> 334 216 335 <SimpleNotification message="Three red arrows just appeared."> 217 336 <events> … … 231 350 </SimpleNotification> 232 351 233 352 <SimpleNotification message="navigationend triggered! But why already yet?" broadcast="true"> 353 <events> 354 <trigger> 355 <EventListener event="navigationend" /> 356 </trigger> 357 </events> 358 </SimpleNotification> 234 359 235 360 <!-------------------------------------- PART ONE : Destroy boxes ---------------------------------------> -
code/branches/gamecontent/src/orxonox/controllers/ArtificialController.cc
r8892 r8909 1110 1110 { 1111 1111 Pawn* pawn = orxonox_cast<Pawn*>(this->getControllableEntity()); 1112 if(pawn )1112 if(pawn && pawn->isA(Class(SpaceShip))) //fix for First Person Mode: check for SpaceShip 1113 1113 { 1114 1114 this->weaponModes_.clear(); // reset previous weapon information
Note: See TracChangeset
for help on using the changeset viewer.