Beispiel #1
0
 private void StartShooting()
 {
     if (useMagasine)
     {
         if (WeaponAmmo != null)
         {
             if (WeaponAmmo.CanUseWeapon())
             {
                 RequestShot();
             }
             else
             {
                 if (autoReload)
                 {
                     Reload();
                 }
             }
         }
     }
     else
     {
         RequestShot();
     }
 }
 // Makes our weapon start shooting
 // If using magazine, check for ammo. If no ammo, don't shoot.
 // If weapon doesn't use ammo at all, go nuts. Shoot.
 private void StartShooting()
 {
     if (useMagazine)
     {
         if (WeaponAmmo != null)
         {
             if (WeaponAmmo.CanUseWeapon()) // If ammo > 0.
             {
                 RequestShot();
             }
             else // If no ammo
             {
                 if (autoReload)
                 {
                     Reload();
                 }
             }
         }
     }
     else
     {
         RequestShot();
     }
 }