Initial commit

Initial commit [v9.7]
This commit is contained in:
Jaysyn904
2025-04-03 12:54:47 -04:00
parent ff5835fcc7
commit ebc0c6a9b2
11298 changed files with 9432842 additions and 2 deletions

View File

@@ -0,0 +1,38 @@
//::///////////////////////////////////////////////
//:: Name x2_def_ondamage
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
Default OnDamaged script
*Modified by Mr. E. Mustard to apply injury
system to npcs*
*/
//:://////////////////////////////////////////////
//:: Created By: Keith Warner
//:: Created On: June 11/03
//:://////////////////////////////////////////////
#include "j_injury_lib"
void main()
{
//--------------------------------------------------------------------------
// GZ: 2003-10-16
// Make Plot Creatures Ignore Attacks
//--------------------------------------------------------------------------
if (GetPlotFlag(OBJECT_SELF))
{
return;
}
//Call weaken and injury functions
DelayCommand(0.5, j_injure(OBJECT_SELF));
DelayCommand(0.75, j_weaken(OBJECT_SELF));
//--------------------------------------------------------------------------
// Execute old NWN default AI code
//--------------------------------------------------------------------------
ExecuteScript("nw_c2_default6", OBJECT_SELF);
}