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; //丢弃武器