Difference between revisions of "Counter-Strike: Global Offensive UserMessages"

From AlliedModders Wiki
Jump to: navigation, search
(New page for CS:GO's UserMessages. This is a safety save and this version is not yet compelete)
 
(Another Safety Save)
Line 220: Line 220:
 
{{begin-hl2msg|ProcessSpottedEntityUpdate|string}}
 
{{begin-hl2msg|ProcessSpottedEntityUpdate|string}}
 
{{hl2msg|repeated SpottedEntityUpdate|entity_updates|}}
 
{{hl2msg|repeated SpottedEntityUpdate|entity_updates|}}
 +
{{end-hl2msg}}
 +
 +
== ReloadEffect ==
 +
 +
{{begin-hl2msg|ReloadEffect|string}}
 +
{{hl2msg|int32|entidx|}}
 +
{{end-hl2msg}}
 +
 +
== AdjustMoney ==
 +
 +
{{begin-hl2msg|AdjustMoney|string}}
 +
{{hl2msg|int32|amount|}}
 +
{{end-hl2msg}}
 +
 +
== KillCam ==
 +
 +
{{begin-hl2msg|KillCam|string}}
 +
{{hl2msg|int32|obs_mode|}}
 +
{{hl2msg|int32|first_target|}}
 +
{{hl2msg|int32|second_target|}}
 +
{{end-hl2msg}}
 +
 +
== DesiredTimescale ==
 +
 +
{{begin-hl2msg|DesiredTimescale|string}}
 +
{{hl2msg|float|desired_timescale|}}
 +
{{hl2msg|float|duration_realtime_sec|}}
 +
{{hl2msg|int32|interpolator_type|}}
 +
{{hl2msg|float|start_blend_time|}}
 +
{{end-hl2msg}}
 +
 +
== CurrentTimescale ==
 +
 +
{{begin-hl2msg|CurrentTimescale|string}}
 +
{{hl2msg|float|cur_timescale|}}
 +
{{end-hl2msg}}
 +
 +
== AchievementEvent ==
 +
 +
{{begin-hl2msg|AchievementEvent|string}}
 +
{{hl2msg|int32|achievement|}}
 +
{{hl2msg|int32|count|}}
 +
{{hl2msg|int32|user_id|}}
 +
{{end-hl2msg}}
 +
 +
== MatchEndConditions ==
 +
 +
{{begin-hl2msg|MatchEndConditions|string}}
 +
{{hl2msg|int32|fraglimit|}}
 +
{{hl2msg|int32|mp_maxrounds|}}
 +
{{hl2msg|int32|mp_winlimit|}}
 +
{{hl2msg|int32|mp_timelimit|}}
 +
{{end-hl2msg}}
 +
 +
== PlayerStatsUpdate ==
 +
 +
{{begin-hl2msg|Stat|string}}
 +
{{hl2msg|int32|idx|}}
 +
{{hl2msg|int32|delta|}}
 +
{{end-hl2msg}}
 +
 +
{{begin-hl2msg|PlayerStatsUpdate|string}}
 +
{{hl2msg|int32|version|}}
 +
{{hl2msg|int32|official_server|}}
 +
{{hl2msg|repeated Stat|stats|}}
 +
{{hl2msg|int32|user_id|}}
 +
{{hl2msg|int32|crc|}}
 +
{{end-hl2msg}}
 +
 +
== DisplayInventory ==
 +
 +
{{begin-hl2msg|DisplayInventory|string}}
 +
{{hl2msg|bool|display|}}
 +
{{hl2msg|int32|user_id|}}
 +
{{end-hl2msg}}
 +
 +
== XRankGet ==
 +
 +
{{begin-hl2msg|XRankGet|string}}
 +
{{hl2msg|int32|mode_idx|}}
 +
{{hl2msg|int32|controller|}}
 +
{{end-hl2msg}}
 +
 +
== XRankUpd ==
 +
 +
{{begin-hl2msg|XRankUpd|string}}
 +
{{hl2msg|int32|mode_idx|}}
 +
{{hl2msg|int32|controller|}}
 +
{{hl2msg|int32|ranking|}}
 +
{{end-hl2msg}}
 +
 +
== CallVoteFailed ==
 +
 +
{{begin-hl2msg|CallVoteFailed|string}}
 +
{{hl2msg|int32|reason|}}
 +
{{hl2msg|int32|time|}}
 +
{{end-hl2msg}}
 +
 +
== VoteStart ==
 +
 +
{{begin-hl2msg|VoteStart|string}}
 +
{{hl2msg|int32|team|}}
 +
{{hl2msg|int32|ent_idx|}}
 +
{{hl2msg|int32|vote_type|}}
 +
{{hl2msg|string|disp_str|}}
 +
{{hl2msg|string|details_str|}}
 +
{{hl2msg|string|other_team_str|}}
 +
{{hl2msg|bool|is_yes_no_vote|}}
 +
{{end-hl2msg}}
 +
 +
== VotePass ==
 +
 +
{{begin-hl2msg|VotePass|string}}
 +
{{hl2msg|int32|team|}}
 +
{{hl2msg|int32|vote_type|}}
 +
{{hl2msg|string|disp_str|}}
 +
{{hl2msg|string|details_str|}}
 +
{{end-hl2msg}}
 +
 +
== VoteFailed ==
 +
 +
{{begin-hl2msg|VoteFailed|string}}
 +
{{hl2msg|int32|team|}}
 +
{{hl2msg|int32|reason|}}
 +
{{end-hl2msg}}
 +
 +
== VoteSetup ==
 +
 +
{{begin-hl2msg|VoteSetup|string}}
 +
{{hl2msg|repeated string|potential_issues|}}
 +
{{end-hl2msg}}
 +
 +
== SendLastKillerDamageToClient ==
 +
 +
{{begin-hl2msg|SendLastKillerDamageToClient|string}}
 +
{{hl2msg|int32|num_hits_given|}}
 +
{{hl2msg|int32|damage_given|}}
 +
{{hl2msg|int32|num_hits_taken|}}
 +
{{hl2msg|int32|damage_taken|}}
 
{{end-hl2msg}}
 
{{end-hl2msg}}

Revision as of 08:47, 26 March 2013

Counter-Strike: Global Offensive uses Google's ProtoBuffers instead of Valve's traditional UserMessages.

The data on this page was read from cstrike15_usermessages.proto which was provided by Valve.

Valve Copyright Notice

//====== Copyright (c) 2013, Valve Corporation, All rights reserved. ========//
//
// Redistribution and use in source and binary forms, with or without 
// modification, are permitted provided that the following conditions are met:
//
// Redistributions of source code must retain the above copyright notice, this
// list of conditions and the following disclaimer.
// Redistributions in binary form must reproduce the above copyright notice, 
// this list of conditions and the following disclaimer in the documentation 
// and/or other materials provided with the distribution.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 
// THE POSSIBILITY OF SUCH DAMAGE.
//===========================================================================//
//
// Purpose: The file defines our Google Protocol Buffers which are used in over 
// the wire messages for the Source engine.
//
//=============================================================================

VGUIMenu

Name: SubKey
Structure:
string name
string str


Name: VGUIMenu
Structure:
string name
bool show
repeated SubKey subkeys


Geiger

Name: Geiger
Structure:
int32 range


Train

Name: Train
Structure:
int32 train


HudText

Name: HudText
Structure:
string text


SayText

Name: SayText
Structure:
int32 ent_idx
string text
bool chat
bool textallchat


SayText2

Name: SayText2
Structure:
int32 ent_idx
bool chat
string msg_name
repeated string params
bool textallchat


TextMsg

Name: TextMsg
Structure:
int32 msg_dst
repeated string params


HudMsg

Name: HudMsg
Structure:
int32 channel
CMsgVector2D pos
CMsgRGBA clr1
CMsgRGBA clr2
int32 effect
float fade_in_time
float fade_out_time
float hold_time
float fx_time
string text


Shake

Name: Shake
Structure:
int32 command
float local_amplitude
float frequency
float duration


Fade

Name: Fade
Structure:
int32 duration
int32 hold_time
int32 flags fade type (in / out)
CMsgRGBA clr


Rumble

Name: Rumble
Structure:
int32 index
int32 data
int32 flags


CloseCaption

Name: CloseCaption
Structure:
uint32 hash
int32 duration
bool from_player {{{3}}}


CloseCaptionDirect

Name: CloseCaptionDirect
Structure:
uint32 hash
int32 duration
bool from_player {{{3}}}


SendAudio

Name: SendAudio
Structure:
string radio_sound


RawAudio

Name: RawAudio
Structure:
int32 pitch
int32 ent_index
float duration
string voice_filename


VoiceMask

Name: PlayerMask
Structure:
int32 game_rules_mask
int32 ban_masks


Name: VoiceMask
Structure:
repeated PlayerMask player_masks
bool player_mod_enable


Damage

Name: Damage
Structure:
int32 amount
CMsgVector inflictor_world_pos


RadioText

Name: RadioText
Structure:
int32 msg_dst
int32 client
string msg_name
repeated string params


HintText

Name: HintText
Structure:
string text


KeyHintText

Name: KeyHintText
Structure:
string hints


ProcessSpottedEntityUpdate

Note: gurjeets - Message below is slightly bigger in size than the non-protobuf version, by around 8 bits.

Name: SpottedEntityUpdate
Structure:
int32 entity_idx
int32 class_id
int32 origin_x
int32 origin_y
int32 origin_z
int32 angle_y
bool defuser
bool player_has_defuser
bool player_has_c4


Name: ProcessSpottedEntityUpdate
Structure:
repeated SpottedEntityUpdate entity_updates


ReloadEffect

Name: ReloadEffect
Structure:
int32 entidx


AdjustMoney

Name: AdjustMoney
Structure:
int32 amount


KillCam

Name: KillCam
Structure:
int32 obs_mode
int32 first_target
int32 second_target


DesiredTimescale

Name: DesiredTimescale
Structure:
float desired_timescale
float duration_realtime_sec
int32 interpolator_type
float start_blend_time


CurrentTimescale

Name: CurrentTimescale
Structure:
float cur_timescale


AchievementEvent

Name: AchievementEvent
Structure:
int32 achievement
int32 count
int32 user_id


MatchEndConditions

Name: MatchEndConditions
Structure:
int32 fraglimit
int32 mp_maxrounds
int32 mp_winlimit
int32 mp_timelimit


PlayerStatsUpdate

Name: Stat
Structure:
int32 idx
int32 delta


Name: PlayerStatsUpdate
Structure:
int32 version
int32 official_server
repeated Stat stats
int32 user_id
int32 crc


DisplayInventory

Name: DisplayInventory
Structure:
bool display
int32 user_id


XRankGet

Name: XRankGet
Structure:
int32 mode_idx
int32 controller


XRankUpd

Name: XRankUpd
Structure:
int32 mode_idx
int32 controller
int32 ranking


CallVoteFailed

Name: CallVoteFailed
Structure:
int32 reason
int32 time


VoteStart

Name: VoteStart
Structure:
int32 team
int32 ent_idx
int32 vote_type
string disp_str
string details_str
string other_team_str
bool is_yes_no_vote


VotePass

Name: VotePass
Structure:
int32 team
int32 vote_type
string disp_str
string details_str


VoteFailed

Name: VoteFailed
Structure:
int32 team
int32 reason


VoteSetup

Name: VoteSetup
Structure:
repeated string potential_issues


SendLastKillerDamageToClient

Name: SendLastKillerDamageToClient
Structure:
int32 num_hits_given
int32 damage_given
int32 num_hits_taken
int32 damage_taken