From c2a21bcaeea2d3436fae0a874034862cfcaf2fae Mon Sep 17 00:00:00 2001 From: 9iky6 Date: Thu, 12 Mar 2015 20:54:03 +0500 Subject: [PATCH] Add_SVC_Messages add svc messages id to use hardcode (dont relize, only for alliedmodders dev team view) --- plugins/include/message_const.inc | 193 ++++++++++++++++++++++-------- 1 file changed, 141 insertions(+), 52 deletions(-) diff --git a/plugins/include/message_const.inc b/plugins/include/message_const.inc index 78bb771c..e1b4647d 100644 --- a/plugins/include/message_const.inc +++ b/plugins/include/message_const.inc @@ -35,61 +35,150 @@ * * @note Look at the actual HLSDK for details */ -#define SVC_NOP 1 -#define SVC_DISCONNECT 2 -#define SVC_EVENT 3 -#define SVC_VERSION 4 -#define SVC_SETVIEW 5 -#define SVC_SOUND 6 -#define SVC_TIME 7 -#define SVC_PRINT 8 -#define SVC_STUFFTEXT 9 -#define SVC_SETANGLE 10 -#define SVC_SERVERINFO 11 -#define SVC_LIGHTSTYLE 12 -#define SVC_UPDATEUSERINFO 13 +#define SVC_BAD 0 +#define SVC_NOP 1 +#define SVC_DISCONNECT 2 +#define SVC_EVENT 3 +#define SVC_VERSION 4 +#define SVC_SETVIEW 5 +#define SVC_SOUND 6 +#define SVC_TIME 7 +#define SVC_PRINT 8 +#define SVC_STUFFTEXT 9 +#define SVC_SETANGLE 10 +#define SVC_SERVERINFO 11 +#define SVC_LIGHTSTYLE 12 +#define SVC_UPDATEUSERINFO 13 #define SVC_DELTADESCRIPTION 14 -#define SVC_CLIENTDATA 15 -#define SVC_STOPSOUND 16 -#define SVC_PINGS 17 -#define SVC_PARTICLE 18 -#define SVC_DAMAGE 19 -#define SVC_SPAWNSTATIC 20 -#define SVC_EVENT_RELIABLE 21 -#define SVC_SPAWNBASELINE 22 -#define SVC_TEMPENTITY 23 -#define SVC_SETPAUSE 24 -#define SVC_SIGNONNUM 25 -#define SVC_CENTERPRINT 26 -#define SVC_KILLEDMONSTER 27 -#define SVC_FOUNDSECRET 28 +#define SVC_CLIENTDATA 15 +#define SVC_STOPSOUND 16 +#define SVC_PINGS 17 +#define SVC_PARTICLE 18 +#define SVC_DAMAGE 19 +#define SVC_SPAWNSTATIC 20 +#define SVC_EVENT_RELIABLE 21 +#define SVC_SPAWNBASELINE 22 +#define SVC_TEMPENTITY 23 +#define SVC_SETPAUSE 24 +#define SVC_SIGNONNUM 25 +#define SVC_CENTERPRINT 26 +#define SVC_KILLEDMONSTER 27 +#define SVC_FOUNDSECRET 28 #define SVC_SPAWNSTATICSOUND 29 -#define SVC_INTERMISSION 30 -#define SVC_FINALE 31 -#define SVC_CDTRACK 32 -#define SVC_RESTORE 33 -#define SVC_CUTSCENE 34 -#define SVC_WEAPONANIM 35 -#define SVC_DECALNAME 36 -#define SVC_ROOMTYPE 37 -#define SVC_ADDANGLE 38 -#define SVC_NEWUSERMSG 39 -#define SVC_PACKETENTITIES 40 +#define SVC_INTERMISSION 30 +#define SVC_FINALE 31 +#define SVC_CDTRACK 32 +#define SVC_RESTORE 33 +#define SVC_CUTSCENE 34 +#define SVC_WEAPONANIM 35 +#define SVC_DECALNAME 36 +#define SVC_ROOMTYPE 37 +#define SVC_ADDANGLE 38 +#define SVC_NEWUSERMSG 39 +#define SVC_PACKETENTITIES 40 #define SVC_DELTAPACKETENTITIES 41 -#define SVC_CHOKE 42 -#define SVC_RESOURCELIST 43 -#define SVC_NEWMOVEVARS 44 -#define SVC_RESOURCEREQUEST 45 -#define SVC_CUSTOMIZATION 46 -#define SVC_CROSSHAIRANGLE 47 -#define SVC_SOUNDFADE 48 -#define SVC_FILETXFERFAILED 49 -#define SVC_HLTV 50 -#define SVC_DIRECTOR 51 -#define SVC_VOICEINIT 52 -#define SVC_VOICEDATA 53 -#define SVC_SENDEXTRAINFO 54 -#define SVC_TIMESCALE 55 +#define SVC_CHOKE 42 +#define SVC_RESOURCELIST 43 +#define SVC_NEWMOVEVARS 44 +#define SVC_RESOURCEREQUEST 45 +#define SVC_CUSTOMIZATION 46 +#define SVC_CROSSHAIRANGLE 47 +#define SVC_SOUNDFADE 48 +#define SVC_FILETXFERFAILED 49 +#define SVC_HLTV 50 +#define SVC_DIRECTOR 51 +#define SVC_VOICEINIT 52 +#define SVC_VOICEDATA 53 +#define SVC_SENDEXTRAINFO 54 +#define SVC_TIMESCALE 55 +#define SVC_RESOURCELOCATION 56 +#define SVC_SENDCVARVALUE 57 +#define SVC_SENDCVARVALUE2 58 + +// 59-63 not used? And how to dereference nereididae events? And maybe we should add information on Kaida, from 0 to the last? + +#define gmsg_VoiceMask 64 +#define gmsg_ReqState 65 +#define gmsg_CurWeapon 66 +#define gmsg_Geiger 67 +#define gmsg_Flashlight 68 +#define gmsg_FlashBat 69 +#define gmsg_Health 70 +#define gmsg_Damage 71 +#define gmsg_Battery 72 +#define gmsg_Train 73 +#define gmsg_HudTextPro 74 +#define gmsg_HudText 75 +#define gmsg_SayText 76 +#define gmsg_TextMsg 77 +#define gmsg_WeaponList 78 +#define gmsg_ResetHUD 79 +#define gmsg_InitHUD 80 +#define gmsg_ViewMode 81 +#define gmsg_GameTitle 82 +#define gmsg_DeathMsg 83 +#define gmsg_ScoreAttrib 84 +#define gmsg_ScoreInfo 85 +#define gmsg_TeamInfo 86 +#define gmsg_TeamScore 87 +#define gmsg_GameMode 88 +#define gmsg_MOTD 89 +#define gmsg_ServerName 90 +#define gmsg_AmmoPickup 91 +#define gmsg_WeapPickup 92 +#define gmsg_ItemPickup 93 +#define gmsg_HideWeapon 94 +#define gmsg_SetFOV 95 +#define gmsg_ShowMenu 96 +#define gmsg_ScreenShake 97 +#define gmsg_ScreenFade 98 +#define gmsg_AmmoX 99 +#define gmsg_SendAudio 100 +#define gmsg_RoundTime 101 +#define gmsg_Money 102 +#define gmsg_ArmorType 103 +#define gmsg_BlinkAcct 104 +#define gmsg_StatusValue 105 +#define gmsg_StatusText 106 +#define gmsg_StatusIcon 107 +#define gmsg_BarTime 108 +#define gmsg_ReloadSound 109 +#define gmsg_Crosshair 110 +#define gmsg_NVGToggle 111 +#define gmsg_Radar 112 +#define gmsg_Spectator 113 +#define gmsg_VGUIMenu 114 +#define gmsg_TutorText 115 +#define gmsg_TutorLine 116 +#define gmsg_TutorState 117 +#define gmsg_TutorClose 118 +#define gmsg_AllowSpec 119 +#define gmsg_BombDrop 120 +#define gmsg_BombPickup 121 +#define gmsg_ClCorpse 122 +#define gmsg_HostagePos 123 +#define gmsg_HostageK 124 +#define gmsg_HLTV 125 +#define gmsg_SpecHealth 126 +#define gmsg_ForceCam 127 +#define gmsg_ADStop 128 +#define gmsg_ReceiveW 129 +#define gmsg_CZCareer 130 +#define gmsg_CZCareerHUD 131 +#define gmsg_ShadowIdx 132 +#define gmsg_TaskTime 133 +#define gmsg_Scenario 134 +#define gmsg_BotVoice 135 +#define gmsg_BuyClose 136 +#define gmsg_SpecHealth2 137 +#define gmsg_BarTime2 138 +#define gmsg_ItemStatus 139 +#define gmsg_Location 140 +#define gmsg_BotProgress 141 +#define gmsg_Brass 142 +#define gmsg_Fog 143 +#define gmsg_ShowTimer 144 +#define gmsg_HudTextArgs 145 /** * Flags for set_msg_block()