From 32cb68e6fc3c73d15ed59d6a73593f43660bdc01 Mon Sep 17 00:00:00 2001 From: Nick Hastings Date: Tue, 5 Dec 2023 17:24:31 -0500 Subject: [PATCH] Update protos --- game/shared/cs/cs_gameevents.proto | 1 + game/shared/cs/cs_usercmd.proto | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/game/shared/cs/cs_gameevents.proto b/game/shared/cs/cs_gameevents.proto index 60fb83c7..f9bddd6d 100644 --- a/game/shared/cs/cs_gameevents.proto +++ b/game/shared/cs/cs_gameevents.proto @@ -31,4 +31,5 @@ message CMsgTEFireBullets { optional fixed32 sound_dsp_effect = 12; optional .CMsgVector ent_origin = 13; optional uint32 num_bullets_remaining = 14; + optional uint32 attack_type = 15; } diff --git a/game/shared/cs/cs_usercmd.proto b/game/shared/cs/cs_usercmd.proto index 2d8f9607..65c73f46 100644 --- a/game/shared/cs/cs_usercmd.proto +++ b/game/shared/cs/cs_usercmd.proto @@ -32,6 +32,15 @@ message CSGOUserCmdPB { k_eSecondaryAttack = 2; k_eZoom = 3; k_eReload = 4; + k_eGrenadeThrow = 5; + k_eGrenadeHold = 6; + k_eGrenadeHoldThenThrow = 7; + } + + enum EGrenadeStrength { + k_eLow = 0; + k_eMid = 1; + k_eHigh = 2; } optional .CBaseUserCmdPB base = 1; @@ -41,4 +50,5 @@ message CSGOUserCmdPB { optional int32 attack3_start_history_index = 8 [default = -1]; optional .CSGOUserCmdPB.EWeaponDecision weapon_decision = 9 [default = k_eNone]; optional int32 weapon_decision_weapon = 10; + optional .CSGOUserCmdPB.EGrenadeStrength target_grenade_strength = 11 [default = k_eLow]; }