mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-16 18:30:27 +00:00
more configurations
This commit is contained in:
@@ -35,8 +35,8 @@ bool ReviveFromCorpseAction::Execute(Event event)
|
||||
if (!corpse)
|
||||
return false;
|
||||
|
||||
if (corpse->GetGhostTime() + bot->GetCorpseReclaimDelay(corpse->GetType() == CORPSE_RESURRECTABLE_PVP) > time(nullptr))
|
||||
return false;
|
||||
// if (corpse->GetGhostTime() + bot->GetCorpseReclaimDelay(corpse->GetType() == CORPSE_RESURRECTABLE_PVP) > time(nullptr))
|
||||
// return false;
|
||||
|
||||
if (master)
|
||||
{
|
||||
@@ -77,12 +77,12 @@ bool FindCorpseAction::Execute(Event event)
|
||||
if (!corpse)
|
||||
return false;
|
||||
|
||||
if (master)
|
||||
{
|
||||
if (!GET_PLAYERBOT_AI(master) &&
|
||||
sServerFacade->IsDistanceLessThan(AI_VALUE2(float, "distance", "master target"), sPlayerbotAIConfig->farDistance))
|
||||
return false;
|
||||
}
|
||||
// if (master)
|
||||
// {
|
||||
// if (!GET_PLAYERBOT_AI(master) &&
|
||||
// sServerFacade->IsDistanceLessThan(AI_VALUE2(float, "distance", "master target"), sPlayerbotAIConfig->farDistance))
|
||||
// return false;
|
||||
// }
|
||||
|
||||
uint32 dCount = AI_VALUE(uint32, "death count");
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#include "CellImpl.h"
|
||||
#include "GridNotifiers.h"
|
||||
#include "GridNotifiersImpl.h"
|
||||
#include "PlayerbotAIConfig.h"
|
||||
#include "Playerbots.h"
|
||||
|
||||
bool UseMeetingStoneAction::Execute(Event event)
|
||||
@@ -172,7 +173,7 @@ bool SummonAction::Teleport(Player* summoner, Player* player)
|
||||
|
||||
if (summoner->IsWithinLOS(x, y, z))
|
||||
{
|
||||
if (bot->isDead() && botAI->GetMaster()->IsAlive())
|
||||
if (sPlayerbotAIConfig->botReviveWhenSummon && bot->isDead() && botAI->GetMaster()->IsAlive())
|
||||
{
|
||||
bot->ResurrectPlayer(1.0f, false);
|
||||
bot->DurabilityRepairAll(false, 1.0f, false);
|
||||
|
||||
@@ -726,7 +726,7 @@ class IsMountedTrigger : public Trigger
|
||||
class CorpseNearTrigger : public Trigger
|
||||
{
|
||||
public:
|
||||
CorpseNearTrigger(PlayerbotAI* botAI) : Trigger(botAI, "corpse near", 10 * 1000) { }
|
||||
CorpseNearTrigger(PlayerbotAI* botAI) : Trigger(botAI, "corpse near", 1 * 1000) { }
|
||||
|
||||
bool IsActive() override;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user