80 lines
1.3 KiB
Plaintext
80 lines
1.3 KiB
Plaintext
|
//::///////////////////////////////////////////////
|
||
|
//:: Custom User Defined Event
|
||
|
//:: FileName
|
||
|
//:: Copyright (c) 2001 Bioware Corp.
|
||
|
//:://////////////////////////////////////////////
|
||
|
/*
|
||
|
|
||
|
*/
|
||
|
//:://////////////////////////////////////////////
|
||
|
//:: Created By:
|
||
|
//:: Created On:
|
||
|
//:://////////////////////////////////////////////
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
int nUser = GetUserDefinedEventNumber();
|
||
|
|
||
|
if(nUser == 1001) //HEARTBEAT
|
||
|
{
|
||
|
int nRandom=Random(4);
|
||
|
|
||
|
if (nRandom==0)
|
||
|
{
|
||
|
ClearAllActions();
|
||
|
PlayAnimation(ANIMATION_LOOPING_PAUSE_DRUNK,1.0,7.0);
|
||
|
}
|
||
|
|
||
|
if (nRandom==1)
|
||
|
{
|
||
|
ClearAllActions();
|
||
|
PlaySound("as_pl_belchingm2");
|
||
|
ActionPlayAnimation(ANIMATION_LOOPING_PAUSE_DRUNK,1.0,7.0);
|
||
|
}
|
||
|
|
||
|
if (nRandom==2)
|
||
|
{
|
||
|
ActionRandomWalk();
|
||
|
}
|
||
|
|
||
|
if (nRandom==3)
|
||
|
{
|
||
|
ActionPlayAnimation(ANIMATION_FIREFORGET_DRINK);
|
||
|
ActionPlayAnimation(ANIMATION_LOOPING_PAUSE_DRUNK,1.0,7.0);
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|
||
|
else if(nUser == 1002) // PERCEIVE
|
||
|
{
|
||
|
|
||
|
}
|
||
|
else if(nUser == 1003) // END OF COMBAT
|
||
|
{
|
||
|
|
||
|
}
|
||
|
else if(nUser == 1004) // ON DIALOGUE
|
||
|
{
|
||
|
PlaySound("as_pl_belchingm1");
|
||
|
ActionPlayAnimation(ANIMATION_LOOPING_PAUSE_DRUNK,1.0,7.0);
|
||
|
}
|
||
|
else if(nUser == 1005) // ATTACKED
|
||
|
{
|
||
|
|
||
|
}
|
||
|
else if(nUser == 1006) // DAMAGED
|
||
|
{
|
||
|
|
||
|
}
|
||
|
else if(nUser == 1007) // DEATH
|
||
|
{
|
||
|
|
||
|
}
|
||
|
else if(nUser == 1008) // DISTURBED
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|