Quote:
Originally Posted by RootCore
I could test this, but i don't think that it should work nevertheless, as if the player is not found he may not have an userid too I guess.
|
It could be the client ID, too... but I don't know why it'd need either of them. Point is that it doesn't work.
Quote:
Originally Posted by RootCore
So they are changing around the numbers of the reason argument? This doesn't help much, thanks Valve. Well, the list in the first post should be okay for a while (for CS:GO at least).
|
The reason
why they renumbered is because they put similar reasons together. For example Team Swap is next to Surrender and the vote-specific Recently Failed messages are next to the generic Recently Failed.
To put it another way, here are the enums as I know it. Note: The names of the values in the first enum are taken directly from the Source SDK 2013, the second one is based on it.
Note: The first 2-3 in both lists are originally from L4D/L4D2's voting system. That's why transitioning exists despite TF2/CSGO specifically having one for Waiting For Players / Warmup.
TF2:
Code:
VOTE_FAILED_GENERIC,
VOTE_FAILED_TRANSITIONING_PLAYERS,
VOTE_FAILED_RATE_EXCEEDED,
VOTE_FAILED_YES_MUST_EXCEED_NO,
VOTE_FAILED_QUORUM_FAILURE,
VOTE_FAILED_ISSUE_DISABLED,
VOTE_FAILED_MAP_NOT_FOUND,
VOTE_FAILED_MAP_NAME_REQUIRED,
VOTE_FAILED_FAILED_RECENTLY,
VOTE_FAILED_TEAM_CANT_CALL,
VOTE_FAILED_WAITINGFORPLAYERS,
VOTE_FAILED_PLAYERNOTFOUND,
VOTE_FAILED_CANNOT_KICK_ADMIN,
VOTE_FAILED_SCRAMBLE_IN_PROGRESS,
VOTE_FAILED_SPECTATOR,
VOTE_FAILED_NEXTLEVEL_SET,
VOTE_FAILED_MAP_NOT_VALID,
VOTE_FAILED_CANNOT_KICK_FOR_TIME,
VOTE_FAILED_CANNOT_KICK_DURING_ROUND,
VOTE_FAILED_MODIFICATION_ALREADY_ACTIVE,
Note that the last 3 for TF2 were added to TF2 after CSGO added its voting system, hence why they aren't used at all in CSGO.
CSGO:
Code:
VOTE_FAILED_GENERIC,
VOTE_FAILED_TRANSITIONING_PLAYERS,
VOTE_FAILED_RATE_EXCEEDED,
VOTE_FAILED_YES_MUST_EXCEED_NO,
VOTE_FAILED_QUORUM_FAILURE,
VOTE_FAILED_ISSUE_DISABLED,
VOTE_FAILED_MAP_NOT_FOUND,
VOTE_FAILED_MAP_NAME_REQUIRED,
VOTE_FAILED_FAILED_RECENTLY,
VOTE_FAILED_FAILED_RECENTLY_KICK,
VOTE_FAILED_FAILED_RECENTLY_MAP,
VOTE_FAILED_FAILED_RECENTLY_SWAP,
VOTE_FAILED_FAILED_RECENTLY_SCRAMBLE,
VOTE_FAILED_FAILED_RECENTLY_RESTART,
VOTE_FAILED_TEAM_CANT_CALL,
VOTE_FAILED_WAITINGFORPLAYERS,
VOTE_FAILED_PLAYERNOTFOUND,
VOTE_FAILED_CANNOT_KICK_ADMIN,
VOTE_FAILED_SCRAMBLE_IN_PROGRESS,
VOTE_FAILED_SWAP_IN_PROGRESS,
VOTE_FAILED_SPECTATOR,
VOTE_FAILED_NEXTLEVEL_SET,
VOTE_FAILED_UNKNOWN1,
VOTE_FAILED_SURRENDER_ABANDON,
VOTE_FAILED_UNKNOWN2,
VOTE_FAILED_PAUSED,
VOTE_FAILED_NOT_PAUSED,
VOTE_FAILED_NOT_WARMUP,
VOTE_FAILED_MIN_PLAYERS,
VOTE_FAILED_ROUND_ENDED,
__________________