[DiscordArchive] So this actually calls „executeHook“ on all the dummy hooks?
[DiscordArchive] So this actually calls „executeHook“ on all the dummy hooks?
Archived author: sudlud • Posted: 2024-04-03T15:39:27.509000+00:00
Original source
So this actually calls „executeHook“ on all the dummy hooks?
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.
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
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
![[Image: Screenshot_2024-04-03_at_12.01.28_PM.png...5165c30fb&]](https://cdn.discordapp.com/attachments/284323424032129024/1225112976390885506/Screenshot_2024-04-03_at_12.01.28_PM.png?ex=690c1d9f&is=690acc1f&hm=9ce42ba8e2c2e08fc8f3690db174824827bf0f63ac95cc3e1234ecf5165c30fb&)
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&]](https://cdn.discordapp.com/attachments/284323424032129024/1225112976390885506/Screenshot_2024-04-03_at_12.01.28_PM.png?ex=690c1d9f&is=690acc1f&hm=9ce42ba8e2c2e08fc8f3690db174824827bf0f63ac95cc3e1234ecf5165c30fb&)
Archived author: sudlud • Posted: 2024-04-03T16:36:22.800000+00:00
Original source
Is anyone even using the player update related hooks
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
Archived author: Foe • Posted: 2024-04-03T18:32:45.418000+00:00
Original source
It's also a matter of senseless hook implementation
Archived author: Foe • Posted: 2024-04-03T18:33:02.722000+00:00
Original source
OnIsPvP as an example
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