Area Cleanup. Added CEP3 Skyboxes

Area Cleanup.  Added CEP3 Skyboxes.  Beholder AI fix.  NPC & Mook pass.  Added QN OnHit script.  Add XP for Traps system.
This commit is contained in:
Jaysyn904
2021-12-31 01:45:43 -05:00
parent 8c0a2224cb
commit 64c913bf07
282 changed files with 10734 additions and 10497 deletions

View File

@@ -0,0 +1,31 @@
//::///////////////////////////////////////////////
//:: Vanilla NWN On Disturbed
//:: nw_ai_ondisturb
//:: Copyright (c) 2002 Bioware Corp.
//:://////////////////////////////////////////////
/*
Default OnDisturbed event handler for NPCs.
*/
//:://////////////////////////////////////////////////
//:: Copyright (c) 2002 Floodgate Entertainment
//:: Created By: Naomi Novik
//:: Created On: 12/22/2002
//:://////////////////////////////////////////////////
#include "nw_i0_generic"
void main()
{
object oTarget = GetLastDisturbed();
// If we've been disturbed and are not already fighting,
// attack our disturber.
if (GetIsObjectValid(oTarget) && !GetIsFighting(OBJECT_SELF)) {
DetermineCombatRound(oTarget);
}
// Send the disturbed flag if appropriate.
if(GetSpawnInCondition(NW_FLAG_DISTURBED_EVENT)) {
SignalEvent(OBJECT_SELF, EventUserDefined(EVENT_DISTURBED));
}
}