I am attempting to create a cutscene similar to the one found in level 7 when facing Yun. I modified the 07_RAHNLINES.cog to what I wanted it to do. I basically want to watch a quick pan of the arena before playing for the first time. I already made the KEY file, but I just need a cog that will play it right for me.
This is what I have. Please correct any mistakes I may have.
Here's what I wanted. 1. Run through my KEY file to the end. 2. Sleep at the last position of the KEY for 2 seconds. 3. Begin normal opening sequence (Start at a WALKPLAYER position with a saber).
Can anyone give me an idea on how to make it work? It would be greatly appreciated!
------------------
BeefCaike - Creator Of The Most Anticipated Level Series For Jedi Knight! The Dralloc Series
This is what I have. Please correct any mistakes I may have.
Code:
# BeefyKey.cog # Opening Cutscene in Dralloc Arena # You may use this cog for any opening cutscene in any level. # (C) Beefy Productions 2000. symbols message startup thing camera1 sound line1 keyframe keyfile end # ========================================================================================= code startup: SetCurrentCamera(0); SetCameraFocus(0, camera1); PlayKey(camera1, keyfile, 1, 2); playerx = GetLocalPlayerThing(); SetInv(playerx, 10, 1); jkSetFlags(playerx, 0x1); // Playerx starts with a saber SetInv(playerx, 1, 1.0); SetInv(playerx, 10, 1.0); // Initialize weapon. SetFireWait(playerx, -1); SetMountWait(playerx, 0); SetCurInvWeapon(playerx, 0); SelectWeapon(playerx, 10); SetActorFlags(playerx, 0xa00000); Sleep(2); PlaySoundLocal(line1, 1, 0, 0); ClearActorFlags(playerx, 0xa00000); SetCameraFocus(0, playerx); SetCurrentCamera(0); // Go to external if sabercam is enabled. if (jkGetSaberCam() == 1) CycleCamera(); DestroyThing(camera1); return; end
Here's what I wanted. 1. Run through my KEY file to the end. 2. Sleep at the last position of the KEY for 2 seconds. 3. Begin normal opening sequence (Start at a WALKPLAYER position with a saber).
Can anyone give me an idea on how to make it work? It would be greatly appreciated!
------------------
BeefCaike - Creator Of The Most Anticipated Level Series For Jedi Knight! The Dralloc Series