34 lines
797 B
Plaintext
34 lines
797 B
Plaintext
//Trinity Emote System, by Tab
|
|
void main()
|
|
{
|
|
|
|
object oPC = GetPCSpeaker();
|
|
object user = GetLastUsedBy();
|
|
object user1 = GetLastUsedBy();
|
|
object user2 = GetLastUsedBy();
|
|
AssignCommand(oPC, ActionPlayAnimation(ANIMATION_LOOPING_MEDITATE, 1.0f, 27.0f));
|
|
|
|
object oTarget;
|
|
oTarget = oPC;
|
|
|
|
int nInt;
|
|
nInt = GetObjectType(oTarget);
|
|
|
|
effect eEffect;
|
|
eEffect = EffectVisualEffect(VFX_IMP_KNOCK);
|
|
|
|
DelayCommand(3.0,PlayVoiceChat(VOICE_CHAT_HEALME,user));
|
|
DelayCommand(3.0,PlayVoiceChat(VOICE_CHAT_NEARDEATH,user1));
|
|
DelayCommand(3.0,PlayVoiceChat(VOICE_CHAT_HEALME,user2));
|
|
|
|
|
|
if (nInt != OBJECT_TYPE_WAYPOINT)
|
|
DelayCommand(25.0, ApplyEffectToObject(DURATION_TYPE_INSTANT, eEffect, oTarget));
|
|
else
|
|
DelayCommand(25.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eEffect, GetLocation(oTarget)));
|
|
|
|
|
|
|
|
}
|
|
|