Changeset 4694
- Timestamp:
- Jan 31, 2007, 1:25:36 AM (18 years ago)
- Location:
- data/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
data/trunk/levels/vertical_scroller.oxw
r4682 r4694 288 288 <model>models/spaceships/pirates_spaceship_ragnar.obj,6</model> 289 289 <abs-coor>7000, 0, -350</abs-coor> 290 <abs-dir> 1,5,0,1,0 </abs-dir> 290 291 <team>3</team> 291 292 <swarm>1</swarm> … … 294 295 <Weapons>HeavyBlaster</Weapons> 295 296 <maxSpeed>400</maxSpeed> 297 </NPC> 298 299 <NPC> 300 <name>Noxon01</name> 301 <model>models/spaceships/noxon_spaceship_fighter.obj,1</model> 302 <team>2</team> 303 <swarm>3</swarm> 304 <list>OM_GROUP_02</list> 305 <attackDistance>60</attackDistance> 306 <maxSpeed>500</maxSpeed> 307 <Weapons>HeavyBlaster</Weapons> 308 <abs-coor>7500, 0, -1000</abs-coor> 309 <abs-dir> 3.14,0,1,0 </abs-dir> 310 </NPC> 311 312 <NPC> 313 <name>Noxon02</name> 314 <model>models/spaceships/noxon_spaceship_fighter.obj,1</model> 315 <team>2</team> 316 <swarm>3</swarm> 317 <list>OM_GROUP_02</list> 318 <attackDistance>60</attackDistance> 319 <maxSpeed>500</maxSpeed> 320 <Weapons>HeavyBlaster</Weapons> 321 <abs-coor>7500, 0, -1010</abs-coor> 322 <abs-dir> 3.14,0,1,0 </abs-dir> 323 </NPC> 324 325 <NPC> 326 <name>Noxon03</name> 327 <model>models/spaceships/noxon_spaceship_fighter.obj,1</model> 328 <team>2</team> 329 <swarm>3</swarm> 330 <list>OM_GROUP_02</list> 331 <attackDistance>60</attackDistance> 332 <maxSpeed>500</maxSpeed> 333 <Weapons>HeavyBlaster</Weapons> 334 <abs-coor>7500, 0, -990</abs-coor> 335 <abs-dir> 3.14,0,1,0 </abs-dir> 336 </NPC> 337 <NPC> 338 <name>Noxon04</name> 339 <model>models/spaceships/noxon_spaceship_bomber.obj,1</model> 340 <team>2</team> 341 <swarm>3</swarm> 342 <list>OM_GROUP_02</list> 343 <attackDistance>60</attackDistance> 344 <maxSpeed>500</maxSpeed> 345 <Weapons>HeavyBlaster</Weapons> 346 <abs-coor>7550, 0, -1020</abs-coor> 347 <abs-dir> 3.14,0,1,0 </abs-dir> 348 </NPC> 349 <NPC> 350 <name>Noxon05</name> 351 <model>models/spaceships/noxon_spaceship_bomber.obj,1</model> 352 <team>2</team> 353 <swarm>3</swarm> 354 <list>OM_GROUP_02</list> 355 <attackDistance>60</attackDistance> 356 <maxSpeed>500</maxSpeed> 357 <Weapons>HeavyBlaster</Weapons> 358 <abs-coor>7550, 0, -980</abs-coor> 359 <abs-dir> 3.14,0,1,0 </abs-dir> 296 360 </NPC> 297 361 … … 316 380 <addPoint>7000,0,-200</addPoint> 317 381 <addPoint>7500,0,-700</addPoint> 382 <addPoint>7500,0,-1000</addPoint> 383 <addPoint>7500,0,-1500</addPoint> 384 <addPoint>8000,0,-2000</addPoint> 318 385 </Track> 319 386 </SpaceShip> … … 360 427 <abs-coor>2800,5,50</abs-coor> 361 428 </Camera> 429 <Camera> 430 <name> CameraTwo </name> 431 <abs-coor>7000,0,-50</abs-coor> 432 </Camera> 362 433 </Cameras> 363 434 </CameraMan> -
data/trunk/scripts/vertical_scroller/vs1.lua
r4684 r4694 2 2 thisscript:addObject("SpaceShip", "Player") 3 3 thisscript:addObject("CameraMan", "cameraManager") 4 5 -- The Pirates 4 6 thisscript:addObject("NPC", "Ragnar01") 5 7 thisscript:addObject("NPC", "Ragnar02") … … 13 15 thisscript:addObject("NPC", "Pirate08") 14 16 thisscript:addObject("NPC", "Pirate09") 17 18 -- The Noxons 19 thisscript:addObject("NPC", "Noxon01") 20 thisscript:addObject("NPC", "Noxon02") 21 thisscript:addObject("NPC", "Noxon03") 22 thisscript:addObject("NPC", "Noxon04") 23 thisscript:addObject("NPC", "Noxon05") 24 --thisscript:addObject("NPC", "Noxon06") 25 --thisscript:addObject("NPC", "Noxon07") 26 --thisscript:addObject("NPC", "Noxon08") 27 --thisscript:addObject("NPC", "Noxon09") 28 --thisscript:addObject("NPC", "Noxon10") 29 --thisscript:addObject("NPC", "Noxon11") 30 --thisscript:addObject("NPC", "Noxon12") 31 15 32 -- thisscript:addObjectAsName("GameWorld", "Mission 1", "gameWorld") 16 33 … … 36 53 triggerCutscene02:setActiveOnCreation(true) 37 54 55 -- Create another cutscene trigger 56 triggerCutscene03 = ScriptTrigger() 57 triggerCutscene03:setScript("vs1.lua") 58 triggerCutscene03:setFunction("surviver") 59 triggerCutscene03:setActiveOnCreation(true) 60 61 -- Create another cutscene trigger 62 triggerCutscene04 = ScriptTrigger() 63 triggerCutscene04:setScript("vs1.lua") 64 triggerCutscene04:setFunction("onNoxons") 65 triggerCutscene04:setActiveOnCreation(true) 66 38 67 -- Create the cool Ragnar trigger 39 68 triggerRagnar = ScriptTrigger() … … 89 118 counter = 0 90 119 cutsceneRunning = false 120 cutscene2Running = false 91 121 cutsceneEnd = false 122 cutscene2End = false 92 123 bossFight = false 93 124 bossFightEnd = false … … 97 128 -- cameraManager:setCam("GameWorld-Camera") 98 129 cameraManager:atachCameraToWorldEntity("CameraOne", "NPC", "Pirate01") 130 cameraManager:atachCameraToWorldEntity("CameraTwo", "NPC", "Noxon01") 99 131 cameraManager:setRelCoor("CameraOne", 10, 8 , 5) 100 cameraManager:setRelCoorSoft("GameWorld-Camera", 0, 100, 0, 10) 132 cameraManager:setRelCoor("CameraTwo", 10, 8 , 5) 133 Player:setCameraDistance(100) 134 101 135 102 136 Ragnar01:pause(true) … … 181 215 Ragnar02:setAI(true) 182 216 bossFight = true 183 cameraManager:setRelCoorSoft("GameWorld-Camera", 0, 10, 0, 6)217 Player:setCameraDist(100) 184 218 185 219 return true … … 195 229 if time > 25 then 196 230 Ragnar02:setAI(false) 231 bossFight = false 197 232 bossFightEnd = true 198 233 end … … 200 235 return bossFightEnd 201 236 end 237 238 function onNoxons(timestep) 239 240 if bossFightEnd then 241 cameraManager:setCam("CameraTwo") 242 Player:pause(true) 243 end 244 245 246 return cutscene2End 247 end
Note: See TracChangeset
for help on using the changeset viewer.