diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index 0349b56..15c4ede 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -112,6 +112,7 @@ void Human::FillMFPlayerStats(cs::MFPlayerStats* stats_pb) void Human::FillMFTeamData(cs::MFTeamData* team_data) { team_data->set_player_id(entity_uniid); + team_data->set_name(name); pos.ToPB(team_data->mutable_pos()); attack_dir.ToPB(team_data->mutable_dir()); team_data->set_health(health); diff --git a/server/tools/protobuild/cs_proto.proto b/server/tools/protobuild/cs_proto.proto index 96e1df1..59350df 100755 --- a/server/tools/protobuild/cs_proto.proto +++ b/server/tools/protobuild/cs_proto.proto @@ -413,6 +413,7 @@ message MFTeamData optional bool disconnected = 5; //是否短线 optional bool dead = 6; //是否死亡 optional bool downed = 7; //是否倒下 + optional string name = 8; //名字 } //同队队友数据