RoT2_PRC8/_module/nss/emote_drunk.nss
Jaysyn904 499aba4eb3 Initial upload
Initial upload
2023-09-25 18:13:22 -04:00

41 lines
1.1 KiB
Plaintext

//Trinity Emote System, by Tab
void main()
{
object oPC = GetPCSpeaker();
object user = GetLastUsedBy();
object user1 = GetLastUsedBy();
object user2 = GetLastUsedBy();
object user3 = GetLastUsedBy();
AssignCommand(oPC, ActionPlayAnimation(ANIMATION_LOOPING_PAUSE_DRUNK, 1.0f, 30.0f));
object oTarget;
oTarget = oPC;
int nInt;
nInt = GetObjectType(oTarget);
if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_DUR_BARD_SONG), oTarget);
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_DUR_BARD_SONG), GetLocation(oTarget));
oTarget = oPC;
nInt = GetObjectType(oTarget);
effect eEffect;
eEffect = EffectVisualEffect(VFX_DUR_BARD_SONG);
if (nInt != OBJECT_TYPE_WAYPOINT)
DelayCommand(5.0, ApplyEffectToObject(DURATION_TYPE_INSTANT, eEffect, oTarget));
else
DelayCommand(5.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eEffect, GetLocation(oTarget)));
DelayCommand(3.0,PlayVoiceChat(VOICE_CHAT_TALKTOME,user));
DelayCommand(3.0,PlayVoiceChat(VOICE_CHAT_LAUGH,user1));
DelayCommand(3.0,PlayVoiceChat(VOICE_CHAT_CHEER,user2));
DelayCommand(3.0,PlayVoiceChat(VOICE_CHAT_LAUGH,user3));
}