1
This commit is contained in:
parent
7f9dbea5a9
commit
ce3e4e1a73
@ -152,7 +152,6 @@ static void InternalCreateBullet(BulletInfo& bullet_info)
|
||||
if (bullet_info.recoil_force > 0) {
|
||||
if (c->GetCurrWeapon()->ammo <= 0) {
|
||||
c->DoRecoilForce(bullet_info.recoil_force);
|
||||
// 999
|
||||
#if 1
|
||||
bullet_info.bullet_born_pos = bullet_info.bullet_born_pos;
|
||||
#else
|
||||
@ -176,14 +175,12 @@ static void InternalCreateBullet(BulletInfo& bullet_info)
|
||||
bullet_born_angle * A8_PI,
|
||||
glm::vec3(0.0, 1.0, 0.0));
|
||||
glm::vec4 gun_muzzle_position(0.0, 0.0, 0.0, 0.0);
|
||||
#if 1
|
||||
CalcGunMuzzlePosition(c,
|
||||
bullet_info.weapon_meta,
|
||||
bullet_info.shot_animi,
|
||||
gun_muzzle_position,
|
||||
bullet_info.bullet_idx,
|
||||
bullet_info.bullet_num);
|
||||
#endif
|
||||
glm::vec4 v = transform * gun_muzzle_position;
|
||||
bullet_born_offset = a8::Vec2(v.z *10*1, v.x*10*-1);
|
||||
// 999
|
||||
|
Loading…
x
Reference in New Issue
Block a user