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

View File

@ -235,6 +235,47 @@ void InternalShot(Creature* c,
itr->second.l_z,
0
);
} else {
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(
@ -247,6 +288,7 @@ void InternalShot(Creature* c,
}
}
}
}
if (weapon_meta->gun_muzzle_position) {
gun_muzzle_position +=
glm::vec4(