Raised This Month: $ Target: $400
 0% 

CallVoteFailed - UserMessage: List of "reason"s


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 09-03-2015 , 14:49   Re: CallVoteFailed - UserMessage: List of "reason"s
Reply With Quote #5

Quote:
Originally Posted by RootCore View Post
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 View Post
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,
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 09-03-2015 at 14:54.
Powerlord is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:38.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode