2025/10/27 Update

Removed PEPS.
Fixed heartbeat bug.
This commit is contained in:
Jaysyn904
2025-10-27 20:27:07 -04:00
parent 3b215a3932
commit 69f46f973b
294 changed files with 31253 additions and 43810 deletions

View File

@@ -1,6 +1,6 @@
//::///////////////////////////////////////////////
//:: Associate: On Spawn In
//:: nw_ch_summon_9
//:: NW_CH_AC9
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
@@ -14,6 +14,8 @@ creatures.
//:: Created On: Nov 19, 2001
//:://////////////////////////////////////////////
//:: Updated By: Georg Zoeller, 2003-08-20: Added variable check for spawn in animation
#include "X0_INC_HENAI"
#include "x2_inc_switches"
void main()
@@ -22,7 +24,30 @@ void main()
SetAssociateListenPatterns();
// Set additional henchman listening patterns
//bkSetListeningPatterns();
bkSetListeningPatterns();
//DMFI CODE ADDITIONS BEGIN HERE
SetListening(OBJECT_SELF, TRUE);
SetListenPattern(OBJECT_SELF, "**", 20600); //listen to all text
SetLocalInt(OBJECT_SELF, "hls_Listening", 1); //listen to all text
//DMFI CODE ADDITIONS END HERE
// Default behavior for henchmen at start
SetAssociateState(NW_ASC_POWER_CASTING);
SetAssociateState(NW_ASC_HEAL_AT_50);
SetAssociateState(NW_ASC_RETRY_OPEN_LOCKS);
SetAssociateState(NW_ASC_DISARM_TRAPS);
SetAssociateState(NW_ASC_MODE_DEFEND_MASTER, FALSE);
//Use melee weapons by default
SetAssociateState(NW_ASC_USE_RANGED_WEAPON, FALSE);
// Distance: make henchmen stick closer
SetAssociateState(NW_ASC_DISTANCE_4_METERS);
if (GetAssociate(ASSOCIATE_TYPE_HENCHMAN, GetMaster()) == OBJECT_SELF) {
SetAssociateState(NW_ASC_DISTANCE_2_METERS);
}
// * If Incorporeal, apply changes
if (GetCreatureFlag(OBJECT_SELF, CREATURE_VAR_IS_INCORPOREAL) == TRUE)
{
@@ -33,6 +58,8 @@ void main()
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eConceal, OBJECT_SELF);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eGhost, OBJECT_SELF);
}
// Set starting location
SetAssociateStartLocation();
}