This commit is contained in:
aozhiwei 2022-10-26 14:58:09 +08:00
parent a2dd2d675e
commit efba8bec87
2 changed files with 4 additions and 0 deletions

View File

@ -63,6 +63,9 @@ void FrameEvent::AddShot(CreatureWeakPtr& sender)
if (sender.Get()->IsCar()) {
p.set_hole(sender.Get()->shot_hole);
}
if (sender.Get()->aiming) {
p.set_aiming(1);
}
}
{
int shot_idx = shots_.size() - 1;

View File

@ -608,6 +608,7 @@ message MFShot
optional int32 player_id = 1; //id
optional MFWeapon weapon = 2; //id
optional int32 hole = 5 [default = 0]; //(0)
optional int32 aiming = 6 [default = 0]; //
}
//