We saw a great custom code addon from L30m4nc3r and others but the code was not released. So, here we are, Now if someone can make this for public use we would all with-in the custom code community enjoy its coding.
I’ve been trying to make cross-faction battlegrounds for some time - cross-faction meaning if there are for example 15 alliance players and 5 horde players in battleground queue, battleground will start and 5 of those alliance players will go to horde side, so basically 1 team would have 10 alliance players and the other would have 5 alliance and 5 horde players.
So far I’ve made everything work (BattlegroundQueue stuff, WorldObject stuff etc.) except setting hostile/friendly state based on whose side (HORDE or ALLIANCE) people are in, meaning for example if there is WSG bg with 10 alliance players (ALLIANCE team) vs 10 alliance players (HORDE team) both teams are friendly - which is bad, all people in ALLIANCE team (raid) should be hostile to all poeple in HORDE team (raid).
I have tried modifying Unit::isHostileTo(…) function to no avail - it seems to me that it only affects creatures, not players.
There has to be some way, because if there are 4 alliance players in skirmish (2v2), those teams are hostile. I have tried to backtrace whole skirmish process from WorldSession::HandleJoinBattlegroundOpcode(…) to BattlegroundMgr::StartBattleground(…) and I couldn’t really find anything that made these teams hostile to eachother.
So, if someone could point what should I modify / where should I look (explanation how skirmishes work with hostility against other team with same faction would be really highly appreciated) I would be really glad.
Thank you for reading this somewhat long help request.
P.S: English isn’t my mother language so I’m sorry if I made any grammar / context mistakes.