65 lines
2.3 KiB
Plaintext
65 lines
2.3 KiB
Plaintext
|
#include "in_g_cutscene"
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
object oPC = GetFirstPC();
|
||
|
object oBash = GetObjectByTag("Basharat");
|
||
|
object oWorlga = GetObjectByTag("GeneralWorlga");
|
||
|
object oSivilan = GetObjectByTag("Sivilan");
|
||
|
//object oWaypoint = GetObjectByTag("WP_Bash_MORPH");
|
||
|
|
||
|
// Find waypoints
|
||
|
object oWPPC_2 = GetWaypointByTag("wp_in_pbbsh1c");
|
||
|
|
||
|
if (!GetIsPC(oPC)) return;
|
||
|
|
||
|
int DoOnce = GetLocalInt(oPC, GetTag(OBJECT_SELF));
|
||
|
|
||
|
if (DoOnce==TRUE) return;
|
||
|
|
||
|
// Find the direction the player's facing in at the start of the scene
|
||
|
float fFace = GetFacing(oPC);
|
||
|
|
||
|
|
||
|
GestaltStartCutscene(oPC, "ent_bash_cscene", TRUE, TRUE, FALSE, TRUE, TRUE, 0);
|
||
|
|
||
|
|
||
|
//GestaltClearAssociates(0.0, oPC, 33, 1);
|
||
|
//GestaltInvisibility(0.0, oPC);
|
||
|
//GestaltCameraFade(0.0, oPC, FADE_OUT,FADE_SPEED_FASTEST);
|
||
|
//GestaltCameraFade(3.0, oPC, FADE_IN,FADE_SPEED_FASTEST);
|
||
|
//GestaltCameraFacing (180.0,10.0, 10.0, 45.0, oPC, CAMERA_TRANSITION_TYPE_SNAP);
|
||
|
|
||
|
// Move player and guard captain to target waypoints at a walk in 13.0 seconds
|
||
|
GestaltActionMove (0.0, oPC, oWPPC_2,FALSE,0.0,2.0);
|
||
|
|
||
|
GestaltSpeak(7.0, oBash, "If we can get back to businesss, I have the Angarngi Tower Treassure here, ready for auction.");
|
||
|
|
||
|
GestaltSpeak(10.5, oWorlga, "Yes, yes, Basharat. Enough with the games and snake-like accent. Where is the object you called me in here for?!");
|
||
|
|
||
|
GestaltActionAnimate (10.5, oWorlga, ANIMATION_LOOPING_TALK_FORCEFUL);
|
||
|
|
||
|
GestaltSpeak(15.0, oBash, "Ah, the perfect way to invade Ilthmar, General. And there is something for the Mogite Magisscian here as well.");
|
||
|
|
||
|
GestaltSpeak(20.0, oSivilan, "Where is the Mogite artifact, Basharat?");
|
||
|
|
||
|
GestaltActionAnimate (20.0, oSivilan, ANIMATION_LOOPING_TALK_FORCEFUL);
|
||
|
|
||
|
GestaltSpeak(27.0, oWorlga, "Very interesting. Wait, what is this? Intruders in your house, Basharat?");
|
||
|
|
||
|
GestaltCameraSetup (0.0, oPC, 270.0, 20.0, 20.0); // 270.0,20.0,20.0
|
||
|
|
||
|
GestaltCameraSmooth (10.0, 0.0, -4.0, 0.0, 0.0, 0.0, 8.0, 5.0, 30.0, oPC); // 270.0,10.0,40.0
|
||
|
|
||
|
GestaltCameraSmooth (15.0, 0.0, 0.0, 8.0, 18.0, 0.0, -8.0, 5.0, 30.0, oPC); // 315.0,10.0,40.0
|
||
|
|
||
|
GestaltCameraSmooth (30.0, 18.0, 0.0, -8.0, 0.0, 0.0, 180.0, 15.0, 30.0, oPC); // 360.0,10.0,20.0
|
||
|
|
||
|
//GestaltCameraMove (31.0, fFace + 180.0,15.0,30.0, fFace + 90.0, 12.0,50.0,10.0,30.0,oPC);
|
||
|
|
||
|
GestaltStopCutscene (33.0, oPC);
|
||
|
|
||
|
|
||
|
DestroyObject(OBJECT_SELF);
|
||
|
}
|