Files
HeroesStone_PRC8/_module/nss/sgw_c2_zombie_od.nss
Jaysyn904 1eefc84201 Initial Commit
Initial Commit.
2025-09-14 15:40:46 -04:00

36 lines
1.2 KiB
Plaintext

//::///////////////////////////////////////////////
//:: Name sgw_c2_zombie_od
//:://////////////////////////////////////////////
/*
Default OnDeath script for zombies
*/
//:://////////////////////////////////////////////
//:: Created By: ShadowLord(ShadowNWN) @ ShadowGameWorld.net
//:: Created On: Feb 11, 2004
//:://////////////////////////////////////////////
void BloodExplode(object oVictim = OBJECT_SELF, int bAffectPlot = FALSE)
{
if ((!GetPlotFlag(oVictim) || bAffectPlot) &&
(GetObjectType(oVictim) == OBJECT_TYPE_CREATURE))
// If the victim doesn't have the plot flag, it works
// If bAffectPlot is TRUE, it works
// Only works on creatures
{
// Create the effects: the explosion, and the death
effect eBloodShower = EffectVisualEffect(VFX_COM_CHUNK_RED_LARGE);
effect eDeath = EffectDeath();
// Make sure the victim can be killed
SetPlotFlag(oVictim, FALSE);
// Apply the effects
//ApplyEffectToObject(DURATION_TYPE_INSTANT, eDeath, oVictim);
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eBloodShower, GetLocation(oVictim));
}
}
void main()
{
BloodExplode();
ExecuteScript("nw_c2_default7", OBJECT_SELF);
}