//-- // Anderson Death cinematic aweldon Jun 05 //-- // Start the whole sequence and remove the 'living' Anderson. void andersonDeathCinematic() { // Hide the cleverly placed weapon pickup $deadAndersonGun.hide(); // Fadey goodness sys.fadeOut( '0 0 0' , .25 ); sys.wait(.25); sys.fadeIn( '0 0 0' , .25 ); // Remove the 'real' Anderson and start the cinematic and animations. $Anderson.remove(); sys.trigger( $cin_med_anderson ); sys.trigger( $aDeathMusic ); sys.trigger( $andersonCinDoorA_1 ); sys.trigger( $adeath_anderson_1 ); sys.trigger( $adeath_kane ); $adeath_kane.hideSurface("models/weapons/mp_guns/w_mg_lo"); $adeath_kane.showSurface("models/weapons/mp_guns/w_sg"); aiScriptedAnim( $adeath_kane , "med_cin_kane2" , 0 , 0 ); aiScriptedAnimWait( $adeath_anderson_1 , "med_cin_anderson2" , 0 , 0 ); } // Start the scientist and remove him when finished. This is called on a frame command. void cinSciStarts() { aiScriptedAnim( $adeath_sci , "medlabs_anderson_cin" , 0 , 0 ); } // Kane does stuff, then gets removed. This is called from a frame command. void kaneScans() { aiScriptedAnimWait( $adeath_kane , "med_cin_kane3" , 0 , 0 ); } void dropGlass() { $andersonTrap.move( DOWN , 128 ); sys.trigger( $aTrapSound ); } // This can't end well. Anderson is stabbed, then removed. This is called from a frame command. void stabStabStab() { $adeath_anderson_1.remove(); aiScriptedAnim( $adeath_anderson_2 , "med_cin_anderson3" , 0 , 0 ); $adeath_anderson_2.getHead().playAnim(ANIMCHANNEL_ALL, "anderson_death"); } void splatter_1() { sys.trigger( $andersonSplat_1 ); } void splatter_2() { sys.trigger( $andersonSplat_2 ); } void swapAndersonGuns() { $adeath_anderson_2.hideSurface("models/weapons/mp_guns/w_mg"); $deadAndersonGun.show(); } // This will fade out, teleport the player to the appropriate end spot, and start gameplay. Called on a frame command. void fadeAndEndCinematic() { sys.fadeOut( '0 0 0' , .25 ); sys.wait(.25); $adeath_sci.remove(); $adeath_kane.remove(); $adeath_anderson_2.remove(); sys.trigger( $postAndersonDeath ); sys.trigger( $andersonCinLock ); sys.fadeIn( '0 0 0' , .25 ); // Spawn first scientist sys.trigger( $spawnFirstSci ); } //-- // End Anderson death cinematic