Quell missile weapons

This commit is contained in:
Anuken
2022-01-15 15:57:53 -05:00
parent e563ce9dcd
commit e14dd00019
13 changed files with 50 additions and 10 deletions

View File

@@ -2509,7 +2509,7 @@ public class UnitTypes{
flying = true;
drag = 0.06f;
speed = 1.1f;
rotateSpeed = 3.5f;
rotateSpeed = 3.2f;
accel = 0.1f;
health = 3000f;
armor = 5f;
@@ -2524,6 +2524,40 @@ public class UnitTypes{
y = 1f;
}});
weapons.add(new Weapon("quell-weapon"){{
x = 51 / 4f;
y = 5 / 4f;
rotate = true;
rotateSpeed = 2f;
reload = 60f;
layerOffset = -0.001f;
recoil = 1f;
rotationLimit = 60f;
bullet = new BulletType(){{
shootEffect = Fx.shootBig;
smokeEffect = Fx.shootBigSmoke2;
shake = 1f;
}};
unitSpawned = new MissileUnitType("quell-missile"){{
speed = 4f;
maxRange = 80f;
weapons.add(new Weapon(){{
shootOnDeath = true;
bullet = new BulletType(){{
rangeOverride = 20f;
despawnEffect = Fx.blastExplosion;
killShooter = true;
//TODO status?
splashDamageRadius = 60f;
splashDamage = 230f;
}};
}});
}};
}});
setEnginesMirror(
new UnitEngine(62 / 4f, -60 / 4f, 3.9f, 315f),
new UnitEngine(72 / 4f, -29 / 4f, 3f, 315f)