New WIP missile turret
This commit is contained in:
@@ -406,7 +406,7 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
|
||||
|
||||
//make sure trail doesn't just go poof
|
||||
if(trail != null && trail.size() > 0){
|
||||
Fx.trailFade.at(x, y, trail.width(), team.color, trail.copy());
|
||||
Fx.trailFade.at(x, y, trail.width(), type.trailColor == null ? team.color : type.trailColor, trail.copy());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -584,7 +584,7 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
|
||||
}
|
||||
|
||||
for(WeaponMount mount : mounts){
|
||||
if(mount.weapon.shootOnDeath && !(mount.weapon.bullet.killShooter && mount.shoot)){
|
||||
if(mount.weapon.shootOnDeath && !(mount.weapon.bullet.killShooter && mount.totalShots > 0)){
|
||||
mount.reload = 0f;
|
||||
mount.shoot = true;
|
||||
mount.weapon.update(self(), mount);
|
||||
|
||||
Reference in New Issue
Block a user