Begin reloading continuous weapons after the bullet finishes.

This commit is contained in:
MEEP of Faith
2020-11-16 16:11:36 -08:00
parent 4b733fe244
commit ffca824474
2 changed files with 2 additions and 1 deletions

View File

@@ -431,7 +431,7 @@ public class UnitTypes implements ContentList{
firstShotDelay = Fx.greenLaserChargeSmall.lifetime - 1f;
reload = 320f;
reload = 160f;
recoil = 0f;
chargeSound = Sounds.lasercharge2;
shootSound = Sounds.beam;

View File

@@ -117,6 +117,7 @@ abstract class WeaponsComp implements Teamc, Posc, Rotc, Velc, Statusc{
}else{
mount.bullet.rotation(weaponRotation + 90);
mount.bullet.set(shootX, shootY);
mount.reload = weapon.reload;
vel.add(Tmp.v1.trns(rotation + 180f, mount.bullet.type.recoil));
if(weapon.shootSound != Sounds.none && !headless){
if(mount.sound == null) mount.sound = new SoundLoop(weapon.shootSound, 1f);