source_demo_tool/demo_file/packet/
usermessage.rs

1use source_demo_tool_impl_proc_macros::declare_protobuf_messages;
2
3declare_protobuf_messages!(User, {
4    SayText = 5 {
5        optional       entity_idx: VarInt = 1,
6                             text: String = 2,
7        optional          is_chat: VarInt = 3,
8        optional is_text_all_chat: VarInt = 4,
9    },
10    SayText2 = 6 {
11               ent_sidx: VarInt = 1,
12                   chat: VarInt = 2,
13               msg_name: String = 3,
14        repeated params: String = 4,
15          text_all_chat: VarInt = 5,
16    },
17    TextMsg = 7 {
18                 msg_dst: VarInt = 1,
19        repeated  params: String = 3,
20    },
21    Shake = 12 {
22                command:  VarInt = 1,
23        local_amplitude: Float32 = 2,
24              frequency: Float32 = 3,
25               duration: Float32 = 4,
26    },
27    Damage = 21 {
28        amount: VarInt = 1,
29        InflictorWorldPos: Proto = 2 {
30            _x: Float32 = 1,
31            _y: Float32 = 2,
32            _z: Float32 = 3,
33        },
34        victim_entity_index: VarInt = 3,
35    },
36    ProcessSpottedEntityUpdate = 25 {
37        new_update: VarInt = 1,
38        optional repeated SpottedEntityUpdates: Proto = 2 {
39                             entity_idx: VarInt = 1,
40                               class_id: VarInt = 2,
41                               origin_x: VarInt = 3,
42                               origin_y: VarInt = 4,
43                               origin_z: VarInt = 5,
44                                angle_y: VarInt = 6,
45                                defuser: VarInt = 7,
46            optional player_has_defuser: VarInt = 8,
47            optional      player_has_c4: VarInt = 9,
48        },
49    },
50    PlayerStatsUpdate = 36 {
51        version: VarInt = 1,
52        repeated Stats: Proto = 4 {
53              idx: VarInt = 1,
54            delta: VarInt = 2,
55        },
56        user_id: VarInt = 5,
57            crc: VarInt = 6,
58    },
59    WarmupEnded = 38 {
60
61    },
62    VoteStart = 46 {
63                     team: VarInt = 1,
64               entity_idx: VarInt = 2,
65                vote_type: VarInt = 3,
66           display_string: String = 4,
67           details_string: String = 5,
68        other_team_string: String = 6,
69    },
70    VotePass = 47 {
71                  team: VarInt = 1,
72             vote_type: VarInt = 2,
73        display_string: String = 3,
74        details_string: String = 4,
75    },
76    ServerRankRevealAll = 50 {
77
78    },
79    P69 = 69 {
80         guess_player_idx:  VarInt = 1,
81              guess_pos_x: Float32 = 2,
82              guess_pos_y: Float32 = 3,
83              guess_pos_z: Float32 = 4,
84      guess_weapon_action:  String = 5,
85          guess_game_time: Float32 = 6,
86    },
87    P75 = 75 {
88        repeated P75_P1: Proto = 1 {
89            v1: VarInt = 1,
90            v2: VarInt = 2,
91            s3: String = 3,
92            v4: VarInt = 4,
93            P75_P1_P5: Proto = 5 {
94                v1:  VarInt = 1,
95                f2: Float32 = 2,
96                v3:  VarInt = 3,
97            },
98            repeated P75_P1_P6: Proto = 6 {
99                          v2: VarInt = 2,
100                          v3: VarInt = 3,
101                optional  v4: VarInt = 4,
102                optional  v5: VarInt = 5,
103                optional  v6: VarInt = 6,
104                optional  v7: VarInt = 7,
105                optional  v8: VarInt = 8,
106                optional  v9: VarInt = 9,
107                optional v10: VarInt = 10,
108                optional s11: String = 11,
109                optional repeated P75_P1_P6_P12: Proto = 12 {
110                    v1: VarInt = 1,
111                    v2: VarInt = 2,
112                    optional f3: Fixed32 = 3,
113                    optional f4: Fixed32 = 4,
114                    optional f5: Fixed32 = 5,
115                },
116                optional v14: VarInt = 14,
117            },
118            v7:  VarInt = 7,
119            v8:  VarInt = 8,
120        },
121    },
122});