Raised This Month: $32 Target: $400
 8% 

Solved [L4D1] List of User Messages?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MasterMind420
BANNED
Join Date: Nov 2010
Old 03-20-2021 , 14:08   [L4D1] List of User Messages?
Reply With Quote #1

Need some help figuring out what VotePass and DisconnectToLobby user messages exist in L4D1, or some type of equivalent to detect these events. I don't use L4D1 anymore but would like to update my Return To Lobby Fix plugin. The user messages don't appear to be the same in L4D1 and L4D2. Don't even know if user messages exist in L4D1. Any insight would be appreciated.

Last edited by MasterMind420; 03-21-2021 at 14:06.
MasterMind420 is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 03-21-2021 , 00:03   Re: [L4D1] List of User Messages?
Reply With Quote #2

I already replied on your plugin's thread but I will post it here as well for people who stumble upon this thread looking for the answer.

You only really need "DisconnectToLobby" for both games.
PHP Code:
#define ISSUE_CHANGEDIFFICULTY        0
#define ISSUE_RESTARTGAME        1
#define ISSUE_KICK            2
#define ISSUE_CHANGEMISSION        3
#define ISSUE_RETURNTOLOBBY        4
#define ISSUE_CHANGECHAPTER        5
#define ISSUE_CHANGEALLTALK        6

public void OnPluginStart()
{
    
// DisconnectToLobby is sent when stats crawl finishes or is skipped or when Return To Lobby vote succeeds
    
HookUserMessage(GetUserMessageId("DisconnectToLobby"), OnDisconnectToLobbytrue);
}

