PDA

View Full Version : Cutscene Player Actor



Quilty
10-24-2000, 10:08 PM
http://forums.massassi.net/html/confused.gif

For some reason, I simply cannot figure out how to replace the Player with an Actor that I can move around in a cutscene. I've followed the tutorial, and it suggests to create an actor thing based on a template called "KyleBryarActor." That template is not in master.tpl. What is it?

I think if I knew what precise template entry I needed for my walkplayer replacement, I would be fine. I am able to stop the player, make him invisible, and create a replacement, but this replacement does not move.

I've done many complex cutscenes and I can get other characters (such as Imperial Commandos) to move around in the middle of a cutscene.

What am I doing wrong?

Here's the cog:

--------------------------------------
symbols

message entered

sector entry linkid=1

sound Takeoff=crowtakeoff.wav local
sound Flight=16rumble01.wav

thing freighter

thing camera
thing camera2
thing camera3

thing player local
thing Kyle local

template gunless=StandIn local

keyframe leave=fly4.key local

int played=0 local

end

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

code

entered:

If (GetSenderId() == 1)
{
//play once just in case
if (played == 1) Return;
played=1; //ensures played only once.

// Stop player
jkBeginCutscene();
player = GetLocalPlayerThing();
SetActorFlags(player, 0xa00000);
StopThing(player);

// Replace player with "Kyle"
Kyle = CreateThing(gunless, player);
StopThing(Kyle);
SetThingCurGeoMode(player, 0);

//Scene 1: Establish freighter
SetCameraFocus(0, camera3);
SetCurrentCamera(0);
Sleep(3.0);

// Scene 2: Kyle runs to the freighter
SetCameraFocus(0, camera);
SetCurrentCamera(0);
Sleep(2.0);
AISetMoveSpeed(Kyle, 1.0);
AISetLookPos(Kyle, GetThingPos(freighter));
AISetMoveThing(Kyle, freighter);
Sleep(6.0);

// Scene 3: Cut to: Freighter takes off
SetCameraFocus(0, camera2);
SetCurrentCamera(0);
PlaySoundLocal(Takeoff, 1, 0, 132);
PlayKey(freighter, leave, 1, 0x4);
Sleep(GetSoundLen(TakeOff));
PlaySoundThing(flight, freighter, 1.0, -1, 300.0, 0x1);
Sleep(15);

// wrap-up
jkEndCutscene ();
destroyThing(Kyle);
SetCameraFocus(0, jkGetLocalPlayer());
ClearActorFlags(player, 0xa00000);
Sleep(2.0);

}

Return;

end
------------------------------------

------------------
"Dead Reckoning"
http://www.geocities.com/quilty00

[This message has been edited by Quilty (edited October 24, 2000).]

[This message has been edited by Quilty (edited October 25, 2000).]