Updated for NWNEE 37-13

Updated for NWNEE 37-13.  Updated NWNxEE scripts.  CODI Core AI tweaks.  Added Diamond Golem AI.  Full compile.  Updated release archive.
This commit is contained in:
Jaysyn904
2025-01-10 19:01:12 -05:00
parent 37c79b6d57
commit ce72b8d120
685 changed files with 6642 additions and 7699 deletions

View File

@@ -1,4 +1,5 @@
#include "no_inc_ptypes"
#include "prc_inc_racial"
//functions
int GetAOEThreat( object oArea, object oEnt=OBJECT_SELF )
@@ -276,7 +277,7 @@ object GetLowestHPAllyNoHealer( float fRad=15.0, int iLim=0, object oEnt=OBJECT_
while ( GetIsObjectValid( oSub ) && GetDistanceBetween( oEnt, oSub ) < fRad )
{
iU = GetRacialType( oSub ) == RACIAL_TYPE_UNDEAD;
iU = MyPRCGetRacialType( oSub ) == RACIAL_TYPE_UNDEAD;
if ( ( iLive || iU ) && ( !iLive || !iU ) )
{
iDam = GetMaxHitPoints( oSub ) - GetCurrentHitPoints( oSub );
@@ -1330,7 +1331,7 @@ int GetIsValidTurnTarget( object oT, int iL=0, object oEnt=OBJECT_SELF )
iVermin = GetHasFeat( FEAT_PLANT_DOMAIN_POWER ) + GetHasFeat( FEAT_ANIMAL_COMPANION );
iConstructs = GetHasFeat( FEAT_DESTRUCTION_DOMAIN_POWER );
iOutsider = GetHasFeat( FEAT_GOOD_DOMAIN_POWER ) + GetHasFeat( FEAT_EVIL_DOMAIN_POWER );
iRace = GetRacialType( oT );
iRace = MyPRCGetRacialType( oT );
if ( iRace == RACIAL_TYPE_UNDEAD )
{
@@ -2011,7 +2012,7 @@ vector GetEnemyPlanarVector( float fRad=10.0, object oEnt=OBJECT_SELF )
{
iCnt2 = 0;
iCnt3 = 0;
if ( GetRacialType( oT1 ) == RACIAL_TYPE_OUTSIDER || GetRacialType( oT1 ) == RACIAL_TYPE_ELEMENTAL )
if ( MyPRCGetRacialType( oT1 ) == RACIAL_TYPE_OUTSIDER || MyPRCGetRacialType( oT1 ) == RACIAL_TYPE_ELEMENTAL )
{
//PrintString( "GEPV: " + GetName( oT1 ) );
if ( GetCurrentAction( oT1 ) != ACTION_MOVETOPOINT )
@@ -2027,7 +2028,7 @@ vector GetEnemyPlanarVector( float fRad=10.0, object oEnt=OBJECT_SELF )
//don't count them as target if they're on the move
if ( GetCurrentAction( oT2 ) != ACTION_MOVETOPOINT )
{
if ( GetRacialType( oT2 ) == RACIAL_TYPE_OUTSIDER || GetRacialType( oT2 ) == RACIAL_TYPE_ELEMENTAL )
if ( MyPRCGetRacialType( oT2 ) == RACIAL_TYPE_OUTSIDER || MyPRCGetRacialType( oT2 ) == RACIAL_TYPE_ELEMENTAL )
{
iCnt3++;
vT = vT + GetPosition( oT2 ) - vU;
@@ -2367,7 +2368,7 @@ int IsBrainExtractable( object oT )
if ( GetIsObjectValid( oT ) )
{
iEff = GetEffectsOnObject( oT );
iR = GetRacialType( oT );
iR = MyPRCGetRacialType( oT );
if ( iEff & NO_EFFECT_PETRIFY || GetLocalInt( oT, "#EXTRACTING" ) ||
iR == RACIAL_TYPE_CONSTRUCT || iR == RACIAL_TYPE_ELEMENTAL || iR == RACIAL_TYPE_UNDEAD || iR == RACIAL_TYPE_VERMIN )