From 09cb4170695e5c5961ca7f8f27ab0481deb8f0de Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 2 Mar 2023 11:49:50 +0800 Subject: [PATCH] 1 --- server/tools/protobuild/cs_proto.proto | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/server/tools/protobuild/cs_proto.proto b/server/tools/protobuild/cs_proto.proto index f610b354..e39fb3b3 100755 --- a/server/tools/protobuild/cs_proto.proto +++ b/server/tools/protobuild/cs_proto.proto @@ -654,6 +654,16 @@ message MFShot optional int32 aiming = 6 [default = 0]; //是否瞄准中 } +//投掷 +message MFThrow +{ + optional int32 weapon_id = 1; //枪id + optional int32 throw_uniid = 2; //唯一id > 0 (客户端维持唯一) + optional MFVec3 pos = 3; //位置 + optional MFVec3 dir = 4; //方向 + optional float fly_distance = 5; //飞行距离 +} + //爆炸 message MFExplosion { @@ -1133,8 +1143,9 @@ message CMMove optional int32 trace_target_uniid = 41; //自动追踪目标uniid repeated int32 hit_fly_effects = 42; //飞行特效命中(飞到目的地)时回传value3 -} + optional MFThrow throw_bomb = 44; //投掷 +} //立刻消息 message CMImmediateMsg @@ -1253,6 +1264,12 @@ message CMRequestBulletDmg optional int32 target_uniid = 4; //命中目标id } +//请求投掷物伤害 +message CMRequestThrowDmg +{ + optional int32 throw_uniid = 1; //投掷唯一id +} + //收起盾牌 message CMStowShield {