From ce2d604f9ce4c1be4001e7cd238bbb2edb422de2 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 3 Apr 2019 14:35:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=89=8B=E9=9B=B7=E7=83=9F?= =?UTF-8?q?=E9=9B=BE=E5=BC=B9=E5=8D=8F=E8=AE=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/tools/protobuild/cs_proto.proto | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/server/tools/protobuild/cs_proto.proto b/server/tools/protobuild/cs_proto.proto index b20f0b3..eff6997 100755 --- a/server/tools/protobuild/cs_proto.proto +++ b/server/tools/protobuild/cs_proto.proto @@ -432,6 +432,7 @@ message MFBullet optional int32 reflect_count = 8; optional int32 reflect_objid = 9; optional int32 gun_id = 10; //抢id + optional float fly_distance = 11; //只有手雷和烟雾弹时这个字段才有意义 } //射击 @@ -448,6 +449,7 @@ message MFExplosion { optional int32 item_id = 1; //配置表id optional MFVector2D pos = 2; //位置 + optional int32 player_id = 3; //玩家id } //烟雾 @@ -456,6 +458,7 @@ message MFSmoke optional int32 item_id = 1; //配置表id optional MFVector2D pos = 2; //位置 optional float rad = 3; //半径 + optional int32 player_id = 4; //玩家id } //表情 @@ -524,9 +527,10 @@ message CMMove optional MFVector2D move_dir = 24; //移动-方向 optional MFVector2D attack_dir = 20; //攻击方向(朝向) - optional bool shot_start = 6; //射击-开始 - optional bool shot_hold = 7; //射击-一直按着 + optional bool shot_start = 6; //射击-单发 + optional bool shot_hold = 7; //射击-连发 optional bool reload = 8; //装弹 + optional float fly_distance = 12; //子弹飞行距离(只有手雷和烟雾弹时这个字段才有意义) optional int32 select_weapon = 10; //切换武器(没切换是不用发) optional int32 drop_weapon = 11; //丢弃武器