View Single Post
Rothgar
Veteran Member
Join Date: Nov 2007
Old 01-29-2016 , 18:39   Re: AFK Manager (Version 4.0.5 / Updated January 29th 2016)
Reply With Quote #1701

New Version released to fix the CSGO Team Change Limit.

Big thanks to Asherkin for tracking down the offset that handles the limit as it's not easily available...

At the moment I have just allowed for changing team (Once) after being moved to spectator. This fix will act a bit weird...

I was talking to ham5 around the issue and below might be the stock functionality:

If you have mp_autoteambalance and mp_limitteams as stock, (After the initial server start warm up round) when you change team it will mark your client as having moved to a team (Even if you join the spectator team).

If your client has been marked and you attempt to move to a new team in the same round it will not let you stating "Only one team change is allowed.".

After a new round is started you may be able to "join" a team but will be put in a "Pending" team change state. In this situation you will still show on the scoreboard as being on the spectator team but you will be marked to change to the new team on the next round (This uses the Entity property (m_iPendingTeamNum).

On the second round you should now be on the desired team.

Now what I have done with Asherkin's help of tracking down the Offset is allow you to bypass the change limit (Only if you have been moved by the AFK Manager) and go straight to the Pending stage.

The weirdness in all this:
  • CSGO Does not tell you anywhere it seems that you are "Pending"
  • If you try to change team again after going "Pending" it will tell you "Only one team change is allowed.".

Depending on feedback from CSGO Server people I can look at:

Either adding a translation to tell the player they are pending a team change and not to panic...

With testing (Will need some players as I could not simulate with bots) I can possibly hook the pending event and then change the team by force which will show the player on the scoreboard as being on the right team etc. The potential issue I have with this (And the reason I haven't done this) is it may allow a loophole for stacking a team? which is why I would need to test this with some people. I added the code for this then commented it at the moment because it needs further testing.

TLDR;

CSGO Team Change Limit is partially fixed for the Spectator Move.
Rothgar is offline
Send a message via ICQ to Rothgar Send a message via AIM to Rothgar Send a message via MSN to Rothgar