Clear out experimental .35 files

Clear out experimental .35 files
This commit is contained in:
Jaysyn904
2024-02-11 13:04:14 -05:00
parent 2112b92e24
commit 618cd42b82
22356 changed files with 0 additions and 1248956 deletions

View File

@@ -1,60 +0,0 @@
/*:://////////////////////////////////////////////
//:: Name Summon Monster - On Perception
//:: FileName SMP_AI_Summ_Perc
//:://////////////////////////////////////////////
On Perception.
Attacks the last person seen if it was an enemy. If it disappeared
and was our target, we do another combat round.
//:://////////////////////////////////////////////
//:: Created By: Jasperre
//::////////////////////////////////////////////*/
#include "SMP_AI_INCLUDE"
void main()
{
// Delcare major variables
object oSelf = OBJECT_SELF;
object oSeen = GetLastPerceived();
object oMaster = GetMaster();
int bHeard = GetLastPerceptionHeard();// If oSeen is NOW heard
int bInaudible = GetLastPerceptionInaudible();// If oSeen is NOW not heard
int bSeen = GetLastPerceptionSeen();// If oSeen is NOW seen
int bVanished = GetLastPerceptionVanished();// If oSeen is NOW not seen
int bEnemy = GetIsEnemy(oSeen);
// Check if in combat
if(!GetIsInCombat() && GetIsObjectValid(oSeen))
{
// Attack any enemy we see
if(bEnemy)
{
if(bSeen || bHeard)
{
// Attack!
SMPAI_SummonAttack(oSeen);
}
else if(bVanished || bInaudible)
{
if(GetLocalObject(oSelf, "SMPAI_LAST_TARGET") == oSeen)
{
// Check area's. If they moved, and master is not in this area
// too, we follow
if(GetArea(oMaster) == GetArea(oSeen) &&
GetArea(oSeen) != GetArea(oSelf))
{
// Follow
ClearAllActions();
ActionMoveToObject(oSeen, TRUE);
}
else
{
// Reevaluate
SMPAI_SummonAttack();
}
}
}
}
}
}