Quote:
Originally Posted by Surrendering
By default captains are players with id1 == 4 and id2 == 9 and, as there is no lobby in dedicated server, palyer_id grows incrementally each time someone connects to the server.
If you want to change such behaviour u have to made small patch:
In DT_DOTAGamerules class there is an array named m_iCaptainPlayerIDs[2] its offset is gamerules+0x560(checked for 571 version) . It's being initialized once when all players have loaded and server goes to the DOTA_GAMERULES_STATE_HERO_SELECTION state. The CM initialization function could be found quite easy by searching for references to "CMTournamentIgnore" string (There are references from 2 funcs, u need the bigger one). So all u need is to override these default values.
OR u may ask psychonic to add CM fix to his d2fixups-collection))
|
This variables can be changed online by, for example, SMJS. But for changing m_iCaptainPlayerIDs, you will also need to change m_iPlayerIDsInControl array, so that the only 1 will be assigned to the capitan of currently choosing team.