From 2b65f56cb2c48f61f9571f4371f0f82400a3ec30 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 5 Jun 2023 15:30:06 +0800 Subject: [PATCH] 1 --- server/gameserver/shot.cc | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/server/gameserver/shot.cc b/server/gameserver/shot.cc index a9d5f681..908b9b34 100644 --- a/server/gameserver/shot.cc +++ b/server/gameserver/shot.cc @@ -116,13 +116,23 @@ static void CalcGunMuzzlePosition(Creature* c, break; } } else { - gun_muzzle_position += - glm::vec4( - shot_animi->r_x, - shot_animi->r_y, - shot_animi->r_z, - 0 - ); + if (c->GetHeroMeta()->id() == 60100) { + gun_muzzle_position += + glm::vec4( + shot_animi->p3_x, + shot_animi->p3_y, + shot_animi->p3_z, + 0 + ); + } else { + gun_muzzle_position += + glm::vec4( + shot_animi->r_x, + shot_animi->r_y, + shot_animi->r_z, + 0 + ); + } } } }//end if