LoD_PRC8/_module/nss/baf_shofls.nss
Jaysyn904 94990edc60 Initial Upload
Initial Upload
2023-09-21 21:20:34 -04:00

25 lines
1.1 KiB
Plaintext

void main()
{
object oUser = GetLastUsedBy();
object oShower = GetObjectByTag("baf_sroaly");
object oWay = GetWaypointByTag("baf_gsofuuy");
location lWay = GetLocation(oWay);
effect eShower = EffectVisualEffect(VFX_IMP_HEALING_X);
effect eDamage = EffectDamage(100, DAMAGE_TYPE_BLUDGEONING, DAMAGE_POWER_NORMAL);
effect eStun = EffectStunned();
effect eDominated = EffectCutsceneDominated();
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eDominated, oUser, 4.0f);
AssignCommand(oUser, ActionMoveToLocation(lWay, FALSE));
DelayCommand(1.0f, AssignCommand(oUser, SpeakString("You hear booming voice...", TALKVOLUME_TALK)));
DelayCommand(1.0f, AssignCommand(oUser, ActionDoCommand(SetFacingPoint(GetPositionFromLocation(GetLocation(oShower))))));
DelayCommand(2.0f, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eShower, lWay));
DelayCommand(2.3f, ApplyEffectToObject(DURATION_TYPE_INSTANT, eDamage, oUser));
DelayCommand(2.3f, ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eStun, oUser, 15.0f));
DelayCommand(3.0f, AssignCommand(oUser, SpeakString("Well, that was refreshing!", TALKVOLUME_TALK)));
}