generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit
This commit is contained in:
52
_module/nss/gb_death.nss
Normal file
52
_module/nss/gb_death.nss
Normal file
@@ -0,0 +1,52 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: 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);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user