Exemple #1
0
 public void FireTurretsGuns(BasePlayer player, AutoTurret turret)
 {
     if (turret.IsOnline() == true)
     {
         if (turret.GetAttachedWeapon().AmmoFraction() <= 0)
         {
             //nextShootTime = Time.time + turret.GetAttachedWeapon().GetReloadDuration();
             turret.GetAttachedWeapon().TopUpAmmo();
             //canGunShoot = false;
         }
         turret.FireAttachedGun(Vector3.zero, ConVar.PatrolHelicopter.bulletAccuracy);
     }
 }