Closed romanpopulik closed 3 years ago
Also, anim_reload_partly_gl is not working, the game plays anim_reload_gl
Where did you find this animation name? Correct name: anim_reload_gl_partly
.
Looks like anim_holster_g is not working, the game plays anim_holster_gl
Hmm, really. It looks like this is a bug. I can fix this.
Where did you find this animation name? Correct name:
anim_reload_gl_partly
.
Ok, it works now.
Test this version please.
Yes, it's fixed
Another one: anim anim_shoot_g
doesn't work
Must work:
void CWeaponMagazinedWGrenade::PlayAnimShoot()
{
VERIFY(GetState()==eFire || GetState()==eFire2);
if(this->m_bGrenadeMode)
{
//анимация стрельбы из подствольника
m_pHUD->animPlay(random_anim(mhud_shots_g),TRUE,this, GetState());
}
else
{
if(IsGrenadeLauncherAttached())
m_pHUD->animPlay(random_anim(mhud_shots_w_gl),TRUE,this, GetState());
else
inherited::PlayAnimShoot();
}
}
Grenade is shooted, but animation is not played. anim_shoot_gl
is played properly.
Apparently CWeaponMagazinedWGrenade::PlayAnimShoot()
is not called at all when firing a grenade launcher.
I tried vanilla files and engine. anim_shoot_g
is not played too, but immediately after firing the grenade, the engine plays anim_reload_g
Fixed. Thanks for your report.
I'm working now on AK74. Looks like
anim_holster_g
is not working, the game playsanim_holster_gl
.Also,
anim_reload_partly_gl
is not working, the game playsanim_reload_gl
, but suprisingly proper sound is played (snd_reload_partly
)