2025/07/20 Afternoon Update

Updated PEPS AI.
This commit is contained in:
Jaysyn904
2025-07-20 12:36:58 -04:00
parent df58b1a133
commit ac076efc50
77 changed files with 981 additions and 703 deletions

View File

@@ -6,18 +6,12 @@
This will usually fire every 6 seconds (1 game round).
*///////////////////////////////////////////////////////////////////////////////
#include "0i_module"
#include "creature_inc"
void main()
{
// If not runnning normal or better AI then exit for performance reasons
if (GetAILevel(OBJECT_SELF) == AI_LEVEL_VERY_LOW) return;
ExecuteScript("prc_npc_hb", OBJECT_SELF);
// Set correct name of creature
creature_SetName(OBJECT_SELF);
object oCreature = OBJECT_SELF;
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