This commit is contained in:
aozhiwei 2023-06-05 15:30:06 +08:00
parent 99aee3ce60
commit 2b65f56cb2

View File

@ -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