1
This commit is contained in:
parent
4907b50e2d
commit
1ef12de7ca
@ -376,6 +376,9 @@ void Car::FillMFObjectFull(Room* room, Human* hum, cs::MFObjectFull* full_data)
|
|||||||
Creature_FillBuffList(this, hum, p->mutable_buff_list());
|
Creature_FillBuffList(this, hum, p->mutable_buff_list());
|
||||||
Creature_FillEffectList(this, hum, p->mutable_effect_list());
|
Creature_FillEffectList(this, hum, p->mutable_effect_list());
|
||||||
p->set_team_id(team_id);
|
p->set_team_id(team_id);
|
||||||
|
if (GetDriver()) {
|
||||||
|
Creature_FillSkillList(this, p->mutable_skill_list());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Hero::FillMFObjectPart(Room* room, Human* hum, cs::MFObjectPart* part_data)
|
void Hero::FillMFObjectPart(Room* room, Human* hum, cs::MFObjectPart* part_data)
|
||||||
|
@ -596,7 +596,8 @@ void Player::UpdateSwitchSeat()
|
|||||||
|
|
||||||
void Player::UpdateUseSkill()
|
void Player::UpdateUseSkill()
|
||||||
{
|
{
|
||||||
if (GetCar()) {
|
if (GetCar() && GetCar()->IsDriver(this)) {
|
||||||
|
GetCar()->DoSkill(use_skill_id, skill_target_id, skill_dir, skill_distance);
|
||||||
} else {
|
} else {
|
||||||
DoSkill(use_skill_id, skill_target_id, skill_dir, skill_distance);
|
DoSkill(use_skill_id, skill_target_id, skill_dir, skill_distance);
|
||||||
}
|
}
|
||||||
|
@ -508,7 +508,7 @@ message MFCarFull
|
|||||||
optional int32 bullet_num = 16; //子弹数量
|
optional int32 bullet_num = 16; //子弹数量
|
||||||
repeated MFEffect effect_list = 18; //特效列表
|
repeated MFEffect effect_list = 18; //特效列表
|
||||||
optional int32 team_id = 19; //队伍id
|
optional int32 team_id = 19; //队伍id
|
||||||
|
repeated MFSkill skill_list = 20; //技能列表
|
||||||
/*
|
/*
|
||||||
乘客列表(包含驾驶员)
|
乘客列表(包含驾驶员)
|
||||||
!!!注意这里只返回客户端必要的用于显示玩家外观的信息而不是全量信息
|
!!!注意这里只返回客户端必要的用于显示玩家外观的信息而不是全量信息
|
||||||
|
Loading…
x
Reference in New Issue
Block a user