2026/02/09 Update

Added and activated PRCX.
Updated PEPS.
Full compile.
This commit is contained in:
Jaysyn904
2026-02-09 00:54:31 -05:00
parent f8ba24ab71
commit e297540d10
1926 changed files with 54655 additions and 49859 deletions

View File

@@ -11,8 +11,7 @@ void main()
// If not runnning normal or better AI then exit for performance reasons
if (GetAILevel(OBJECT_SELF) == AI_LEVEL_VERY_LOW) return;
object oCreature = OBJECT_SELF;
//:: Disabled for World of Amon
//ExecuteScript("prc_npc_hb", oCreature);
ExecuteScript("prc_npc_hb", oCreature);
if(AI_DEBUG) ai_Debug("nw_c2_default1", "16", GetName(oCreature) + " Heartbeat." +
" OnSpawn: " + IntToString(GetLocalInt(oCreature, AI_ONSPAWN_EVENT)));
// We run our OnSpawn in the heartbeat so the creator can use the original
@@ -36,6 +35,7 @@ void main()
}
}
// Send the user-defined event signal if specified here so it doesn't get skipped.
//SendMessageToPC(GetFirstPC(), "HB_EVENT: " + IntToString(GetSpawnInCondition(NW_FLAG_HEARTBEAT_EVENT)));
if(GetSpawnInCondition(NW_FLAG_HEARTBEAT_EVENT))
{
SignalEvent(oCreature, EventUserDefined(EVENT_HEARTBEAT));
@@ -77,17 +77,9 @@ void main()
ai_ClearBuffTargets(oCreature, "AI_ALLY_TARGET_");
}
}
if(!IsInConversation (oCreature))
{
if(GetWalkCondition(NW_WALK_FLAG_CONSTANT)) WalkWayPoints();
if(GetSpawnInCondition(NW_FLAG_AMBIENT_ANIMATIONS)) PlayMobileAmbientAnimations_NonAvian();
else if(GetSpawnInCondition(NW_FLAG_AMBIENT_ANIMATIONS_AVIAN)) PlayMobileAmbientAnimations_Avian();
else if(GetSpawnInCondition(NW_FLAG_IMMOBILE_AMBIENT_ANIMATIONS)) PlayImmobileAmbientAnimations();
else if(GetLocalInt(GetModule(), AI_RULE_WANDER) && GetStandardFactionReputation(STANDARD_FACTION_HOSTILE, oCreature) > 89)
{
ai_AmbientAnimations();
}
}
if(ai_TryHealing(oCreature, oCreature)) return;
// This is where PEPS passes control to either the Bioware Waypoint system and
// AmbientAnimation scripts. A Persistent World can write there own scripts in 0e_animations.
ExecuteScript("0e_animations", oCreature);
}