AOC_PRC8/_module/nss/gb_death.nss
Jaysyn904 5e558169a0 Initial Commit
Initial Commit
2025-04-03 11:24:16 -04:00

53 lines
1.8 KiB
Plaintext

//::///////////////////////////////////////////////
//:: Name x2_def_ondeath
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
Default OnDeath script
*/
//:://////////////////////////////////////////////
//:: Created By: Keith Warner
//:: Created On: June 11/03
//:://////////////////////////////////////////////
#include "x0_i0_petrify"
#include "spawner"
#include "rank"
void main()
{
object oPC = GetLastKiller();
object oMod = GetModule();
object oTarget= OBJECT_SELF;
object oSpawner = GetObjectByTag("spawner");
object oP1 = GetObjectByTag("pool1");
object oP2 = GetObjectByTag("pool2");
object oP3 = GetObjectByTag("fountain1");
object oP4 = GetObjectByTag("fountain2");
int oGameMode = GetLocalInt(oMod, "gamemode");
int nInt1 = GetLocalInt(oMod, "st1");
int nInt2 = GetLocalInt(oMod, "st2");
int nInt3 = GetLocalInt(oMod, "st3");
int nInt4 = GetLocalInt(oMod, "st4");
int nInt5 = GetLocalInt(oMod, "st5");
location lTarget;
int nInt;
string oStar = GetTag(oTarget);
DoEffect(7.0, VFX_DUR_ELEMENTAL_SHIELD, oStar);
DoEffect(8.0, VFX_IMP_LIGHTNING_M, oStar);
DoEffect(8.5, VFX_IMP_LIGHTNING_M, oStar);
DoEffect(8.7, VFX_IMP_LIGHTNING_M, oStar);
DoEffect(9.2, VFX_IMP_LIGHTNING_M, oStar);
DoEffect(9.6, VFX_IMP_LIGHTNING_M, oStar);
DoEffect(9.7, VFX_IMP_LIGHTNING_M, oStar);
DoEffect(9.8, VFX_IMP_LIGHTNING_M, oStar);
DoEffect(9.9, VFX_FNF_MYSTICAL_EXPLOSION, oStar);
nInt = GetObjectType(oTarget);
if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_DEATH), oTarget);
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_DEATH), GetLocation(oTarget));
ExecuteScript("nw_c2_default7", OBJECT_SELF);
}