Raised This Month: $51 Target: $400
 12% 

[L4D,L4D2,TF2] BuiltinVotes 0.5.8 (2013-01-29)


Post New Thread Reply   
 
Thread Tools Display Modes
Stinkyfax
BANNED
Join Date: Aug 2007
Old 06-06-2012 , 09:30   Re: [L4D,L4D2,TF2] BuiltinVotes 0.5.7 (2012-03-06)
Reply With Quote #161

Any plans on adding CS:GO compatibility?
Stinkyfax is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-07-2012 , 14:42   Re: [L4D,L4D2,TF2] BuiltinVotes 0.5.7 (2012-03-06)
Reply With Quote #162

Quote:
Originally Posted by Stinkyfax View Post
Any plans on adding CS:GO compatibility?
Unfortunately, I don't have access to CS:GO to know if anything changed between TF2 and it. At this point, I don't even have an events list, let alone the UserMessages list.

Having said that, if you have a CS:GO server, you can get the UserMessages list for me by using this in the server console:

Code:
meta game
I really only need the ones that mention Vote. For TF2, this was
Code:
                  CallVoteFailed                    44     -1
                  VoteStart                         45     -1
                  VotePass                          46     -1
                  VoteFailed                        47     2
                  VoteSetup                         48     -1
Sadly, this doesn't give me the arguments these usermessages take.

In addition, it may use some events. These will be located in either hl2/resource/gameevents.res or [gamedir]/resource/modevents.res

For TF2, they were located in orangebox/hl2/resource/gameevents.res:
Code:
        // Client side VoteController talking to HUD
        "vote_ended"
        {
        }
        "vote_started"
        {
                "issue"                 "string"
                "param1"                "string"
                "team"                  "byte"
                "initiator"             "long" // entity id of the player who initiated the vote
        }
        "vote_changed"
        {
                "vote_option1"          "byte"
                "vote_option2"          "byte"
                "vote_option3"          "byte"
                "vote_option4"          "byte"
                "vote_option5"          "byte"
                "potentialVotes"        "byte"
        }
        "vote_passed"
        {
                "details"               "string"
                "param1"                "string"
                "team"                  "byte"
        }
        "vote_failed"
        {
                "team"                  "byte"
        }
        "vote_cast"
        {
                "vote_option"   "byte"  // which option the player voted on
                "team"                  "short"
                "entityid"              "long"  // entity id of the voter
        }
        "vote_options"
        {
                "count"                 "byte"  // Number of options - up to MAX_VOTE_OPTIONS
                "option1"               "string"
                "option2"               "string"
                "option3"               "string"
                "option4"               "string"
                "option5"               "string"
        }
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 06-07-2012 at 14:43.
Powerlord is offline
Stinkyfax
BANNED
Join Date: Aug 2007
Old 06-08-2012 , 06:32   Re: [L4D,L4D2,TF2] BuiltinVotes 0.5.7 (2012-03-06)
Reply With Quote #163

Code:
Engine: Counter-Strike: Global Offensive (2012)
  User Messages:  Name                              Index  Size 
                  Geiger                            0      1    
                  Train                             1      1    
                  HudText                           2      -1   
                  SayText                           3      -1   
                  SayText2                          4      -1   
                  TextMsg                           5      -1   
                  HudMsg                            6      -1   
                  ResetHUD                          7      1    
                  GameTitle                         8      0    
                  ItemPickup                        9      -1   
                  ShowMenu                          10     -1   
                  Shake                             11     13   
                  Fade                              12     10   
                  VGUIMenu                          13     -1   
                  Rumble                            14     3    
                  CloseCaption                      15     -1   
                  CloseCaptionDirect                16     -1   
                  SendAudio                         17     -1   
                  RawAudio                          18     -1   
                  VoiceMask                         19     17   
                  RequestState                      20     0    
                  BarTime                           21     -1   
                  Damage                            22     -1   
                  RadioText                         23     -1   
                  HintText                          24     -1   
                  KeyHintText                       25     -1   
                  ReloadEffect                      26     2    
                  PlayerAnimEvent                   27     -1   
                  AmmoDenied                        28     2    
                  ProcessSpottedEntityUpdate        29     -1   
                  AdjustMoney                       30     2    
                  UpdateTeamMoney                   31     -1   
                  StopSpectatorMode                 32     0    
                  KillCam                           33     -1   
                  MarkAchievement                   34     -1   
                  DesiredTimescale                  35     16   
                  CurrentTimescale                  36     4    
                  PlayerStatsUpdate_DEPRECATED      37     -1   
                  AchievementEvent                  38     -1   
                  MatchEndConditions                39     -1   
                  MatchStatsUpdate                  40     -1   
                  PlayerStatsUpdate                 41     -1   
                  DisplayInventory                  42     -1   
                  ClientInfo                        43     0    
                  XRankGet                          44     2    
                  XRankUpd                          45     6    
                  SetPlayerEloDisplayBracket        46     4    
                  RequestEloBracketInfo             47     1    
                  SetEloBracketInfo                 48     4    
                  CallVoteFailed                    49     -1   
                  VoteStart                         50     -1   
                  VotePass                          51     -1   
                  VoteFailed                        52     2    
                  VoteSetup                         53     -1
Can not get modevents.res as it is in vpk pack and I have no tools to extract
Stinkyfax is offline
donrevan
AlliedModders Donor
Join Date: Jul 2010
Old 06-08-2012 , 09:09   Re: [L4D,L4D2,TF2] BuiltinVotes 0.5.7 (2012-03-06)
Reply With Quote #164

