24 lines
810 B
Plaintext
24 lines
810 B
Plaintext
|
void main()
|
||
|
{
|
||
|
object wpPC = GetWaypointByTag("DTPitDest");
|
||
|
location lTarget= GetLocation(GetWaypointByTag("DTPit3"));
|
||
|
object oPC= GetEnteringObject();
|
||
|
int intHP= GetMaxHitPoints(oPC) -200;
|
||
|
effect eVis1 = EffectVisualEffect(VFX_DUR_FLIES);
|
||
|
|
||
|
|
||
|
if(GetIsPC(oPC))
|
||
|
{
|
||
|
CreateObject(OBJECT_TYPE_PLACEABLE, "PitFall", lTarget);
|
||
|
AssignCommand(oPC, ActionPlayAnimation(ANIMATION_LOOPING_DEAD_BACK, 1.0, 5.0));
|
||
|
AssignCommand(oPC, ActionSpeakString ("AAAAAaaaaaAAAAAAAAaaaaaaaHHhhh!!!!!"));
|
||
|
AssignCommand(oPC, PlayVoiceChat(VOICE_CHAT_PAIN3));
|
||
|
|
||
|
FadeToBlack(oPC);
|
||
|
DelayCommand(2.0, BlackScreen(oPC));
|
||
|
DelayCommand(2.0, ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectDamage(intHP, DAMAGE_TYPE_PIERCING), oPC, 0.0f));
|
||
|
DelayCommand(2.8, AssignCommand(oPC, ActionJumpToObject(wpPC)));
|
||
|
DelayCommand(4.0, FadeFromBlack(oPC));
|
||
|
}
|
||
|
}
|