This commit is contained in:
aozhiwei 2022-09-16 19:58:05 +08:00
parent f736c86b45
commit 5dc035e2aa

View File

@ -236,13 +236,55 @@ void InternalShot(Creature* c,
0
);
} else {
gun_muzzle_position +=
glm::vec4(
itr->second.r_x,
itr->second.r_y,
itr->second.r_z,
0
);
if (c->IsCar()) {
switch (c->shot_hole) {
case 1:
{
gun_muzzle_position +=
glm::vec4(
itr->second.p3_x,
itr->second.p3_y,
itr->second.p3_z,
0
);
}
break;
case 2:
{
gun_muzzle_position +=
glm::vec4(
itr->second.p4_x,
itr->second.p4_y,
itr->second.p4_z,
0
);
}
break;
case 3:
{
gun_muzzle_position +=
glm::vec4(
itr->second.p5_x,
itr->second.p5_y,
itr->second.p5_z,
0
);
}
break;
default:
{
}
break;
}
} else {
gun_muzzle_position +=
glm::vec4(
itr->second.r_x,
itr->second.r_y,
itr->second.r_z,
0
);
}
}
}
}