Quote:
Originally Posted by Stinkyfax View Post
Can not get modevents.res as it is in vpk pack and I have no tools to extract
Here it is
Attached Files
File Type: zip modevents.zip (3.5 KB, 159 views)
donrevan is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-08-2012 , 09:49   Re: [L4D,L4D2,TF2] BuiltinVotes 0.5.7 (2012-03-06)
Reply With Quote #165

Quote:
Originally Posted by Stinkyfax View Post
Code:
Engine: Counter-Strike: Global Offensive (2012)
  User Messages:  Name                              Index  Size 
                  Geiger                            0      1    
                  Train                             1      1    
                  HudText                           2      -1   
                  SayText                           3      -1   
                  SayText2                          4      -1   
                  TextMsg                           5      -1   
                  HudMsg                            6      -1   
                  ResetHUD                          7      1    
                  GameTitle                         8      0    
                  ItemPickup                        9      -1   
                  ShowMenu                          10     -1   
                  Shake                             11     13   
                  Fade                              12     10   
                  VGUIMenu                          13     -1   
                  Rumble                            14     3    
                  CloseCaption                      15     -1   
                  CloseCaptionDirect                16     -1   
                  SendAudio                         17     -1   
                  RawAudio                          18     -1   
                  VoiceMask                         19     17   
                  RequestState                      20     0    
                  BarTime                           21     -1   
                  Damage                            22     -1   
                  RadioText                         23     -1   
                  HintText                          24     -1   
                  KeyHintText                       25     -1   
                  ReloadEffect                      26     2    
                  PlayerAnimEvent                   27     -1   
                  AmmoDenied                        28     2    
                  ProcessSpottedEntityUpdate        29     -1   
                  AdjustMoney                       30     2    
                  UpdateTeamMoney                   31     -1   
                  StopSpectatorMode                 32     0    
                  KillCam                           33     -1   
                  MarkAchievement                   34     -1   
                  DesiredTimescale                  35     16   
                  CurrentTimescale                  36     4    
                  PlayerStatsUpdate_DEPRECATED      37     -1   
                  AchievementEvent                  38     -1   
                  MatchEndConditions                39     -1   
                  MatchStatsUpdate                  40     -1   
                  PlayerStatsUpdate                 41     -1   
                  DisplayInventory                  42     -1   
                  ClientInfo                        43     0    
                  XRankGet                          44     2    
                  XRankUpd                          45     6    
                  SetPlayerEloDisplayBracket        46     4    
                  RequestEloBracketInfo             47     1    
                  SetEloBracketInfo                 48     4    
                  CallVoteFailed                    49     -1   
                  VoteStart                         50     -1   
                  VotePass                          51     -1   
                  VoteFailed                        52     2    
                  VoteSetup                         53     -1
Can not get modevents.res as it is in vpk pack and I have no tools to extract
These voting UserMessages have the same names as their TF2 counterparts. Which sadly, doesn't mean a lot, since L4D2 had some identically UserMessage, but the arguments changed around.

I'll have to write a variation of my TF2 Vote Sniffer at some point to see what the raw data is, then see if I can figure out what's changed from there.

Quote:
Originally Posted by donrevan View Post
Here it is
Hmm, it has two new voting events, but several voting events I expected to see are missing... I wonder if there's a gameevents.res somewhere that contains them.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 06-08-2012 at 10:01.
Powerlord is offline
moxie2020
Veteran Member
Join Date: Aug 2011
Old 06-09-2012 , 11:45   Re: [L4D,L4D2,TF2] BuiltinVotes 0.5.7 (2012-03-06)
Reply With Quote #166

sv_allow_votes 0

Does this need to be enabled?
I use gscramble, ultimatemap chooser and custom votes and I don't want the default scramble vote or mapchange to be used.
moxie2020 is offline
Stinkyfax
BANNED
Join Date: Aug 2007
Old 06-09-2012 , 12:04   Re: [L4D,L4D2,TF2] BuiltinVotes 0.5.7 (2012-03-06)
Reply With Quote #167

Quote:
Originally Posted by moxie2020 View Post
sv_allow_votes 0

Does this need to be enabled?
I use gscramble, ultimatemap chooser and custom votes and I don't want the default scramble vote or mapchange to be used.
No, I don't think you need this cvar enabled
Stinkyfax is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-09-2012 , 12:17   Re: [L4D,L4D2,TF2] BuiltinVotes 0.5.7 (2012-03-06)
Reply With Quote #168

Quote:
Originally Posted by moxie2020 View Post
sv_allow_votes 0

Does this need to be enabled?
I use gscramble, ultimatemap chooser and custom votes and I don't want the default scramble vote or mapchange to be used.
sv_allow_votes is not required. It can be enabled, but sv_vote_issue_nextlevel_allowed 0 should be set if it is.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
donrevan
AlliedModders Donor
Join Date: Jul 2010
Old 06-10-2012 , 12:20   Re: [L4D,L4D2,TF2] BuiltinVotes 0.5.7 (2012-03-06)
Reply With Quote #169

Quote:
Originally Posted by Powerlord View Post
Hmm, it has two new voting events, but several voting events I expected to see are missing... I wonder if there's a gameevents.res somewhere that contains them.
Sorry for the delay, but here it is
Attached Files
File Type: zip gameevents.zip (3.4 KB, 170 views)
donrevan is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-10-2012 , 14:08   Re: [L4D,L4D2,TF2] BuiltinVotes 0.5.7 (2012-03-06)
Reply With Quote #170

Quote:
Originally Posted by donrevan View Post
Sorry for the delay, but here it is
Hmm, the events have all the same names as their TF2 counterparts. It may be possible to just recompile the TF2 files against the CSGO SDK, I'm not certain.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Reply



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 05:49.


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