Initial Commit
Initial Commit [v1.32PRC8]
This commit is contained in:
42
_module/nss/no_ai_dth.nss
Normal file
42
_module/nss/no_ai_dth.nss
Normal file
@@ -0,0 +1,42 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: On Death
|
||||
//::
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
Shouts to allies that they have been killed
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
#include "no_lib_data"
|
||||
#include "no_inc"
|
||||
|
||||
void main()
|
||||
{
|
||||
if (GetLocalInt(OBJECT_SELF,"NoAI") == 1)
|
||||
{
|
||||
ExecuteScript("nw_c2_default7",OBJECT_SELF);
|
||||
}
|
||||
else
|
||||
{
|
||||
//float fDieDelay = GetLocalFloat( OBJECT_SELF, "#DECAYDELAY" );
|
||||
//corpse decay deactivated for Murray module
|
||||
float fDieDelay = 10.0;
|
||||
|
||||
ClearAllActions();
|
||||
//broadcast death
|
||||
SpeakString( "BC_DEAD", TALKVOLUME_SILENT_TALK );
|
||||
//PrintString( GetName( OBJECT_SELF ) + " killed by " + GetName( GetLastKiller() ) );
|
||||
if ( GetName( GetItemInSlot( INVENTORY_SLOT_CARMOUR, OBJECT_SELF ) ) == "Balor Properties" )
|
||||
{
|
||||
ExecuteScript( "nw_s3_balordeth", OBJECT_SELF );
|
||||
}
|
||||
|
||||
DelayCommand( fDieDelay, ExecuteScript( "no_scr_cleanvars", OBJECT_SELF ) );
|
||||
DelayCommand( fDieDelay + 0.5, ExecuteScript( "no_scr_excorpse", OBJECT_SELF ) );
|
||||
//signal death to userdef
|
||||
SignalEvent( OBJECT_SELF, EventUserDefined( 1007 ) );
|
||||
|
||||
ExecuteScript("en4_mobdeath",OBJECT_SELF);
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user