1
This commit is contained in:
parent
bf3539dc71
commit
f736c86b45
@ -256,6 +256,15 @@ void InternalShot(Creature* c,
|
|||||||
0
|
0
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
if (weapon_meta->movex_position) {
|
||||||
|
gun_muzzle_position +=
|
||||||
|
glm::vec4(
|
||||||
|
std::get<0>(*weapon_meta->movex_position.get()),
|
||||||
|
std::get<1>(*weapon_meta->movex_position.get()),
|
||||||
|
std::get<2>(*weapon_meta->movex_position.get()),
|
||||||
|
0
|
||||||
|
);
|
||||||
|
}
|
||||||
glm::vec4 v = transform * gun_muzzle_position;
|
glm::vec4 v = transform * gun_muzzle_position;
|
||||||
bullet_born_offset = a8::Vec2(v.z *10*1, v.x*10*-1);
|
bullet_born_offset = a8::Vec2(v.z *10*1, v.x*10*-1);
|
||||||
bullet_born_pos = c->GetPos() + bullet_born_offset;
|
bullet_born_pos = c->GetPos() + bullet_born_offset;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user