Jump to content

[dev]BG equal groups generation

Guest Tommassino

Recommended Posts

After geting some complains about the BGs being not fair( on my server the aliance:horde ratio is about 1:2) so WSG 5 vs 10 or similiar are quete often, i started developing a algorithm that generates the selectionpools from the BG queues equally.

here you have the code http://pastebin.com/f56798824

It is for a rather old mangos rev so it could need some fixing.

I need testing, especially on AV if the algorithm isnt too slow.

for research see wikipedia

If you find any bug or improvement tell me ;)

EDIT: 25.1. fixed some bugs

Link to comment
Share on other sites

read the declaration of the functions... BattleGroundQueue::aproximation etc

place it in the BattleGroundMgr.cpp and add to BattleGroundMgr.h you can use it instead od the BuildSelectionPool that is called from Update

wont paste here full code, i already said my rev is a lot older than the newest mangoscore

Link to comment
Share on other sites

  • 2 weeks later...
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use