Skip to content

Commit

Permalink
Merge branch 'deploy/fafdevelop' into MaxGroundVariation2
Browse files Browse the repository at this point in the history
  • Loading branch information
lL1l1 authored Apr 17, 2024
2 parents 143b0dd + fb9aade commit 133f113
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 15 deletions.
11 changes: 11 additions & 0 deletions changelog/3809.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@
- BuildTime: 750 --> 1200
- BuildTime: 900 --> 1400 (Cybran)

- (#6082) The `BuildRate` and `BuildTime` stats of several Shield Generators are updated to be more streamlined. The Seraphim Tech 2 Shield Generator gains build power, as it previously had a very low amount. The Aeon Tech 2 Shield Generator loses its build power, as it cannot be upgraded.
- Tech 2 Shield Generators
- BuildRate: 13.66 --> 0 (Aeon)
- BuildRate: 12.98 --> 20 (Seraphim)
- BuildRate: 19.95 --> 20 (UEF)
- Tech 3 Shield Generators
- BuildTime: 5841 --> 5800 (Seraphim)
- BuildTime: 4988 --> 5000 (UEF)

## Features

- (#6079) Make various structures easier to place to help with base building.
Expand All @@ -84,6 +93,8 @@

- (#6042) Improve annotations for `OnMotionHorzEventChange` and `OnMotionVertEventChange`

- (#6086) Ensure that the Cooper's hitbox aligns with its model

## Contributors

With thanks to the following people who contributed through coding:
Expand Down
16 changes: 8 additions & 8 deletions lua/EffectUtilities.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,7 @@ function PlayTeleportChargingEffects(unit, teleDest, effectsBag, teleDelay)
for _, effect in telefx do
local fx = CreateEmitterAtEntity(teleportDestFxEntity, unitArmy, effect)
IEffectOffsetEmitter(fx, 0, offsetY, 0)
IEffectScaleEmitter(fx, 0.75)
IEffectScaleEmitter(fx, 0.9375)
IEffectSetEmitterCurveParam(fx, 'Y_POSITION_CURVE', 0, offsetY * 2) -- To make effects cover entire height of unit
IEffectSetEmitterCurveParam(fx, 'ROTATION_RATE_CURVE', 1, 0) -- Small initial rotation, will be faster as charging
TableInsert(unit.TeleportDestChargeBag, fx)
Expand All @@ -1048,7 +1048,7 @@ function PlayTeleportChargingEffects(unit, teleDest, effectsBag, teleDelay)

for _, effect in telefx do
local fx = CreateEmitterAtEntity(sphere, unitArmy, effect)
IEffectScaleEmitter(fx, 0.01 * unit.TeleportCybranSphereScale)
IEffectScaleEmitter(fx, 0.0125 * unit.TeleportCybranSphereScale)
TableInsert(unit.TeleportDestChargeBag, fx)
TrashBagAdd(effectsBag, fx)
end
Expand All @@ -1057,7 +1057,7 @@ function PlayTeleportChargingEffects(unit, teleDest, effectsBag, teleDelay)
for _, effect in telefx do
local fx = CreateEmitterAtEntity(teleportDestFxEntity, unitArmy, effect)
IEffectOffsetEmitter(fx, 0, offsetY, 0)
IEffectScaleEmitter(fx, 0.01)
IEffectScaleEmitter(fx, 0.0125)
TableInsert(unit.TeleportDestChargeBag, fx)
TrashBagAdd(effectsBag, fx)
end
Expand All @@ -1068,7 +1068,7 @@ function PlayTeleportChargingEffects(unit, teleDest, effectsBag, teleDelay)
for _, effect in telefx do
local fx = CreateEmitterAtEntity(teleportDestFxEntity, unitArmy, effect)
IEffectOffsetEmitter(fx, 0, offsetY, 0)
IEffectScaleEmitter(fx, 0.01)
IEffectScaleEmitter(fx, 0.0125)
TableInsert(unit.TeleportDestChargeBag, fx)
TrashBagAdd(effectsBag, fx)
end
Expand Down Expand Up @@ -1152,7 +1152,7 @@ end
function TeleportCreateCybranSphere(unit, location, initialScale)
-- Creates the sphere used by Cybran teleportation effects
local sx, sy, sz = TeleportGetUnitSizes(unit)
local scale = 1.25 * MathMax(sx, sy, sz)
local scale = 1.5625 * MathMax(sx, sy, sz)
unit.TeleportCybranSphereScale = scale

local sphere = Entity()
Expand Down Expand Up @@ -1185,7 +1185,7 @@ function TeleportChargingProgress(unit, fraction)
if unit.TeleportDestChargeBag then
local height = -(25 + 100 * fraction)
local size = 30 * fraction
local scale = 0.75 + 0.5 * MathMax(fraction, 0.01)
local scale = 0.9375 + 0.625 * MathMax(fraction, 0.01)
for _, fx in unit.TeleportDestChargeBag do
IEffectSetEmitterCurveParam(fx, 'ROTATION_RATE_CURVE', height, size)
IEffectScaleEmitter(fx, scale)
Expand All @@ -1198,7 +1198,7 @@ function TeleportChargingProgress(unit, fraction)
end
elseif faction == 'Cybran' then
-- Increase size of sphere and effects as progressing
local scale = MathMax(fraction, 0.01) * (unit.TeleportCybranSphereScale or 5)
local scale = fraction * (unit.TeleportCybranSphereScale or 6.25)
if unit.TeleportCybranSphere then
unit.TeleportCybranSphere:SetDrawScale(scale)
end
Expand All @@ -1209,7 +1209,7 @@ function TeleportChargingProgress(unit, fraction)
end
elseif unit.TeleportDestChargeBag then
-- Increase size of effects as progressing
local scale = 2 * fraction - MathPow(fraction, 2)
local scale = 2.5 * fraction - MathPow(fraction, 2.5)
for _, fx in unit.TeleportDestChargeBag do
IEffectScaleEmitter(fx, scale)
end
Expand Down
1 change: 0 additions & 1 deletion units/UAB4202/UAB4202_unit.bp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ UnitBlueprint{
Economy = {
BuildCostEnergy = 5760,
BuildCostMass = 480,
BuildRate = 13.66,
BuildTime = 950,
MaintenanceConsumptionPerSecondEnergy = 150,
RebuildBonusIds = {
Expand Down
2 changes: 1 addition & 1 deletion units/UEB4202/UEB4202_unit.bp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ UnitBlueprint{
Economy = {
BuildCostEnergy = 6000,
BuildCostMass = 600,
BuildRate = 19.95,
BuildRate = 20,
BuildTime = 1150,
BuildableCategory = { "ueb4301" },
MaintenanceConsumptionPerSecondEnergy = 200,
Expand Down
2 changes: 1 addition & 1 deletion units/UEB4301/UEB4301_unit.bp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ UnitBlueprint{
Economy = {
BuildCostEnergy = 55000,
BuildCostMass = 3300,
BuildTime = 4988,
BuildTime = 5000,
MaintenanceConsumptionPerSecondEnergy = 400,
RebuildBonusIds = { "ueb4301" },
},
Expand Down
3 changes: 1 addition & 2 deletions units/XES0102/XES0102_unit.bp
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,8 @@ UnitBlueprint{
SelectionSizeZ = 1.3,
SelectionThickness = 0.31,
CollisionOffsetY = -0.25,
CollisionOffsetZ = 0.1,
SizeX = 0.6,
SizeY = 0.65,
SizeY = 0.8,
SizeZ = 2,
StrategicIconName = "icon_ship2_antinavy",
StrategicIconSortPriority = 165,
Expand Down
2 changes: 1 addition & 1 deletion units/XSB4202/XSB4202_unit.bp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ UnitBlueprint{
Economy = {
BuildCostEnergy = 7000,
BuildCostMass = 700,
BuildRate = 12.98,
BuildRate = 20,
BuildTime = 1250,
BuildableCategory = { "xsb4301" },
MaintenanceConsumptionPerSecondEnergy = 250,
Expand Down
2 changes: 1 addition & 1 deletion units/XSB4301/XSB4301_unit.bp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ UnitBlueprint{
Economy = {
BuildCostEnergy = 60000,
BuildCostMass = 3600,
BuildTime = 5841,
BuildTime = 5800,
MaintenanceConsumptionPerSecondEnergy = 500,
RebuildBonusIds = { "xsb4301" },
},
Expand Down

0 comments on commit 133f113

Please sign in to comment.