MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / OnBulletHit

Method OnBulletHit

ogsr_engine/xrGame/Weapon.cpp:2138–2142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2136}
2137
2138void CWeapon::OnBulletHit()
2139{
2140 if (!fis_zero(conditionDecreasePerShotOnHit))
2141 ChangeCondition(-conditionDecreasePerShotOnHit);
2142}
2143
2144// По ef_weapon_type тут проверяем, пулемёт ли это. Это костыль чтоб при смене типа патронов не играла анимация reload_empty, которая выглядит в данном случае неправильно.
2145bool CWeapon::IsPartlyReloading() const { return (ef_weapon_type() == 10 || m_set_next_ammoType_on_reload == u32(-1)) && GetAmmoElapsed() > 0 && !IsMisfire(); }

Callers 1

CommitEventsMethod · 0.80

Calls 1

fis_zeroFunction · 0.85

Tested by

no test coverage detected