public 
Action OnDisconnectToLobby(UserMsg msg_idHandle bf, const int[] playersint playersNumbool reliablebool init)
{
    
// Don't intercept Return To Lobby votes
    
int iVoteController FindEntityByClassname(-1"vote_controller");
    if (!
IsValidEntity(iVoteController) || GetEntProp(iVoteControllerProp_Send"m_activeIssueIndex") == ISSUE_RETURNTOLOBBY)
    {
        return 
Plugin_Continue;
    }

    return 
Plugin_Handled;

__________________
Psyk0tik is offline
MasterMind420
BANNED
Join Date: Nov 2010
Old 03-21-2021 , 00:13   Re: [L4D1] List of User Messages?
Reply With Quote #3

Quote:
Originally Posted by Crasher_3637 View Post
I already replied on your plugin's thread but I will post it here as well for people who stumble upon this thread looking for the answer.

You only really need "DisconnectToLobby" for both games.
Cool appreciate your help and the better method, i'll update the plugin with your code and give credit. I am curious though, VotePass user message hook failed in L4D1. have you tested this in L4D1 to see if DisconnectToLobby does the same? I don't have L4D1 installed nor do I intend on testing it. But I do know there is literally no documentation anywhere that I know of on L4D1 user messages.

Last edited by MasterMind420; 03-21-2021 at 00:18.
MasterMind420 is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 03-21-2021 , 00:19   Re: [L4D1] List of User Messages?
Reply With Quote #4

I’ve never used “VotePass” in either game but the snippet I provided is from a mission changer plugin that I use for both games.
__________________
Psyk0tik is offline
MasterMind420
BANNED
Join Date: Nov 2010
Old 03-21-2021 , 00:31   Re: [L4D1] List of User Messages?
Reply With Quote #5

ok cool thanks
MasterMind420 is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 03-22-2021 , 11:53   Re: [L4D1] List of User Messages?
Reply With Quote #6

You can use this fork to check for the incoming messages in L4D1:
https://forums.alliedmods.net/showpo...21&postcount=4

BTW, here is a full list with IDs for L4D1:
Quote:
USERMSG: HOOKED 01 - Train
USERMSG: HOOKED 02 - HudText
USERMSG: HOOKED 03 - SayText
USERMSG: HOOKED 04 - SayText2
USERMSG: HOOKED 05 - TextMsg
USERMSG: HOOKED 06 - HudMsg
USERMSG: HOOKED 07 - ResetHUD
USERMSG: HOOKED 08 - GameTitle
USERMSG: HOOKED 09 - ItemPickup
USERMSG: HOOKED 10 - ShowMenu
USERMSG: HOOKED 11 - Shake
USERMSG: HOOKED 12 - Fade
USERMSG: HOOKED 13 - VGUIMenu
USERMSG: HOOKED 14 - Rumble
USERMSG: HOOKED 15 - CloseCaption
USERMSG: HOOKED 16 - CloseCaptionDirect
USERMSG: HOOKED 17 - SendAudio
USERMSG: HOOKED 18 - RawAudio
USERMSG: HOOKED 19 - VoiceMask
USERMSG: HOOKED 20 - RequestState
USERMSG: HOOKED 21 - BarTime
USERMSG: HOOKED 22 - Damage
USERMSG: HOOKED 23 - RadioText
USERMSG: HOOKED 24 - HintText
USERMSG: HOOKED 25 - KeyHintText
USERMSG: HOOKED 26 - ReloadEffect
USERMSG: HOOKED 27 - PlayerAnimEvent
USERMSG: HOOKED 28 - AmmoDenied
USERMSG: HOOKED 29 - UpdateRadar
USERMSG: HOOKED 30 - KillCam
USERMSG: HOOKED 31 - MarkAchievement
USERMSG: HOOKED 32 - Splatter
USERMSG: HOOKED 33 - SplatterClear
USERMSG: HOOKED 34 - MessageText
USERMSG: HOOKED 35 - TransitionRestore
USERMSG: HOOKED 36 - Spawn
USERMSG: HOOKED 37 - CreditsLine
USERMSG: HOOKED 38 - CreditsMsg
USERMSG: HOOKED 39 - StatsCrawlMsg
USERMSG: HOOKED 40 - StatsSkipState
USERMSG: HOOKED 41 - ShowStats
USERMSG: HOOKED 42 - MusicCmd
USERMSG: HOOKED 43 - WitchBloodSplatter
USERMSG: HOOKED 44 - AchievementEvent
USERMSG: HOOKED 45 - PZDmgMsg
USERMSG: HOOKED 46 - AllPlayersConnectedGameStarting
USERMSG: HOOKED 47 - VoteRegistered
USERMSG: HOOKED 48 - DisconnectToLobby
USERMSG: HOOKED 49 - CallVoteFailed
USERMSG: HOOKED 50 - SteamWeaponStatData
USERMSG: HOOKED 51 - SPHapWeapEvent
USERMSG: HOOKED 52 - HapDmg
USERMSG: HOOKED 53 - HapPunch
USERMSG: HOOKED 54 - HapSetDrag
USERMSG: HOOKED 55 - HapSetConst
USERMSG: HOOKED 56 - HapMeleeContact
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
MasterMind420
BANNED
Join Date: Nov 2010
Old 03-22-2021 , 12:05   Re: [L4D1] List of User Messages?
Reply With Quote #7

Awesome, thanks Dragokas
MasterMind420 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 03-22-2021 , 12:40   Re: [L4D1] List of User Messages?
Reply With Quote #8

https://wiki.alliedmods.net/User_messages
Quote:
List obtained by using 'meta game' in the console
Code:
meta game
GameDLL Information
  Description: L4D - Co-op - Normal
  Mod Path: F:\server\left 4 dead\left4dead
  DLL Path: f:\server\left 4 dead\left4dead\bin\server.dll
  Interface: ServerGameDLL005
  Engine: Left 4 Dead (2008)
  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     9
                  RequestState                      20     0
                  BarTime                           21     -1
                  Damage                            22     -1
                  RadioText                         23     -1
                  HintText                          24     -1
                  KeyHintText                       25     -1
                  ReloadEffect                      26     4
                  PlayerAnimEvent                   27     -1
                  AmmoDenied                        28     2
                  UpdateRadar                       29     -1
                  KillCam                           30     -1
                  MarkAchievement                   31     -1
                  Splatter                          32     1
                  SplatterClear                     33     0
                  MessageText                       34     -1
                  TransitionRestore                 35     0
                  Spawn                             36     1
                  CreditsLine                       37     -1
                  CreditsMsg                        38     0
                  StatsCrawlMsg                     39     0
                  StatsSkipState                    40     2
                  ShowStats                         41     -1
                  MusicCmd                          42     -1
                  WitchBloodSplatter                43     -1
                  AchievementEvent                  44     -1
                  PZDmgMsg                          45     -1
                  AllPlayersConnectedGameStarting   46     0
                  VoteRegistered                    47     1
                  DisconnectToLobby                 48     0
                  CallVoteFailed                    49     1
                  SteamWeaponStatData               50     -1
                  SPHapWeapEvent                    51     4
                  HapDmg                            52     -1
                  HapPunch                          53     -1
                  HapSetDrag                        54     -1
                  HapSetConst                       55     -1
                  HapMeleeContact                   56     0
  57 user messages in total
But this not work in all mods, example CS:GO which use protobuf
Bacardi 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 16:39.


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