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:
@@ -10,6 +10,7 @@ Some changes have been made to these functions where necessary.
|
||||
#include "x0_i0_position"
|
||||
#include "x0_i0_voice"
|
||||
#include "no_inc_ptypes"
|
||||
#include "prc_inc_racial"
|
||||
|
||||
//Master Constants
|
||||
int NW_FLAG_SPECIAL_CONVERSATION = 0x00000001;
|
||||
@@ -167,7 +168,7 @@ void SetListeningPatterns()
|
||||
}
|
||||
|
||||
SetListening(OBJECT_SELF, TRUE);
|
||||
|
||||
|
||||
//NO: Broadcast listen patterns
|
||||
SetListenPattern( OBJECT_SELF, "BC_DEAD", 691 );
|
||||
SetListenPattern( OBJECT_SELF, "BC_FIGHTING", 699 );
|
||||
@@ -280,7 +281,7 @@ void WalkWayPoints(int nRun = FALSE, float fPause = 1.0) //Run first circuit
|
||||
SetSpawnInCondition(NW_FLAG_AMBIENT_ANIMATIONS, FALSE);
|
||||
SetSpawnInCondition(NW_FLAG_IMMOBILE_AMBIENT_ANIMATIONS, FALSE);
|
||||
}
|
||||
|
||||
|
||||
if(GetIsObjectValid(oWay1))
|
||||
{
|
||||
int nNth = 1;
|
||||
@@ -545,10 +546,10 @@ int GetBehaviorState(int nCondition)
|
||||
|
||||
void PlayMobileAmbientAnimations()
|
||||
{
|
||||
if(!GetSpawnInCondition(NW_FLAG_AMBIENT_ANIMATIONS_AVIAN)) {
|
||||
// not a bird
|
||||
PlayMobileAmbientAnimations_NonAvian();
|
||||
} else {
|
||||
if(!GetSpawnInCondition(NW_FLAG_AMBIENT_ANIMATIONS_AVIAN)) {
|
||||
// not a bird
|
||||
PlayMobileAmbientAnimations_NonAvian();
|
||||
} else {
|
||||
// a bird
|
||||
PlayMobileAmbientAnimations_Avian();
|
||||
}
|
||||
@@ -589,7 +590,7 @@ void DetermineSpecialBehavior(object oIntruder = OBJECT_INVALID)
|
||||
{
|
||||
if(GetIsObjectValid(oTarget) && GetDistanceToObject(oTarget) <= 8.0)
|
||||
{
|
||||
if(!GetIsFriend(oTarget))
|
||||
if(GetIsEnemy(oTarget))
|
||||
{
|
||||
if(GetLevelByClass(CLASS_TYPE_DRUID, oTarget) == 0 && GetLevelByClass(CLASS_TYPE_RANGER, oTarget) == 0)
|
||||
{
|
||||
@@ -864,7 +865,7 @@ object GetCurrentInteractionTarget()
|
||||
// if it was set outside.
|
||||
void CheckIsCivilized()
|
||||
{
|
||||
int nRacialType = GetRacialType(OBJECT_SELF);
|
||||
int nRacialType = MyPRCGetRacialType(OBJECT_SELF);
|
||||
switch (nRacialType) {
|
||||
case RACIAL_TYPE_ELF :
|
||||
case RACIAL_TYPE_GNOME :
|
||||
@@ -2170,4 +2171,4 @@ void AnimActionPlayRandomAnimation()
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user