2025/12/15 Update

Updated PEPS
Hooked up new PRC8 GUI event.
Updated nim tools.
Updated readme.
This commit is contained in:
Jaysyn904
2025-12-15 21:37:12 -05:00
parent d897e0c598
commit e0803385be
1191 changed files with 139110 additions and 35267 deletions

View File

@@ -60,8 +60,8 @@ void main()
{
oTarget = ai_GetFlankTarget(oCreature, AI_RANGE_MELEE);
}
// Ok we are in a serious fight so lets not give attack of opportunities.
else oTarget = ai_GetNearestTarget(oCreature, AI_RANGE_MELEE);
// Ok we are in a serious fight so lets not give attacks of opportunities.
else oTarget = ai_GetNearestPhysicalTarget(oCreature, AI_RANGE_MELEE);
}
// If there are no enemies being attacked then lets stay back.
if(oTarget == OBJECT_INVALID)
@@ -83,10 +83,10 @@ void main()
if(ai_HasRangedWeaponWithAmmo(oCreature))
{
if(ai_TryRangedSneakAttack(oCreature, nInMelee)) return;
oTarget = ai_GetLowestCRTarget(oCreature);
oTarget = ai_GetLowestCRPhysicalTarget(oCreature);
if(oTarget != OBJECT_INVALID)
{
if(ai_TryRapidShotFeat(oCreature, oTarget, nInMelee)) return;
if(ai_TryRangedTalents(oCreature, oTarget, nInMelee)) return;
ai_ActionAttack(oCreature, AI_LAST_ACTION_RANGED_ATK, oTarget, nInMelee, TRUE);
return;
}
@@ -98,6 +98,12 @@ void main()
return;
}
}
// Make sure we are not the only one here. Moving around looks funny when we are by ourselves.
else if(ai_GetNearestAlly(oCreature, 1, 7, 7) == OBJECT_INVALID)
{
oTarget = ai_GetNearestPhysicalTarget(oCreature, AI_RANGE_MELEE);
ai_ActionAttack(oCreature, AI_LAST_ACTION_MELEE_ATK, oTarget);
}
}
if(oTarget != OBJECT_INVALID)
{