void CWeaponPistol::OnShot () { PlaySound (m_sSndShotCurrent.c_str(),get_LastFP()); AddShotEffector (); PlayAnimShoot (); // Shell Drop Fvector vel; PHGetLinearVell(vel); OnShellDrop (get_LastSP(), vel); // ќгонь из ствола StartFlameParticles (); R_ASSERT2(!m_pFlameParticles || !m_pFlameParticles->IsLooped(), "can't set looped particles system for shoting with pistol"); //дым из ствола StartSmokeParticles (get_LastFP(), vel); }
void CWeaponMagazined::OnShot() { // Sound PlaySound(*m_pSndShotCurrent, get_LastFP()); // Camera AddShotEffector(); // Animation PlayAnimShoot(); // Shell Drop Fvector vel; PHGetLinearVell(vel); OnShellDrop(get_LastSP(), vel); // Огонь из ствола StartFlameParticles(); //дым из ствола ForceUpdateFireParticles(); StartSmokeParticles(get_LastFP(), vel); }