Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] what piece of code decides that boss should be despawned on evasion or boss should run to his home p

[DiscordArchive] what piece of code decides that boss should be despawned on evasion or boss should run to his home p

[DiscordArchive] what piece of code decides that boss should be despawned on evasion or boss should run to his home p

rektbyfaith
Administrator
0
11-19-2023, 07:30 AM
#1
Archived author: Toramaru Shou • Posted: 2023-11-19T07:30:09.032000+00:00
Original source

what piece of code decides that boss should be despawned on evasion or boss should run to his home position?
rektbyfaith
11-19-2023, 07:30 AM #1

Archived author: Toramaru Shou • Posted: 2023-11-19T07:30:09.032000+00:00
Original source

what piece of code decides that boss should be despawned on evasion or boss should run to his home position?

rektbyfaith
Administrator
0
11-19-2023, 07:31 AM
#2
Archived author: KJack • Posted: 2023-11-19T07:31:15.810000+00:00
Original source

in the AI script:
```c++
void EnterEvadeMode(EvadeReason why) override
{
if (why != EvadeReason::EVADE_REASON_NO_PATH)
{
me->DespawnOnEvade(5s);
}

BossAI::EnterEvadeMode(why);
}
```
rektbyfaith
11-19-2023, 07:31 AM #2

Archived author: KJack • Posted: 2023-11-19T07:31:15.810000+00:00
Original source

in the AI script:
```c++
void EnterEvadeMode(EvadeReason why) override
{
if (why != EvadeReason::EVADE_REASON_NO_PATH)
{
me->DespawnOnEvade(5s);
}

BossAI::EnterEvadeMode(why);
}
```

rektbyfaith
Administrator
0
11-19-2023, 07:31 AM
#3
Archived author: KJack • Posted: 2023-11-19T07:31:27.429000+00:00
Original source

Example: <https://github.com/azerothcore/azerothcore-wotlk/blob/9ecb85acb5d8b8f71d9d103ea930096c1f4f4816/src/server/scripts/EasternKingdoms/ZulGurub/boss_jeklik.cpp#L252C1-L260C6>
rektbyfaith
11-19-2023, 07:31 AM #3

Archived author: KJack • Posted: 2023-11-19T07:31:27.429000+00:00
Original source

Example: <https://github.com/azerothcore/azerothcore-wotlk/blob/9ecb85acb5d8b8f71d9d103ea930096c1f4f4816/src/server/scripts/EasternKingdoms/ZulGurub/boss_jeklik.cpp#L252C1-L260C6>

rektbyfaith
Administrator
0
11-19-2023, 07:32 AM
#4
Archived author: KJack • Posted: 2023-11-19T07:32:07.335000+00:00
Original source

I literally just implemented it, so that is a question I happen to be able to help with.
rektbyfaith
11-19-2023, 07:32 AM #4

Archived author: KJack • Posted: 2023-11-19T07:32:07.335000+00:00
Original source

I literally just implemented it, so that is a question I happen to be able to help with.

rektbyfaith
Administrator
0
11-19-2023, 07:32 AM
#5
Archived author: Toramaru Shou • Posted: 2023-11-19T07:32:31.441000+00:00
Original source

tyvm, trying to fix Rotface, because he doesn't reset properly
rektbyfaith
11-19-2023, 07:32 AM #5

Archived author: Toramaru Shou • Posted: 2023-11-19T07:32:31.441000+00:00
Original source

tyvm, trying to fix Rotface, because he doesn't reset properly

rektbyfaith
Administrator
0
11-19-2023, 07:35 AM
#6
Archived author: Toramaru Shou • Posted: 2023-11-19T07:35:25.198000+00:00
Original source

<@163514614863101962> followup question tho, Rotface and Festergut have the same EnterEvadeMode code, do I need to look "why" specifically? Fester despawns/respawn, Rot just runs back
rektbyfaith
11-19-2023, 07:35 AM #6

Archived author: Toramaru Shou • Posted: 2023-11-19T07:35:25.198000+00:00
Original source

<@163514614863101962> followup question tho, Rotface and Festergut have the same EnterEvadeMode code, do I need to look "why" specifically? Fester despawns/respawn, Rot just runs back

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)