alpha-core
alpha-core copied to clipboard
TODO: Implement creature and gameobject pooling
Describe what needs to be implemented or enhanced
At this moment all creatures and gameobjects are spawned directly from the spawns_
tables. That's not correct, pools should be taken into account to prevent, for example, multiple gameobjects spawning in the same spot (i.e. Barrels + Food Crates) or rare mobs that have different spawns, appearing in all spots at once.
Expected end result Before spawning a creature or gameobject, it should be checked if they belong to a pool or not and then decide (randomly?) what to spawn based on the pool information.
Guidance Provide any useful information, hints or guidance in general that can be useful for another developer to start working on this task.
- At this moment we are lacking the pool database tables, they need to be taken from VMaNGOS.
-
load_gameobjects
andload_creatures
will probably need to be heavy altered.
Is this issue is what cause all those Vultros in westfall ? there is a lot of them but not all at the same spot.
Is this issue is what cause all those Vultros in westfall ? there is a lot of them but not all at the same spot.
Yes! Exactly.