Skip to content

Commit

Permalink
Zecrus balance adjustments v16 (#4125)
Browse files Browse the repository at this point in the history
• [Angler] The T2 Cortex torpedo bomber now drops 1 large torpedo instead of 3 small ones.  The large torpedo is slightly slower but has some aoe  
• [Serpent] The Arm T2 battlesub now fires 2 medium torpedos at once instead of 1 large one, overall dps unchanged but some aoe is added
• [Kraken] The Cor T2 battlesub's torpedo aoe increased
  • Loading branch information
Zecrus2 authored Jan 6, 2025
1 parent a68ec15 commit 41132c1
Show file tree
Hide file tree
Showing 10 changed files with 96 additions and 36 deletions.
5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# January 2025
• [Angler] The T2 Cortex torpedo bomber now drops 1 large torpedo instead of 3 small ones. The large torpedo is slightly slower but has some aoe
• [Serpent] The Arm T2 battlesub now fires 2 medium torpedos at once instead of 1 large one, overall dps unchanged but some aoe is added
• [Kraken] The Cor T2 battlesub's torpedo aoe increased

# December 2024
• [Impulse] Nukes + Plasma Cannons + Shiva + Catapult + Vanguard + Tzar + Fatboy + Banisher + Poison Arrow + Gunslinger + Ballistic Missile Launchers got impulse added to their weapon. High-HP units with low mass got a mass increase.
• [Tremor] Impulse 140% -> 80%, EdgeEffectiveness 90% -> 15%
Expand Down
36 changes: 30 additions & 6 deletions scripts/Units/armserp.bos
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@

piece lturret, rturret, base, lprop, rprop, bprop;

static-var gun_1, turnClock, turnCounter, wheelSpeed, currentSpeed, moveSpeed, pivotAngle;
static-var turnClock, turnCounter, wheelSpeed, currentSpeed, moveSpeed, pivotAngle;

// Signal definitions
#define SIG_MOVE 2

#define SIG_AIM 4
#define SIG_AIM_2 8


#define BASEPIECE base
Expand Down Expand Up @@ -59,7 +60,6 @@ Propcontrol()

Create()
{
gun_1 = lturret;
moveSpeed = get MAX_SPEED;
start-script Propcontrol();
start-script TurnControl();
Expand Down Expand Up @@ -87,12 +87,22 @@ StopMoving()

FirePrimary()
{
gun_1 = !gun_1;
sleep 200;
}

FireSecondary()
{
sleep 200;
}

QueryPrimary(piecenum)
{
piecenum = gun_1;
piecenum = lturret;
}

QuerySecondary(piecenum)
{
piecenum = rturret;
}

SweetSpot(piecenum)
Expand Down Expand Up @@ -128,9 +138,17 @@ AimPrimary(heading, pitch)
{
signal SIG_AIM;
set-signal-mask SIG_AIM;
move rturret to x-axis [9] speed [30];
move lturret to x-axis [-9] speed [30];

wait-for-move lturret along x-axis;
start-script RestoreAfterDelay();
return (1);
}

AimSecondary(heading, pitch)
{
signal SIG_AIM_2;
set-signal-mask SIG_AIM_2;
move rturret to x-axis [9] speed [30];
wait-for-move rturret along x-axis;
start-script RestoreAfterDelay();
return (1);
Expand All @@ -140,6 +158,12 @@ AimFromPrimary(piecenum)
{
piecenum = lturret;
}

AimFromSecondary(piecenum)
{
piecenum = rturret;
}

Killed(severity, corpsetype)
{
if( severity <= 25 )
Expand Down
Binary file modified scripts/Units/armserp.cob
Binary file not shown.
36 changes: 29 additions & 7 deletions scripts/Units/armserp_clean.bos
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@

piece lturret, rturret, base, lprop, rprop, bprop;

static-var gun_1, turnClock, turnCounter, wheelSpeed, currentSpeed, moveSpeed, pivotAngle;
static-var turnClock, turnCounter, wheelSpeed, currentSpeed, moveSpeed, pivotAngle;

// Signal definitions
#define SIGNAL_MOVE 1

#define SIGNAL_AIM1 256
#define SIGNAL_AIM2 512


#define BASEPIECE base
Expand Down Expand Up @@ -44,7 +45,6 @@ Propcontrol()

Create()
{
gun_1 = lturret;
call-script TB_Init();
}

Expand All @@ -68,15 +68,23 @@ StopMoving()

FireWeapon1()
{
gun_1 = !gun_1;
sleep 200;
}

QueryWeapon1(pieceIndex)
FireWeapon2()
{
pieceIndex = gun_1;
sleep 200;
}

QueryWeapon1(pieceIndex)
{
pieceIndex = lturret;
}

QueryWeapon2(pieceIndex)
{
pieceIndex = rturret;
}

static-var Stunned;
ExecuteRestoreAfterDelay()
Expand Down Expand Up @@ -106,9 +114,17 @@ AimWeapon1(heading, pitch)
{
signal SIGNAL_AIM1;
set-signal-mask SIGNAL_AIM1;
move rturret to x-axis [9] speed [30];
move lturret to x-axis [-9] speed [30];

wait-for-move lturret along x-axis;
start-script RestoreAfterDelay();
return (1);
}

AimWeapon2(heading, pitch)
{
signal SIGNAL_AIM2;
set-signal-mask SIGNAL_AIM2;
move rturret to x-axis [9] speed [30];
wait-for-move rturret along x-axis;
start-script RestoreAfterDelay();
return (1);
Expand All @@ -118,6 +134,12 @@ AimFromWeapon1(pieceIndex)
{
pieceIndex = lturret;
}

AimFromWeapon2(pieceIndex)
{
pieceIndex = lturret;
}

Killed(severity, corpsetype)
{
if( severity <= 25 )
Expand Down
Binary file modified scripts/Units/armserp_clean.cob
Binary file not shown.
4 changes: 2 additions & 2 deletions units/ArmAircraft/T2/armlance.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ return {
cruisealtitude = 90,
energycost = 8000,
explodeas = "mediumExplosionGeneric",
footprintx = 3,
footprintz = 3,
footprintx = 4,
footprintz = 4,
health = 1920,
idleautoheal = 5,
idletime = 1800,
Expand Down
1 change: 1 addition & 0 deletions units/ArmShips/T2/armlship.lua
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ return {
},
damage = {
default = 35,
subs = 10,
},
},
},
Expand Down
18 changes: 13 additions & 5 deletions units/ArmShips/T2/armserp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ return {
},
weapondefs = {
armserp_weapon = {
areaofeffect = 16,
areaofeffect = 120,
avoidfeature = false,
avoidfriendly = false,
burnblow = true,
Expand All @@ -121,7 +121,7 @@ return {
range = 800,
reloadtime = 8,
soundhit = "xplodep1",
soundhitvolume = 22,
soundhitvolume = 14,
soundstart = "torpedo1",
startvelocity = 150,
tolerance = 8000,
Expand All @@ -134,9 +134,9 @@ return {
weapontype = "TorpedoLauncher",
weaponvelocity = 220,
damage = {
commanders = 750,
default = 1650,
subs = 1110,
commanders = 375,
default = 825,
subs = 555,
},
},
},
Expand All @@ -148,6 +148,14 @@ return {
maxangledif = 80,
onlytargetcategory = "NOTHOVER",
},
[2] = {
badtargetcategory = "HOVER NOTSHIP",
def = "ARMSERP_WEAPON",
maindir = "0 0.2 1",
maxangledif = 80,
onlytargetcategory = "NOTHOVER",
slaveto = 1,
},
},
},
}
30 changes: 15 additions & 15 deletions units/CorAircraft/T2/cortitan.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ return {
cruisealtitude = 90,
energycost = 8200,
explodeas = "mediumexplosiongeneric",
footprintx = 3,
footprintz = 3,
footprintx = 4,
footprintz = 4,
health = 1960,
idleautoheal = 5,
idletime = 1800,
Expand Down Expand Up @@ -81,14 +81,14 @@ return {
},
},
weapondefs = {
armair_torpedo = {
areaofeffect = 16,
heavy_torpedo = {
areaofeffect = 150,
avoidfeature = false,
avoidfriendly = false,
burnblow = true,
burst = 3,
burstrate = 0.3,
cegtag = "torpedotrail-small",
--burst = 3,
--burstrate = 0.3,
cegtag = "torpedotrail-large",
collidefriendly = false,
craterareaofeffect = 0,
craterboost = 0,
Expand All @@ -97,40 +97,40 @@ return {
explosiongenerator = "custom:genericshellexplosion-large-uw",
flighttime = 4,
impulsefactor = 0.123,
model = "cortorpedo.s3o",
model = "coradvtorpedo.s3o",
mygravity = 0.1,
name = "Light homing torpedo launcher",
name = "Heavy homing torpedo launcher",
noselfdamage = true,
range = 400,
reloadtime = 8,
soundhit = "xplodep2",
soundhit = "xplodep1",
soundhitvolume = 3.5,
soundhitwet = "splsmed",
soundhitwetvolume = 14,
soundstart = "bombrel",
startvelocity = 35,
tolerance = 2000,
tracks = true,
turnrate = 17000,
turnrate = 8000,
turret = false,
waterweapon = true,
weaponacceleration = 35,
weapontimer = 6,
weapontimer = 8,
weapontype = "TorpedoLauncher",
weaponvelocity = 200,
weaponvelocity = 160,
customparams = {
speceffect = "torpwaterpen",
when = "ypos<0",
},
damage = {
default = 500,
default = 1200,
},
},
},
weapons = {
[1] = {
badtargetcategory = "NOTSHIP",
def = "ARMAIR_TORPEDO",
def = "HEAVY_TORPEDO",
onlytargetcategory = "NOTHOVER",
},
},
Expand Down
2 changes: 1 addition & 1 deletion units/CorShips/T2/corssub.lua
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ return {
},
weapondefs = {
armserp_weapon = {
areaofeffect = 16,
areaofeffect = 160,
avoidfeature = false,
avoidfriendly = false,
burnblow = true,
Expand Down

0 comments on commit 41132c1

Please sign in to comment.