This commit is contained in:
Alex38Lyon
2025-06-03 22:54:29 +02:00
parent 758321c4ff
commit 122fe2f968
633 changed files with 26037 additions and 1056649 deletions
@@ -395,7 +395,7 @@ namespace Unity.FPS.Game
if (m_CurrentAmmo >= 1f
&& m_LastTimeShot + DelayBetweenShots < Time.time)
{
HandleShoot();
// HandleShoot();
m_CurrentAmmo -= 1f;
return true;
@@ -446,10 +446,10 @@ namespace Unity.FPS.Game
// spawn all bullets with random direction
for (int i = 0; i < bulletsPerShotFinal; i++)
{
Vector3 shotDirection = GetShotDirectionWithinSpread(WeaponMuzzle);
ProjectileBase newProjectile = Instantiate(ProjectilePrefab, WeaponMuzzle.position,
Quaternion.LookRotation(shotDirection));
newProjectile.Shoot(this);
// Vector3 shotDirection = GetShotDirectionWithinSpread(WeaponMuzzle);
// ProjectileBase newProjectile = Instantiate(ProjectilePrefab, WeaponMuzzle.position,
// Quaternion.LookRotation(shotDirection));
// newProjectile.Shoot(this);
}
// muzzle flash