This commit is contained in:
aozhiwei 2021-05-25 13:54:24 +08:00
parent 6e8de7d692
commit 123fbbfd2c
4 changed files with 14 additions and 0 deletions

View File

@ -1107,6 +1107,12 @@ bool Creature::IsProperTarget(Creature* target, bool no_teammate)
if (target->HasBuffEffect(kBET_Hide)) {
return false;
}
if (target->HasBuffEffect(kBET_Driver)) {
return false;
}
if (target->HasBuffEffect(kBET_Passenger)) {
return false;
}
return true;
}

View File

@ -145,6 +145,8 @@ void Human::FillMFObjectLess(Room* room, Human* hum, cs::MFPlayerFull* full_data
p->set_backpack(backpack);
p->set_helmet(helmet);
p->set_chest(chest);
p->set_shoot_offset_x(shoot_offset.x);
p->set_shoot_offset_y(shoot_offset.y);
GetCurrWeapon()->ToPB(p->mutable_weapon());
}
@ -173,6 +175,8 @@ void Human::FillMFObjectFull(Room* room, Human* hum, cs::MFObjectFull* full_data
p->set_chest(chest);
GetCurrWeapon()->ToPB(p->mutable_weapon());
p->set_energy_shield(energy_shield);
p->set_shoot_offset_x(shoot_offset.x);
p->set_shoot_offset_y(shoot_offset.y);
#if 1
{
p->set_max_energy_shield(max_energy_shield);

View File

@ -244,6 +244,9 @@ message MFPlayerFull
optional int32 charid = 44; //id
optional float speed = 45; //
optional float shoot_offset_x = 50 [default = 0]; //-x
optional float shoot_offset_y = 51 [default = 0]; //-y
optional string user_data = 60 [default = ""]; //
}

View File

@ -120,6 +120,7 @@ message Equip
optional string power_time = 51;
optional string power_gun = 52;
optional string power_buff = 53;
optional int32 through_teammate = 54;
optional string inventory_slot = 31; //
optional int32 _inventory_slot = 32; //