WIP chnages to collaris weapon

This commit is contained in:
Anuken 2022-07-13 22:57:13 -04:00
parent a734f8423c
commit 62332fbebb
5 changed files with 66 additions and 23 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -5644,7 +5644,7 @@ public class Blocks{
forceDark = true; forceDark = true;
privileged = true; privileged = true;
size = 1; size = 1;
maxInstructionsPerTick = 100; maxInstructionsPerTick = 500;
range = Float.MAX_VALUE; range = Float.MAX_VALUE;
}}; }};

View File

@ -1597,14 +1597,14 @@ public class Fx{
} }
}), }),
shootSmokeSquareBig = new Effect(30f, e -> { shootSmokeSquareBig = new Effect(32f, e -> {
color(Color.white, e.color, e.fin()); color(Color.white, e.color, e.fin());
rand.setSeed(e.id); rand.setSeed(e.id);
for(int i = 0; i < 8; i++){ for(int i = 0; i < 13; i++){
float rot = e.rotation + rand.range(22f); float rot = e.rotation + rand.range(26f);
v.trns(rot, rand.random(e.finpow() * 24f)); v.trns(rot, rand.random(e.finpow() * 30f));
Fill.poly(e.x + v.x, e.y + v.y, 4, e.fout() * 3.8f + 0.2f, rand.random(360f)); Fill.poly(e.x + v.x, e.y + v.y, 4, e.fout() * 4f + 0.2f, rand.random(360f));
} }
}), }),

View File

@ -3383,20 +3383,16 @@ public class UnitTypes{
rotateSpeed = 0.4f; rotateSpeed = 0.4f;
rotate = true; rotate = true;
x = 43 / 4f; x = 48 / 4f;
y = -20f / 4f; y = -28f / 4f;
shootY = 37 / 4f; shootY = 64f / 4f;
shootX = -5f / 4f;
recoil = 3f; recoil = 3f;
reload = 30f; reload = 90f;
shake = 2f; shake = 5f;
cooldownTime = 20f;
layerOffset = 0.02f; layerOffset = 0.02f;
shadow = 10f;
shoot.shots = 3; shoot.shots = 1;
shoot.shotDelay = 3f;
inaccuracy = 2f;
velocityRnd = 0.1f;
heatColor = Color.red; heatColor = Color.red;
for(int i = 0; i < 5; i++){ for(int i = 0; i < 5; i++){
@ -3417,24 +3413,24 @@ public class UnitTypes{
}}); }});
} }
bullet = new BasicBulletType(9f, 85){{ bullet = new ArtilleryBulletType(5.5f, 290){{
pierceCap = 2; pierceCap = 2;
pierceBuilding = true; pierceBuilding = true;
lifetime = 30f; lifetime = 75f;
shootEffect = Fx.shootBigColor; shootEffect = Fx.shootBigColor;
smokeEffect = Fx.shootSmokeSquareBig; smokeEffect = Fx.shootSmokeSquareBig;
frontColor = Color.white; frontColor = Color.white;
hitSound = Sounds.none; hitSound = Sounds.none;
width = 12f; width = 18f;
height = 20f; height = 24f;
lightColor = trailColor = hitColor = backColor = Pal.techBlue; lightColor = trailColor = hitColor = backColor = Pal.techBlue;
lightRadius = 40f; lightRadius = 40f;
lightOpacity = 0.7f; lightOpacity = 0.7f;
trailWidth = 2.2f; trailWidth = 4.5f;
trailLength = 8; trailLength = 19;
trailChance = -1f; trailChance = -1f;
despawnEffect = Fx.none; despawnEffect = Fx.none;
@ -3451,6 +3447,53 @@ public class UnitTypes{
sparkLen = 6f; sparkLen = 6f;
sparkStroke = 2f; sparkStroke = 2f;
}}; }};
fragBullets = 15;
fragVelocityMin = 0.5f;
fragRandomSpread = 130f;
fragLifeMin = 0.3f;
despawnShake = 5f;
fragBullet = new BasicBulletType(5.5f, 85){{
pierceCap = 2;
pierceBuilding = true;
homingPower = 0.09f;
homingRange = 150f;
lifetime = 50f;
shootEffect = Fx.shootBigColor;
smokeEffect = Fx.shootSmokeSquareBig;
frontColor = Color.white;
hitSound = Sounds.none;
width = 12f;
height = 20f;
lightColor = trailColor = hitColor = backColor = Pal.techBlue;
lightRadius = 40f;
lightOpacity = 0.7f;
trailWidth = 2.2f;
trailLength = 8;
trailChance = -1f;
despawnEffect = Fx.none;
splashDamage = 50f;
splashDamageRadius = 30f;
hitEffect = despawnEffect = new MultiEffect(new ExplosionEffect(){{
lifetime = 30f;
waveStroke = 2f;
waveColor = sparkColor = trailColor;
waveRad = 5f;
smokeSize = 0f;
smokeSizeBase = 0f;
sparks = 5;
sparkRad = 20f;
sparkLen = 6f;
sparkStroke = 2f;
}}, Fx.blastExplosion);
}};
}}; }};
}}); }});
}}; }};