Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] So this actually calls „executeHook“ on all the dummy hooks?

[DiscordArchive] So this actually calls „executeHook“ on all the dummy hooks?

[DiscordArchive] So this actually calls „executeHook“ on all the dummy hooks?

Pages (2): 1 2 Next
rektbyfaith
Administrator
0
04-03-2024, 03:39 PM
#1
Archived author: sudlud • Posted: 2024-04-03T15:39:27.509000+00:00
Original source

So this actually calls „executeHook“ on all the dummy hooks?
rektbyfaith
04-03-2024, 03:39 PM #1

Archived author: sudlud • Posted: 2024-04-03T15:39:27.509000+00:00
Original source

So this actually calls „executeHook“ on all the dummy hooks?

rektbyfaith
Administrator
0
04-03-2024, 03:47 PM
#2
Archived author: walkline • Posted: 2024-04-03T15:47:55.490000+00:00
Original source

Yeah. So if you created and registered a player script that implements only OnLogin hook, the core would try to call all other possible hooks for this script, such as OnBeforePlayerUpdate, OnPlayerUpdate, OnIsPvP, etc (but it would execute dummy hooks). And the more scripts you register, the greater the performance impact.
rektbyfaith
04-03-2024, 03:47 PM #2

Archived author: walkline • Posted: 2024-04-03T15:47:55.490000+00:00
Original source

Yeah. So if you created and registered a player script that implements only OnLogin hook, the core would try to call all other possible hooks for this script, such as OnBeforePlayerUpdate, OnPlayerUpdate, OnIsPvP, etc (but it would execute dummy hooks). And the more scripts you register, the greater the performance impact.

rektbyfaith
Administrator
0
04-03-2024, 03:52 PM
#3
Archived author: sudlud • Posted: 2024-04-03T15:52:55.021000+00:00
Original source

Alright, so it always adds a new instance of the script to the list
rektbyfaith
04-03-2024, 03:52 PM #3

Archived author: sudlud • Posted: 2024-04-03T15:52:55.021000+00:00
Original source

Alright, so it always adds a new instance of the script to the list

rektbyfaith
Administrator
0
04-03-2024, 03:55 PM
#4
Archived author: sudlud • Posted: 2024-04-03T15:55:13.196000+00:00
Original source

The player update hooks surely get called often in this case
rektbyfaith
04-03-2024, 03:55 PM #4

Archived author: sudlud • Posted: 2024-04-03T15:55:13.196000+00:00
Original source

The player update hooks surely get called often in this case

rektbyfaith
Administrator
0
04-03-2024, 04:01 PM
#5
Archived author: Natrist • Posted: 2024-04-03T16:01:35.107000+00:00
Original source


[Image: Screenshot_2024-04-03_at_12.01.28_PM.png...5165c30fb&]
rektbyfaith
04-03-2024, 04:01 PM #5

Archived author: Natrist • Posted: 2024-04-03T16:01:35.107000+00:00
Original source


[Image: Screenshot_2024-04-03_at_12.01.28_PM.png...5165c30fb&]

rektbyfaith
Administrator
0
04-03-2024, 04:36 PM
#6
Archived author: sudlud • Posted: 2024-04-03T16:36:22.800000+00:00
Original source

Is anyone even using the player update related hooks
rektbyfaith
04-03-2024, 04:36 PM #6

Archived author: sudlud • Posted: 2024-04-03T16:36:22.800000+00:00
Original source

Is anyone even using the player update related hooks

rektbyfaith
Administrator
0
04-03-2024, 04:37 PM
#7
Archived author: sudlud • Posted: 2024-04-03T16:37:11.102000+00:00
Original source

What if you comment them out maybe they’re responsible for most of it
rektbyfaith
04-03-2024, 04:37 PM #7

Archived author: sudlud • Posted: 2024-04-03T16:37:11.102000+00:00
Original source

What if you comment them out maybe they’re responsible for most of it

rektbyfaith
Administrator
0
04-03-2024, 06:32 PM
#8
Archived author: Foe • Posted: 2024-04-03T18:32:45.418000+00:00
Original source

It's also a matter of senseless hook implementation
rektbyfaith
04-03-2024, 06:32 PM #8

Archived author: Foe • Posted: 2024-04-03T18:32:45.418000+00:00
Original source

It's also a matter of senseless hook implementation

rektbyfaith
Administrator
0
04-03-2024, 06:33 PM
#9
Archived author: Foe • Posted: 2024-04-03T18:33:02.722000+00:00
Original source

OnIsPvP as an example
rektbyfaith
04-03-2024, 06:33 PM #9

Archived author: Foe • Posted: 2024-04-03T18:33:02.722000+00:00
Original source

OnIsPvP as an example

rektbyfaith
Administrator
0
04-03-2024, 06:33 PM
#10
Archived author: Foe • Posted: 2024-04-03T18:33:31.959000+00:00
Original source

No hook should ever be implemented in some bool function that is used everywhere in the core and other scripts for that matter
rektbyfaith
04-03-2024, 06:33 PM #10

Archived author: Foe • Posted: 2024-04-03T18:33:31.959000+00:00
Original source

No hook should ever be implemented in some bool function that is used everywhere in the core and other scripts for that matter

Pages (2): 1 2 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)