173 lines
5.1 KiB
Plaintext
173 lines
5.1 KiB
Plaintext
#include "g_startfireworks"
|
|
#include "cutscene_ch1"
|
|
#include "cutscene_ch2"
|
|
|
|
/*case 1: iVoice = VOICE_CHAT_ATTACK;break;
|
|
case 2: iVoice = VOICE_CHAT_BATTLECRY1;break;
|
|
case 3: iVoice = VOICE_CHAT_BATTLECRY2;break;
|
|
case 4: iVoice = VOICE_CHAT_BATTLECRY3;break;
|
|
case 5: iVoice = VOICE_CHAT_THREATEN;break;
|
|
case 6: iVoice = VOICE_CHAT_CHEER;break;
|
|
case 7: iVoice = VOICE_CHAT_CUSS;break;
|
|
case 8: iVoice = VOICE_CHAT_FLEE;break;
|
|
case 9: iVoice = VOICE_CHAT_GOODBYE;break;
|
|
case 10: iVoice = VOICE_CHAT_THANKS;break;
|
|
case 11: iVoice = VOICE_CHAT_WEAPONSUCKS;break;
|
|
case 12: iVoice = VOICE_CHAT_LAUGH;break;
|
|
case 13: iVoice = VOICE_CHAT_HELLO;break;
|
|
case 14: iVoice = VOICE_CHAT_FOLLOWME;break;
|
|
case 15: iVoice = VOICE_CHAT_GOODIDEA;break;
|
|
case 16: iVoice = VOICE_CHAT_REST;break;
|
|
case 17: iVoice = VOICE_CHAT_YES;break;
|
|
|
|
GestaltApplyEffect(0.0, oPC, eEffect, INSTANT, 0.0, "");
|
|
GestaltActionAnimate(0.0, oPC, ANIMATION_FIREFORGET_BOW);
|
|
*/
|
|
void FWEffect2(float oDelay, int oEffect, string oWaypoint)
|
|
{
|
|
object oTarget;
|
|
oTarget = GetObjectByTag(oWaypoint);
|
|
int nInt;
|
|
nInt = GetObjectType(oTarget);
|
|
effect eEffect;
|
|
eEffect = EffectVisualEffect(oEffect);
|
|
if (nInt != OBJECT_TYPE_WAYPOINT)
|
|
DelayCommand(oDelay, ApplyEffectToObject(DURATION_TYPE_INSTANT,
|
|
eEffect, oTarget));
|
|
else
|
|
DelayCommand(oDelay, ApplyEffectAtLocation(DURATION_TYPE_INSTANT,
|
|
eEffect, GetLocation(oTarget)));
|
|
}
|
|
|
|
|
|
void main()
|
|
{
|
|
object oMod = GetModule();
|
|
object oPC = GetPCSpeaker();
|
|
|
|
object oNPC = OBJECT_SELF;
|
|
object oArea = GetArea(oPC);
|
|
object oSource = GetObjectByTag("FireworksSource");
|
|
|
|
object oWP1 = GetWaypointByTag("pc_rug");
|
|
object oWP2 = GetWaypointByTag("npc_rug");
|
|
object oWP3 = GetWaypointByTag("show_face");
|
|
object oWP4 = GetWaypointByTag("rug_aim");
|
|
object oWP4a = GetWaypointByTag("rug_aim2");
|
|
object oWP5 = GetWaypointByTag("lake_wp");
|
|
object oWP6 = GetWaypointByTag("lake_wp1");
|
|
|
|
SetLocalInt(oSource,"FireworkCount", 10);
|
|
//SetLocalInt(oMod, "one_only", 0);
|
|
|
|
|
|
GestaltStartCutscene(oPC, "",TRUE,TRUE,TRUE,TRUE,2);
|
|
GestaltCameraFade(0.0, oPC, FADE_IN,FADE_SPEED_SLOW);
|
|
|
|
DelayCommand(25.0, StartShow(oPC));
|
|
|
|
|
|
GestaltActionMove(0.0,oNPC, oWP2, FALSE, 0.0, 0.0);
|
|
GestaltActionMove(0.5,oPC, oWP1, FALSE, 0.0, 0.0);
|
|
|
|
GestaltFace(2.0, oPC, 0.0, 2, oNPC);
|
|
GestaltFace(2.2, oNPC, 0.0, 2, oPC);
|
|
|
|
GestaltFace(15.0, oPC, 0.0, 2, oWP3);
|
|
GestaltFace(15.5, oNPC, 0.0, 2, oWP3);
|
|
|
|
GestaltActionAnimate(15.5, oPC, ANIMATION_LOOPING_SIT_CROSS, 210.0);
|
|
|
|
GestaltSpeak(5.0, oPC, "I can hardly wait!",
|
|
ANIMATION_NONE);
|
|
GestaltSpeak(9.0, oNPC, "I too never tire of watching the colored lights.....ok ready?",
|
|
ANIMATION_NONE);
|
|
GestaltSpeak(13.0, oPC, "Let's go!",
|
|
ANIMATION_NONE);
|
|
GestaltSpeak(17.0, oNPC, "Ok...here goes...!",
|
|
ANIMATION_NONE);
|
|
|
|
GestaltActionSpellCast(19.0, oNPC, oWP3, SPELL_ISAACS_GREATER_MISSILE_STORM,
|
|
TRUE);
|
|
FWEffect2(21.0, VFX_IMP_LIGHTNING_M, "show_face");
|
|
|
|
GestaltActionAnimate(22.0, oNPC, ANIMATION_LOOPING_SIT_CROSS, 400.0);
|
|
GestaltSpeak(23.0, oNPC, "Ok! Time to sit back, relax and watch the sky ignite!",
|
|
ANIMATION_NONE);
|
|
|
|
CSvoice(55.0, oPC, 6);
|
|
CSvoice(56.0, oNPC, 6);
|
|
|
|
CSvoice(60.0, oPC, 6);
|
|
CSvoice(61.0, oNPC, 6);
|
|
CSvoice(63.0, oPC, 12);
|
|
CSvoice(62.0, oNPC, 12);
|
|
|
|
CSvoice(89.0, oPC, 6);
|
|
CSvoice(88.0, oNPC, 6);
|
|
|
|
CSvoice(121.0, oPC, 6);
|
|
CSvoice(120.0, oNPC, 6);
|
|
CSvoice(122.0, oPC, 12);
|
|
CSvoice(123.0, oNPC, 12);
|
|
|
|
CSvoice(130.0, oPC, 12);
|
|
CSvoice(130.0, oNPC, 12);
|
|
|
|
|
|
GestaltSpeak(134.0, oPC, "WOW! That was awesome!",
|
|
ANIMATION_NONE);
|
|
GestaltSpeak(138.0, oNPC, "Yeah, that was a good one!",
|
|
ANIMATION_NONE);
|
|
GestaltSpeak(139.0, oNPC, "Come back anytime. I'll be here ready to go!",
|
|
ANIMATION_NONE);
|
|
CSvoice(142.0, oPC, 10);
|
|
CSvoice(144.5, oNPC, 12);
|
|
CSvoice(146.5, oNPC, 10);
|
|
|
|
|
|
SetLocalFloat(oPC,"fCameraDirection",290.0);
|
|
SetLocalFloat(oPC,"fCameraRange",12.0);
|
|
SetLocalFloat(oPC,"fCameraPitch",65.0);
|
|
|
|
|
|
GestaltCameraMove (0.0,
|
|
290.0,12.0,65.0,
|
|
390.0,7.0,80.0,
|
|
10.0,30.0,oPC);
|
|
|
|
|
|
GestaltCameraMove (12.0,
|
|
390.0,7.0,80.0,
|
|
530.0,11.0,85.0,
|
|
7.0,30.0,oPC);
|
|
|
|
|
|
GestaltCameraMove (25.0,
|
|
530.0,11.0,85.0,
|
|
555.0,13.0,100.0,
|
|
12.0,30.0,oPC);
|
|
|
|
GestaltCameraMove (108.0,
|
|
555.0,13.0,100.0,
|
|
555.0,20.0,100.0,
|
|
3.0,30.0,oPC);
|
|
|
|
GestaltCameraMove (115.0,
|
|
555.0,20.0,100.0,
|
|
555.0,20.0,70.0,
|
|
15.0,30.0,oPC);
|
|
|
|
|
|
|
|
GestaltCameraMove (132.0,
|
|
555.0,20.0,70.0,
|
|
710.0,9.0,80.0,
|
|
5.0,30.0,oPC);
|
|
|
|
|
|
GestaltCameraFade (147.0, oPC, FADE_OUT, FADE_SPEED_SLOW);
|
|
GestaltStopCutscene (150.0, oPC);
|
|
|
|
}
|