Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Cutscene Error
Cutscene Error
2006-07-03, 10:43 AM #1
I've posted this cog before; it's not working again. I didn't change anything, though! It won't start for some reason. :mad:

Code:
# Jedi Knight Cog Script
#
# cut1.cog
#
# Bank Cutscene
#  
# by ej_advent
#
# This Cog is Not supported by LucasArts Entertainment Co

symbols

message      startup                                                          
message      entered                                                          

sector       startcutscene
                                                   
thing        cam1                                                              
thing        cam2                                                             
thing        cam3                                                              

int          old_camera                         local                         
int          player                             local                         
int          active=0                           local                         

end                                                                           

# ========================================================================================

code

startup:

   player = GetLocalPlayerThing();

   Return;

# ........................................................................................

entered:
	if(active != 0) Return;
	active = 1;

	StopThing(player);
	selectweapon(player, 1);
	SetActorFlags(player, 0xa00000);
	old_camera = GetCurrentCamera();

	SetCameraFocus(0, cam1);
	SetCurrentCamera(0);

	Print("Jens, I saw you on the camera.");
	Sleep(4.0);

	SetCameraFocus(0, cam2);
	SetCurrentCamera(0);

	Print("You unlocked my box for me?");
	Sleep(3.0);

	SetCameraFocus(0, cam1);
	SetCurrentCamera(0);

	Print("Yes. You have a key and a backpack with several data discs.");
	Sleep(4.0);

	SetCameraFocus(0, cam2)
	SetCurrentCamera(0)

	Print("The key is for a back door into the starport, and those data discs...");
	Sleep(4.0);

	SetCameraFocus(0, cam3);
	SetCurrentCamera(0);

	Print("Don't tell me; I don't need to know.");
	Sleep(5.0);

	SetCameraFocus(0, cam2)
	SetCurrentCamera(0)

	Print("Thanks, Ebsim. Penumbra's coming, and those discs might be important.");
	Sleep(6.0);

	SetCameraFocus(0, cam1);
	SetCurrentCamera(0);

	Print("I thought you were done with Penumbra.");
	Sleep(2.0);
	
	SetCameraFocus(0, cam2)
	SetCurrentCamera(0)

	Print("I thought I was too. Hargin must have found my old journal.");
	Sleep(4.0);

	SetCameraFocus(0, cam3);
	SetCurrentCamera(0);

	Print("Good luck, Jens.  Hopefully I'll see you again soon.");
	Sleep(3.0);

	SetCameraFocus(0, cam2)
	SetCurrentCamera(0)

	Print("That's another one I owe you, Ebsim.");
	Sleep(3.0);

        SetCameraFocus(0, player);
        SetCurrentCamera(old_camera);

	Print("Don't worry about it. You're going to have plenty on your hands.");
	Sleep(2.0);

	SetCameraFocus(0, cam1);
	SetCurrentCamera(0);

	Print("I don't want you to worry about this.");
	Sleep(2.0);

        SetCameraFocus(0, player);
        SetCurrentCamera(old_camera);
        ClearActorFlags(player, 0xa00000);

   return;	

end
2006-07-03, 11:02 AM #2
Make sure its set up properly in the level, but on a glance, it looks okay syntax and logically.
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack

↑ Up to the top!