From 25d1ec34b48a70e06bf99560e8b4d89e8b2ed51a Mon Sep 17 00:00:00 2001 From: CookieNoob Date: Wed, 18 Jul 2018 23:25:25 +0200 Subject: [PATCH 01/42] update mod info file to V73 --- mod_info.lua | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/mod_info.lua b/mod_info.lua index d0df4aed..0653a9d2 100644 --- a/mod_info.lua +++ b/mod_info.lua @@ -1,9 +1,9 @@ name = "Nomads" -version = 70 +version = 73 copyright = "brute51" description = "Adds a new faction to the game" author = "CookieNoob, Exotic_Retard, Brute51, original nomads team" -uid = "50423624-1e83-4fc2-85b3-nomadsv00070" +uid = "50423624-1e83-4fc2-85b3-nomadsv00073" url = "" icon = "" identifier = "" @@ -17,3 +17,20 @@ conflicts = { } before = { } after = { } _faf_modname='Nomads' +mountpoints = { + ['effects'] = '/effects', + ['env'] = '/env', + ['loc'] = '/loc', + ['lua'] = '/lua', + ['meshes'] = '/meshes', + ['movies'] = '/movies', + ['nomadhook'] = '/nomadhook', + ['projectiles'] = '/projectiles', + ['sounds'] = '/sounds', + ['textures'] = '/textures', + ['units'] = '/units', +} +hooks = { + '/nomadhook', + '/sounds', +} \ No newline at end of file From 0dbad262889eb81a040f25173eed3353a1489d8d Mon Sep 17 00:00:00 2001 From: CookieNoob Date: Fri, 26 Oct 2018 22:46:50 +0200 Subject: [PATCH 02/42] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index aac72334..cf9a2fa0 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,8 @@ We can use all the help we can get : - mission making - ... +The work on this project happens with the consent of the original creators under the condition that all changes that are implemented are only for the purpose of fixing bugs or adjusting to the current balance of FAF. Changes that are only a matter of taste are explicitly not wanted. + How do I start contributing? ---------------------------- If you want to contribute, then you'll need to know how **git** works. From 18390fe20467388aa352f370eaa448211e90a50e Mon Sep 17 00:00:00 2001 From: Apofenas <35565415+Apofenas@users.noreply.github.com> Date: Sat, 27 Oct 2018 16:34:40 +0900 Subject: [PATCH 03/42] Cruiser missile change --- projectiles/NFusionMissile1/NFusionMissile1_proj.bp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/projectiles/NFusionMissile1/NFusionMissile1_proj.bp b/projectiles/NFusionMissile1/NFusionMissile1_proj.bp index 37cef1f4..b76e3471 100644 --- a/projectiles/NFusionMissile1/NFusionMissile1_proj.bp +++ b/projectiles/NFusionMissile1/NFusionMissile1_proj.bp @@ -24,8 +24,8 @@ ProjectileBlueprint { 'NOSPLASHDAMAGE', }, Defense = { - Health = 1, - MaxHealth = 1, + Health = 2, + MaxHealth = 2, }, Display = { CameraFollowTimeout = 5, @@ -46,6 +46,11 @@ ProjectileBlueprint { StrategicIconSize = 2, UniformScale = 1, }, + Economy = { + BuildCostEnergy = 3600, + BuildCostMass = 180, + BuildTime = 2400, + }, General = { Category = 'Artillery', EntityCategory = { @@ -71,7 +76,7 @@ ProjectileBlueprint { MaxZigZag = 0, TrackTarget = true, TrackTargetGround = true, - TurnRate = 200, + TurnRate = 100, UseGravity = false, VelocityAlign = true, ZigZagFrequency = 0, From d5858fe5e50f3c40d71c70cab4e325b44abf8339 Mon Sep 17 00:00:00 2001 From: Apofenas <35565415+Apofenas@users.noreply.github.com> Date: Sat, 27 Oct 2018 16:35:56 +0900 Subject: [PATCH 04/42] Cruiser Missile change --- projectiles/NFusionMissile1/NFusionMissile1_script.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/projectiles/NFusionMissile1/NFusionMissile1_script.lua b/projectiles/NFusionMissile1/NFusionMissile1_script.lua index 9a0cc887..643e675a 100644 --- a/projectiles/NFusionMissile1/NFusionMissile1_script.lua +++ b/projectiles/NFusionMissile1/NFusionMissile1_script.lua @@ -10,9 +10,10 @@ NFusionMissile1 = Class(FusionMissile) { end, StageThread = function(self) - WaitSeconds(2.2) - self:SetTurnRate(self:GetBlueprint().Physics.TurnRate) + WaitSeconds(1) + local bp = self:GetBlueprint().Physics + self:SetTurnRate(bp.TurnRate) end, } -TypeClass = NFusionMissile1 \ No newline at end of file +TypeClass = NFusionMissile1 From 900905bf62f6da0645792bbecf74a6db81e4e4bb Mon Sep 17 00:00:00 2001 From: Apofenas <35565415+Apofenas@users.noreply.github.com> Date: Sat, 27 Oct 2018 16:37:50 +0900 Subject: [PATCH 05/42] MML change --- .../NTacticalMissile1_HighArc_Script.lua | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/projectiles/NTacticalMissile1_HighArc/NTacticalMissile1_HighArc_Script.lua b/projectiles/NTacticalMissile1_HighArc/NTacticalMissile1_HighArc_Script.lua index 2648d8ba..cda1cf09 100644 --- a/projectiles/NTacticalMissile1_HighArc/NTacticalMissile1_HighArc_Script.lua +++ b/projectiles/NTacticalMissile1_HighArc/NTacticalMissile1_HighArc_Script.lua @@ -1,5 +1,26 @@ local ArcingTacticalMissile = import('/lua/nomadsprojectiles.lua').ArcingTacticalMissile -NTacticalMissile1_HighArc = Class(ArcingTacticalMissile) {} +NTacticalMissile1_HighArc = Class(ArcingTacticalMissile) { + OnCreate = function(self, inWater) + ArcingTacticalMissile.OnCreate(self, inWater) + + self:SetTurnRate(0) + self:ChangeMaxZigZag(0) + self:ChangeZigZagFrequency(0) + self:ForkThread(self.StageThread) + end, + + StageThread = function(self) + WaitSeconds(1.1) + local bp = self:GetBlueprint().Physics + self:SetTurnRate(bp.TurnRate) + self:ChangeMaxZigZag(bp.MaxZigZag) + self:ChangeZigZagFrequency(bp.ZigZagFrequency) + WaitSeconds(1.3) + self:ChangeMaxZigZag(0) + self:ChangeZigZagFrequency(0) + end, + +} TypeClass = NTacticalMissile1_HighArc From 07a73b4a23a9fc46fdcc65b9d0bdd1ca94779214 Mon Sep 17 00:00:00 2001 From: Apofenas <35565415+Apofenas@users.noreply.github.com> Date: Sat, 27 Oct 2018 16:38:35 +0900 Subject: [PATCH 06/42] MML change --- .../NTacticalMissile1_HighArc_proj.bp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/projectiles/NTacticalMissile1_HighArc/NTacticalMissile1_HighArc_proj.bp b/projectiles/NTacticalMissile1_HighArc/NTacticalMissile1_HighArc_proj.bp index 3544671f..5ae29436 100644 --- a/projectiles/NTacticalMissile1_HighArc/NTacticalMissile1_HighArc_proj.bp +++ b/projectiles/NTacticalMissile1_HighArc/NTacticalMissile1_HighArc_proj.bp @@ -44,13 +44,13 @@ ProjectileBlueprint { UniformScale = 0.11, }, General = { - Category = 'Direct Fire', + Category = 'Missile', EntityCategory = { 'NOMADS', 'PROJECTILE', + 'INDIRECTFIRE', 'TACTICAL', 'MISSILE', - 'ARTILLERY', }, Faction = 'Nomads', Weapon = 'NTacticalMissile1_HighArc', @@ -64,10 +64,12 @@ ProjectileBlueprint { DestroyOnWaterAfterExitingWater = true, InitialSpeed = 35, MaxSpeed = 50, - MaxZigZag = 0, - TrackTarget = false, - TurnRate = 360, + MaxZigZag = 25, + TurnRate = 100, + TrackTarget = true, + TrackTargetGround = true, + UseGravity = false, VelocityAlign = true, - ZigZagFrequency = 0, + ZigZagFrequency = 5, }, } From d0d3c863299c8318a61087e184ff8a140554f866 Mon Sep 17 00:00:00 2001 From: Apofenas <35565415+Apofenas@users.noreply.github.com> Date: Sat, 27 Oct 2018 16:40:02 +0900 Subject: [PATCH 07/42] Update INA1003_Script.lua --- units/INA1003/INA1003_Script.lua | 3 --- 1 file changed, 3 deletions(-) diff --git a/units/INA1003/INA1003_Script.lua b/units/INA1003/INA1003_Script.lua index ebd6c708..708c244c 100644 --- a/units/INA1003/INA1003_Script.lua +++ b/units/INA1003/INA1003_Script.lua @@ -6,9 +6,6 @@ local RocketWeapon1Bomber = import('/lua/nomadsweapons.lua').RocketWeapon1Bomber INA1003 = Class(NAirUnit) { Weapons = { Rocket1 = Class(RocketWeapon1Bomber) {}, - Rocket2 = Class(RocketWeapon1Bomber) {}, - Rocket3 = Class(RocketWeapon1Bomber) {}, - Rocket4 = Class(RocketWeapon1Bomber) {}, }, } From d2ebb14b53e0422b3b55c56454911e30b5934aeb Mon Sep 17 00:00:00 2001 From: Apofenas <35565415+Apofenas@users.noreply.github.com> Date: Sat, 27 Oct 2018 16:40:32 +0900 Subject: [PATCH 08/42] Update INA1003_unit.bp --- units/INA1003/INA1003_unit.bp | 246 +++------------------------------- 1 file changed, 15 insertions(+), 231 deletions(-) diff --git a/units/INA1003/INA1003_unit.bp b/units/INA1003/INA1003_unit.bp index 0d03d32f..cf65a97f 100644 --- a/units/INA1003/INA1003_unit.bp +++ b/units/INA1003/INA1003_unit.bp @@ -287,27 +287,27 @@ UnitBlueprint { AutoInitiateAttackCommand = true, BallisticArc = 'RULEUBA_LowArc', CollideFriendly = false, - Damage = 70, + Damage = 30, DamageFriendly = true, - DamageRadius = 2.6, + DamageRadius = 2, DamageType = 'Normal', DisplayName = 'Rocket', FireTargetLayerCapsTable = { Air = 'Land|Water|Seabed', Land = 'Land|Water|Seabed', }, - FiringRandomness = 1, + FiringRandomness = 2, FiringTolerance = 3, Label = 'Rocket1', LeadTarget = true, MaxRadius = 28, MinRadius = 8, - MuzzleSalvoDelay = 0, - MuzzleSalvoSize = 1, - MuzzleVelocity = 15, - ProjectileId = '/projectiles/NRocketProj2/NRocketProj2_proj.bp', + MuzzleSalvoDelay = 0.05, + MuzzleSalvoSize = 5, + MuzzleVelocity = 10, + ProjectileId = '/projectiles/NRocketProj3/NRocketProj3_proj.bp', ProjectileLifetimeUsesMultiplier = 1.25, - ProjectilesPerOnFire = 4, + ProjectilesPerOnFire = 2, RackBones = { { MuzzleBones = { @@ -315,77 +315,9 @@ UnitBlueprint { }, RackBone = 'muzzle.001', }, - }, - RackFireTogether = true, - RackRecoilDistance = 0, - RackReloadTimeout = 0, - RackSalvoChargeTime = 0, - RackSalvoReloadTime = 0, - RackSalvoSize = 1, - RackSlavedToTurret = false, - RangeCategory = 'UWRC_DirectFire', - RateOfFire = 0.2, - TargetCheckInterval = 1, - TargetPriorities = { - 'SPECIALHIGHPRI', - 'LAND MOBILE TECH1', - 'LAND MOBILE', - 'SPECIALLOWPRI', - 'ALLUNITS', - }, - TargetRestrictDisallow = 'UNTARGETABLE', - TrackingRadius = 1.15, - TurretBoneMuzzle = 'muzzle.001', - TurretBonePitch = 'muzzle.001', - TurretBoneYaw = 'muzzle.001', - TurretDualManipulators = false, - TurretPitch = -45, - TurretPitchRange = 45, - TurretPitchSpeed = 360, - TurretYaw = 0, - TurretYawRange = 20, - TurretYawSpeed = 360, - Turreted = true, - WeaponCategory = 'Direct Fire', - }, - { - AboveWaterTargetsOnly = true, - Audio = { - Fire = Sound { - Bank = 'NomadsWeapons', - Cue = 'Rocket1_Muzzle', - LodCutoff = 'Weapon_LodCutoff', - }, - }, - AutoInitiateAttackCommand = true, - BallisticArc = 'RULEUBA_LowArc', - CollideFriendly = false, - Damage = 70, - DamageFriendly = true, - DamageRadius = 2.6, - DamageType = 'Normal', - DisplayName = 'Rocket', - FireTargetLayerCapsTable = { - Air = 'Land|Seabed|Water', - Land = 'Land|Seabed|Water', - }, - FiringRandomness = 1, - FiringTolerance = 3, - Label = 'Rocket2', - LeadTarget = true, - MaxRadius = 28, - MinRadius = 8, - MuzzleSalvoDelay = 0, - MuzzleSalvoSize = 1, - MuzzleVelocity = 15, - PrefersPrimaryWeaponTarget = true, - ProjectileId = '/projectiles/NRocketProj2/NRocketProj2_proj.bp', - ProjectileLifetimeUsesMultiplier = 1.25, - ProjectilesPerOnFire = 4, - RackBones = { - { + { MuzzleBones = { - 'muzzle.002', + 'muzzle.001', }, RackBone = 'muzzle.002', }, @@ -395,10 +327,10 @@ UnitBlueprint { RackReloadTimeout = 0, RackSalvoChargeTime = 0, RackSalvoReloadTime = 0, - RackSalvoSize = 1, + RackSalvoSize = 5, RackSlavedToTurret = false, RangeCategory = 'UWRC_DirectFire', - RateOfFire = 0.2, + RateOfFire = 0.25, TargetCheckInterval = 1, TargetPriorities = { 'SPECIALHIGHPRI', @@ -409,157 +341,9 @@ UnitBlueprint { }, TargetRestrictDisallow = 'UNTARGETABLE', TrackingRadius = 1.15, - TurretBoneMuzzle = 'muzzle.002', - TurretBonePitch = 'muzzle.002', - TurretBoneYaw = 'muzzle.002', - TurretDualManipulators = false, - TurretPitch = -45, - TurretPitchRange = 45, - TurretPitchSpeed = 360, - TurretYaw = 0, - TurretYawRange = 20, - TurretYawSpeed = 360, - Turreted = true, - WeaponCategory = 'Direct Fire', - }, - { - AboveWaterTargetsOnly = true, - Audio = { - Fire = Sound { - Bank = 'NomadsWeapons', - Cue = 'Rocket1_Muzzle', - LodCutoff = 'Weapon_LodCutoff', - }, - }, - AutoInitiateAttackCommand = true, - BallisticArc = 'RULEUBA_LowArc', - CollideFriendly = false, - Damage = 70, - DamageFriendly = true, - DamageRadius = 2.6, - DamageType = 'Normal', - DisplayName = 'Rocket', - FireTargetLayerCapsTable = { - Air = 'Land|Seabed|Water', - Land = 'Land|Seabed|Water', - }, - FiringRandomness = 1, - FiringTolerance = 3, - Label = 'Rocket3', - LeadTarget = true, - MaxRadius = 28, - MinRadius = 10, - MuzzleSalvoDelay = 0, - MuzzleSalvoSize = 1, - MuzzleVelocity = 15, - PrefersPrimaryWeaponTarget = true, - ProjectileId = '/projectiles/NRocketProj2/NRocketProj2_proj.bp', - ProjectileLifetimeUsesMultiplier = 1.25, - ProjectilesPerOnFire = 4, - RackBones = { - { - MuzzleBones = { - 'muzzle.003', - }, - RackBone = 'muzzle.003', - }, - }, - RackFireTogether = true, - RackRecoilDistance = 0, - RackReloadTimeout = 0, - RackSalvoChargeTime = 0, - RackSalvoReloadTime = 0, - RackSalvoSize = 1, - RackSlavedToTurret = false, - RangeCategory = 'UWRC_DirectFire', - RateOfFire = 0.2, - TargetCheckInterval = 1, - TargetPriorities = { - 'SPECIALHIGHPRI', - 'LAND MOBILE TECH1', - 'LAND MOBILE', - 'SPECIALLOWPRI', - 'ALLUNITS', - }, - TargetRestrictDisallow = 'UNTARGETABLE', - TrackingRadius = 1.15, - TurretBoneMuzzle = 'muzzle.003', - TurretBonePitch = 'muzzle.003', - TurretBoneYaw = 'muzzle.003', - TurretDualManipulators = false, - TurretPitch = -45, - TurretPitchRange = 45, - TurretPitchSpeed = 360, - TurretYaw = 0, - TurretYawRange = 20, - TurretYawSpeed = 360, - Turreted = true, - WeaponCategory = 'Direct Fire', - }, - { - AboveWaterTargetsOnly = true, - Audio = { - Fire = Sound { - Bank = 'NomadsWeapons', - Cue = 'Rocket1_Muzzle', - LodCutoff = 'Weapon_LodCutoff', - }, - }, - AutoInitiateAttackCommand = true, - BallisticArc = 'RULEUBA_LowArc', - CollideFriendly = false, - Damage = 70, - DamageFriendly = true, - DamageRadius = 2.6, - DamageType = 'Normal', - DisplayName = 'Rocket', - FireTargetLayerCapsTable = { - Air = 'Land|Seabed|Water', - Land = 'Land|Seabed|Water', - }, - FiringRandomness = 1, - FiringTolerance = 3, - Label = 'Rocket4', - LeadTarget = true, - MaxRadius = 28, - MinRadius = 10, - MuzzleSalvoDelay = 0, - MuzzleSalvoSize = 1, - MuzzleVelocity = 15, - PrefersPrimaryWeaponTarget = true, - ProjectileId = '/projectiles/NRocketProj2/NRocketProj2_proj.bp', - ProjectileLifetimeUsesMultiplier = 1.25, - ProjectilesPerOnFire = 4, - RackBones = { - { - MuzzleBones = { - 'muzzle.004', - }, - RackBone = 'muzzle.004', - }, - }, - RackFireTogether = true, - RackRecoilDistance = 0, - RackReloadTimeout = 0, - RackSalvoChargeTime = 0, - RackSalvoReloadTime = 0, - RackSalvoSize = 1, - RackSlavedToTurret = false, - RangeCategory = 'UWRC_DirectFire', - RateOfFire = 0.2, - TargetCheckInterval = 1, - TargetPriorities = { - 'SPECIALHIGHPRI', - 'LAND MOBILE TECH1', - 'LAND MOBILE', - 'SPECIALLOWPRI', - 'ALLUNITS', - }, - TargetRestrictDisallow = 'UNTARGETABLE', - TrackingRadius = 1.15, - TurretBoneMuzzle = 'muzzle.004', - TurretBonePitch = 'muzzle.004', - TurretBoneYaw = 'muzzle.004', + TurretBoneMuzzle = 'muzzle.001', + TurretBonePitch = 'muzzle.001', + TurretBoneYaw = 'muzzle.001', TurretDualManipulators = false, TurretPitch = -45, TurretPitchRange = 45, From d80e76a5149f9937ef604b637092997bae4c2dad Mon Sep 17 00:00:00 2001 From: Apofenas <35565415+Apofenas@users.noreply.github.com> Date: Sat, 27 Oct 2018 16:42:30 +0900 Subject: [PATCH 09/42] T2 fighter change --- units/INA2002/INA2002_unit.bp | 105 ++++++---------------------------- 1 file changed, 16 insertions(+), 89 deletions(-) diff --git a/units/INA2002/INA2002_unit.bp b/units/INA2002/INA2002_unit.bp index 5f1dc389..b932fba0 100644 --- a/units/INA2002/INA2002_unit.bp +++ b/units/INA2002/INA2002_unit.bp @@ -158,12 +158,20 @@ UnitBlueprint { IconFadeInZoom = 130, LODs = { { - LODCutoff = 60, + AlbedoName = '/units/INA2002/INA2002_Albedo.dds', + LODCutoff = 600, + MeshName = '/units/INA2002/INA2002_LOD0.scm', + NormalsName = '/units/INA2002/INA2002_normalsTS.dds', + Scrolling = true, ShaderName = 'NomadsUnit', + SpecularName = '/units/INA2002/INA2002_SpecTeam.dds', }, { + AlbedoName = '/units/INA2002/INA2002_lod1_Albedo.dds', LODCutoff = 215, + MeshName = '/units/INA2002/INA2002_LOD1.scm', ShaderName = 'NomadsUnit', + SpecularName = '/units/INA2002/INA2002__lod1_SpecTeam.dds', }, }, }, @@ -200,8 +208,8 @@ UnitBlueprint { UniformScale = 0.1, }, Economy = { - BuildCostEnergy = 8400, - BuildCostMass = 420, + BuildCostEnergy = 7200, + BuildCostMass = 310, BuildTime = 2400, }, Footprint = { @@ -295,7 +303,7 @@ UnitBlueprint { BallisticArc = 'RULEUBA_None', CannotAttackGround = true, CollideFriendly = false, - Damage = 100, + Damage = 150, DamageFriendly = false, DamageRadius = 0, DamageType = 'Normal', @@ -346,7 +354,7 @@ UnitBlueprint { RackSalvoSize = 1, RackSlavedToTurret = false, RangeCategory = 'UWRC_AntiAir', - RateOfFire = 0.70, + RateOfFire = 0.5, SlavedToBody = true, SlavedToBodyArcRange = 50, TargetCheckInterval = 1, @@ -381,9 +389,9 @@ UnitBlueprint { BallisticArc = 'RULEUBA_None', BombDropThreshold = 4, CollideFriendly = false, - Damage = 150, + Damage = 100, DamageFriendly = true, - DamageRadius = 2.5, + DamageRadius = 3, DamageType = 'Normal', DisplayName = 'Fragment Bomb', FireTargetLayerCapsTable = { @@ -394,7 +402,7 @@ UnitBlueprint { FiringTolerance = 6, Label = 'Bomb', MaxRadius = 55, - MuzzleSalvoDelay = 0.27, + MuzzleSalvoDelay = 0.2, MuzzleSalvoSize = 6, MuzzleVelocity = 0, NeedToComputeBombDrop = true, @@ -432,87 +440,6 @@ UnitBlueprint { Turreted = false, WeaponCategory = 'Bomb', }, - { - AboveWaterTargetsOnly = true, - Audio = { - Fire = Sound { - Bank = 'UESWeapon', - Cue = 'UES0202_Missile_Flayer', - LodCutoff = 'Weapon_LodCutoff', - }, - }, - AutoInitiateAttackCommand = true, - BallisticArc = 'RULEUBA_LowArc', - CollideFriendly = false, - Damage = 83.5, - DamageRadius = 1.5, - DamageType = 'Normal', - DisplayName = 'Missile (AG)', - FireTargetLayerCapsTable = { - Air = 'Land|Seabed|Water', - Land = 'Land|Seabed|Water', - Water = 'Land|Seabed|Water', - }, - FiringRandomness = 0.6, - FiringTolerance = 1.5, - Label = 'AGRockets', - LeadTarget = true, - MaxRadius = 40, - MinRadius = 8, - MuzzleSalvoDelay = 0, - MuzzleSalvoSize = 6, - MuzzleVelocity = 15, - NotExclusive = true, - ProjectileId = '/projectiles/NRocketProj3/NRocketProj3_proj.bp', - ProjectileLifetimeUsesMultiplier = 1.15, - ProjectilesPerOnFire = 6, - RackBones = { - { - MuzzleBones = { - 'muzzle.001', - 'muzzle.002', - 'muzzle.003', - 'muzzle.004', - 'muzzle.005', - 'muzzle.006', - }, - RackBone = 'barrel.001', - }, - }, - RackFireTogether = true, - RackRecoilDistance = 0, - RackReloadTimeout = 0, - RackSalvoChargeTime = 0, - RackSalvoReloadTime = 0, - RackSalvoSize = 1, - RackSlavedToTurret = true, - RangeCategory = 'UWRC_DirectFire', - RateOfFire = 0.1, -- not to high or the unit can fire twice in 1 run if given another target - SlavedToBody = true, - SlavedToBodyArcRange = 50, - StopOnPrimaryWeaponBusy = true, - TargetCheckInterval = 0.5, - TargetPriorities = { - 'SPECIALHIGHPRI', - 'STRUCTURE', - 'SPECIALLOWPRI', - 'ALLUNITS', - }, - TargetRestrictDisallow = 'UNTARGETABLE', - TrackingRadius = 1.15, - TurretBoneMuzzle = 'muzzle.001', - TurretBonePitch = 'barrel.001', - TurretBoneYaw = 'barrel.001', - TurretPitch = -45, - TurretPitchRange = 45, - TurretPitchSpeed = 360, - TurretYaw = 0, - TurretYawRange = 0, - TurretYawSpeed = 0, - Turreted = true, - UseFiringSolutionInsteadOfAimBone = true, - WeaponCategory = 'Direct Fire', - }, { AboveWaterTargetsOnly = true, Damage = 200, From 505f9bb513823b4734cdee5dcb4359b79d31ccdf Mon Sep 17 00:00:00 2001 From: Apofenas <35565415+Apofenas@users.noreply.github.com> Date: Sat, 27 Oct 2018 16:42:59 +0900 Subject: [PATCH 10/42] T2 fighter change --- units/INA2002/INA2002_Script.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/units/INA2002/INA2002_Script.lua b/units/INA2002/INA2002_Script.lua index f9591a09..3bdab131 100644 --- a/units/INA2002/INA2002_Script.lua +++ b/units/INA2002/INA2002_Script.lua @@ -31,7 +31,6 @@ INA2002 = Class(NAirUnit) { ConcussionBombWeapon.OnLostTarget(self) end, }, - AGRockets = Class(RocketWeapon1) {}, AARockets = Class(RocketWeapon1) {}, }, ChangeSpeedFor = function(self, reason) @@ -70,4 +69,4 @@ INA2002 = Class(NAirUnit) { } -TypeClass = INA2002 \ No newline at end of file +TypeClass = INA2002 From 1bd8089193d69d1fc9e6b87293b386900c75ab24 Mon Sep 17 00:00:00 2001 From: Apofenas <35565415+Apofenas@users.noreply.github.com> Date: Sat, 27 Oct 2018 16:44:58 +0900 Subject: [PATCH 11/42] T3 arty rebalance --- units/INB2302/INB2302_unit.bp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/units/INB2302/INB2302_unit.bp b/units/INB2302/INB2302_unit.bp index ba6c0d53..8ef4765d 100644 --- a/units/INB2302/INB2302_unit.bp +++ b/units/INB2302/INB2302_unit.bp @@ -70,7 +70,11 @@ UnitBlueprint { LODs = { { LODCutoff = 500, + AlbedoName = '/units/INB2302/INB2302_Albedo.dds', + MeshName = '/units/INB2302/INB2302_LOD0.scm', + NormalsName = '/units/INB2302/INB2302_NormalsTS.dds', ShaderName = 'NomadsUnit', + SpecularName = '/Units/INB2302/INB2302_SpecTeam.dds', }, }, }, @@ -93,8 +97,8 @@ UnitBlueprint { UniformScale = 0.48, }, Economy = { - BuildCostEnergy = 900000, - BuildCostMass = 75000, + BuildCostEnergy = 1000000, + BuildCostMass = 82000, BuildTime = 32700, RebuildBonusIds = { 'inb2302', From 3b32201708de82248cfbaa2826dbd8cf4c7a1f9d Mon Sep 17 00:00:00 2001 From: Apofenas <35565415+Apofenas@users.noreply.github.com> Date: Sat, 27 Oct 2018 16:46:46 +0900 Subject: [PATCH 12/42] T3 arty rebalance --- units/INO2302/INO2302_unit.bp | 265 +++++++++++++++------------------- 1 file changed, 116 insertions(+), 149 deletions(-) diff --git a/units/INO2302/INO2302_unit.bp b/units/INO2302/INO2302_unit.bp index 2a3121c8..5e037e73 100644 --- a/units/INO2302/INO2302_unit.bp +++ b/units/INO2302/INO2302_unit.bp @@ -1,18 +1,27 @@ +-- T3 Artillery Installation + UnitBlueprint { - Air = { - BankFactor = 0.25, - BankForward = true, - CanFly = true, - HoverOverAttack = false, - KLift = 1, - KLiftDamping = 10, - KMove = 1, - KMoveDamping = 10, - KTurn = 1, - KTurnDamping = 10, - LiftFactor = 100, - MaxAirspeed = 4, - StartTurnDistance = 250, + Audio = { + DeathExplosion = Sound { + Bank = 'NomadsDestroy', + Cue = 'Destroy_Lrg_PreDestroy', + LodCutoff = 'UnitMove_LodCutoff', + }, + Destroyed = Sound { + Bank = 'NomadsDestroy', + Cue = 'Destroy_Lrg_Structure', + LodCutoff = 'UnitMove_LodCutoff', + }, + DoneBeingBuilt = Sound { + Bank = 'UEB', + Cue = 'UEB2302_Activate', + LodCutoff = 'UnitMove_LodCutoff', + }, + UISelection = Sound { + Bank = 'NomadsInterface', + Cue = 'Nomads_Select_Gun', + LodCutoff = 'UnitMove_LodCutoff', + }, }, Buffs = { Regen = { @@ -23,129 +32,145 @@ UnitBlueprint { Level5 = 15, }, }, - BuildIconSortPriority = 90, + BuildIconSortPriority = 140, Categories = { + 'SELECTABLE', + 'BUILTBYTIER3ENGINEER', + 'BUILTBYTIER3COMMANDER', 'NOMADS', - 'UNTARGETABLE', - 'NOFORMATION', - 'SATELLITE', + 'STRUCTURE', + 'STRATEGIC', + 'TECH3', + 'INDIRECTFIRE', + 'ARTILLERY', + 'DRAGBUILD', + 'SIZE16', 'VISIBLETORECON', - 'SELECTABLE', - 'HIGHALTAIR', + 'RECLAIMABLE', + 'SHOWATTACKRETICLE', + 'OVERLAYINDIRECTFIRE', + 'SORTSTRATEGIC', }, + CollisionOffsetY = -0.25, Defense = { AirThreatLevel = 0, - ArmorType = 'Normal', - EconomyThreatLevel = 0, - Health = 1000, - MaxHealth = 1000, + ArmorType = 'Structure', + EconomyThreatLevel = 1190, + Health = 10000, + MaxHealth = 10000, RegenRate = 0, SubThreatLevel = 0, SurfaceThreatLevel = 0, }, - Description = 'Orbital Artillery Gun', + Description = 'Heavy Artillery Installation', Display = { - BuildMeshBlueprint = '/units/INO2302/INO2302_BuildMesh.bp', + AnimationPermOpen = '/units/INB2302/INB2302_APermOpen.sca', Mesh = { IconFadeInZoom = 130, LODs = { { - AlbedoName = '/units/INO2302/INO2302_Albedo.dds', LODCutoff = 500, - MeshName = '/units/INO2302/INO2302_Lod0.scm', - NormalsName = '/units/INO2302/INO2302_NormalsTS.dds', + AlbedoName = '/units/INB2302/INB2302_Albedo.dds', + MeshName = '/units/INB2302/INB2302_LOD0.scm', + NormalsName = '/units/INB2302/INB2302_NormalsTS.dds', ShaderName = 'NomadsUnit', - SpecularName = '/units/INO2302/INO2302_SpecTeam.dds', + SpecularName = '/Units/INB2302/INB2302_SpecTeam.dds', }, }, }, - MovementEffects = { - BeamExhaust = { - Bones = { - 'Thruster1', - 'Thruster2', - 'Thruster3', - 'Thruster4', - 'Thruster5', - 'Thruster6', + PlaceholderMeshName = 'UXB0004', + SpawnRandomRotation = true, + Tarmacs = { + { + Albedo = 'Tarmacs/Tar12x_nomads_01_albedo', + DeathLifetime = 300, + FadeOut = 150, + Length = 12.8, + Normal = 'Tarmacs/Tar12x_nomads_01_normals', + Orientations = { + 0, }, - Cruise = true, - Idle = true, + RemoveWhenDead = false, + Width = 12.8, }, }, - PlaceholderMeshName = 'UXL0004', - SpawnRandomRotation = true, - UniformScale = 0.15, + UniformScale = 0.48, }, Economy = { - BuildTime = 10000, + BuildCostEnergy = 1000000, + BuildCostMass = 82000, + BuildTime = 32700, + RebuildBonusIds = { + 'inb2302', + }, + }, + Footprint = { + SizeX = 5, + SizeZ = 5, }, General = { - CapCost = 0, Category = 'Strategic', Classification = 'RULEUC_Weapon', CommandCaps = { - RULEUCC_Attack = true, + RULEUCC_Attack = false, RULEUCC_CallTransport = false, RULEUCC_Capture = false, RULEUCC_Guard = false, - RULEUCC_Move = true, + RULEUCC_Move = false, RULEUCC_Nuke = false, RULEUCC_Patrol = false, RULEUCC_Reclaim = false, RULEUCC_Repair = false, - RULEUCC_RetaliateToggle = true, - RULEUCC_Stop = true, + RULEUCC_RetaliateToggle = false, + RULEUCC_Stop = false, RULEUCC_Transport = false, }, FactionName = 'Nomads', Icon = 'land', + SelectionPriority = 5, TechLevel = 'RULEUTL_Secret', - UnitName = 'Orbital Artillery Gun', + UnitName = 'Desolator', UnitWeight = 1, }, Intel = { - VisionRadius = 0, + VisionRadius = 28, }, Interface = { - HelpText = 'Orbital Artillery Gun', + HelpText = 'Heavy Artillery Installation', }, LifeBarHeight = 0.075, - LifeBarOffset = 0.4, - LifeBarRender = false, - LifeBarSize = 0, + LifeBarOffset = 2.35, + LifeBarSize = 5, Physics = { BankingSlope = 0, BuildOnLayerCaps = { LAYER_Air = false, - LAYER_Land = false, - LAYER_Orbit = true, + LAYER_Land = true, + LAYER_Orbit = false, LAYER_Seabed = false, LAYER_Sub = false, LAYER_Water = false, }, - Elevation = 80, - FuelRechargeRate = 150, - FuelUseTime = 0, - MaxAcceleration = 100, - MaxSpeed = 10, - MaxSteerForce = 10, - MeshExtentsX = 0.9, - MeshExtentsY = 0.55, - MeshExtentsZ = 1.05, + DragCoefficient = 0.2, + FlattenSkirt = true, + MaxSteerForce = 0, + MeshExtentsX = 6, + MeshExtentsY = 3.75, + MeshExtentsZ = 9, MinSpeedPercent = 0, - MotionType = 'RULEUMT_Air', - RotateOnSpot = true, - RotateOnSpotThreshold = 0.5, - TurnRadius = 100, - TurnRate = 20, + MotionType = 'RULEUMT_None', + SkirtOffsetX = -1.5, + SkirtOffsetZ = -1.5, + SkirtSizeX = 8, + SkirtSizeZ = 8, + TurnRate = 0, }, - SelectionSizeX = 0.45, - SelectionSizeZ = 0.65, - SelectionThickness = 0.66, - SizeX = 0.65, - SizeY = 0.4, - SizeZ = 0.9, + SelectionSizeX = 4, + SelectionSizeZ = 4, + SelectionThickness = 0.3, + SizeX = 5, + SizeY = 3, + SizeZ = 5, StrategicIconName = 'icon_structure3_artillery', StrategicIconSortPriority = 175, Veteran = { @@ -156,77 +181,19 @@ UnitBlueprint { Level5 = 150, }, Weapon = { - { - AboveWaterTargetsOnly = true, - AimsStraightOnDisable = true, - ArtilleryShieldBlocks = true, - BallisticArc = 'RULEUBA_LowArc', - CannotAttackGround = false, - CollideFriendly = false, - Damage = 1250, - DamageFriendly = true, - DamageRadius = 6, - DamageType = 'Normal', - DisplayName = 'Micro singularity artillery', - EnergyDrainPerSecond = 5000, - EnergyRequired = 10000, - FireTargetLayerCapsTable = { - Air = 'Land|Water|Seabed', - Land = 'Land|Water|Seabed', - Water = 'Land|Water|Seabed', - }, - FiringRandomness = 0.7, - FiringTolerance = 0, - Label = 'MainGun', - MaxRadius = 825, - MinRadius = 150, - MuzzleSalvoDelay = 0.5, - MuzzleSalvoSize = 5, - MuzzleVelocity = 70, - ProjectileId = '/projectiles/NArtilleryShell2/NArtilleryShell2_proj.bp', - ProjectileLifetimeUsesMultiplier = 1.75, - ProjectilesPerOnFire = 1, - RackBones = { - { - MuzzleBones = { - 'Gun_Muzzle', - }, - RackBone = 'Gun_Pitch', - }, - }, - RackFireTogether = false, - RackRecoilDistance = 0, - RackReloadTimeout = 0, - RackSalvoChargeTime = 0, - RackSalvoReloadTime = 0, - RackSalvoSize = 1, - RackSlavedToTurret = false, - RangeCategory = 'UWRC_IndirectFire', - RateOfFire = 0.08, - RenderFireClock = true, - TargetCheckInterval = 60, - TargetPriorities = { - 'SPECIALHIGHPRI', - 'SPECIALLOWPRI', - 'ALLUNITS', - }, - TargetRestrictDisallow = 'UNTARGETABLE', - TrackingRadius = 1, - TurretBoneMuzzle = 'Gun_Muzzle', - TurretBonePitch = 'Gun_Pitch', - TurretBoneYaw = 'Gun_Yaw', - TurretDualManipulators = false, - TurretPitch = 0, - TurretPitchRange = 360, - TurretPitchSpeed = 10, - TurretYaw = 0, - TurretYawRange = 360, - TurretYawSpeed = 10, - Turreted = true, - UseFiringSolutionInsteadOfAimBone = true, - WeaponCategory = 'Direct Fire', - WeaponRepackTimeout = 0, - WeaponUnpacks = false, + }, + Wreckage = { + Blueprint = '/props/DefaultWreckage/DefaultWreckage_prop.bp', + EnergyMult = 0, + HealthMult = 0.9, + MassMult = 0.9, + ReclaimTimeMultiplier = 1, + WreckageLayers = { + Air = false, + Land = true, + Seabed = false, + Sub = false, + Water = false, }, }, } From db8f001c0397ae1c60fe6a67d5eb35ce2c13d001 Mon Sep 17 00:00:00 2001 From: Apofenas <35565415+Apofenas@users.noreply.github.com> Date: Sat, 27 Oct 2018 16:47:52 +0900 Subject: [PATCH 13/42] Destroyer change --- units/INS2001/INS2001_unit.bp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/units/INS2001/INS2001_unit.bp b/units/INS2001/INS2001_unit.bp index 7174d76b..16d332b6 100644 --- a/units/INS2001/INS2001_unit.bp +++ b/units/INS2001/INS2001_unit.bp @@ -81,10 +81,8 @@ UnitBlueprint { Description = 'Destroyer', Display = { Abilities = { - 'Area bombardment', 'Radar', 'Sonar', - 'Supported Artillery Gun', }, --[[ AnimationDeath = { { @@ -187,14 +185,9 @@ UnitBlueprint { FactionName = 'Nomads', Icon = 'sea', OrderOverrides = { - RULEUTC_WeaponToggle = { - bitmapId = 'toggle-bombardmode', - helpText = 'toggle_bombardmode', - }, }, TechLevel = 'RULEUTL_Advanced', ToggleCaps = { - RULEUTC_WeaponToggle = true, }, UnitName = 'Firestorm', UnitWeight = 1, @@ -268,9 +261,6 @@ UnitBlueprint { }, }, BallisticArc = 'RULEUBA_LowArc', - BombardParticipant = true, - BombardSwingTurret = true, - BombardTurretRotationSpeed = 10, CollideFriendly = false, Damage = 5, DamageRadius = 1.5, @@ -357,9 +347,6 @@ UnitBlueprint { }, }, BallisticArc = 'RULEUBA_LowArc', - BombardParticipant = true, - BombardSwingTurret = true, - BombardTurretRotationSpeed = 10, CollideFriendly = false, Damage = 5, DamageRadius = 1.5, From 7160e382cb6a91ce434315817844af907135665e Mon Sep 17 00:00:00 2001 From: Apofenas <35565415+Apofenas@users.noreply.github.com> Date: Sat, 27 Oct 2018 16:49:06 +0900 Subject: [PATCH 14/42] Cruiser change --- units/INS2002/INS2002_unit.bp | 90 +++++++++++++++++++---------------- 1 file changed, 49 insertions(+), 41 deletions(-) diff --git a/units/INS2002/INS2002_unit.bp b/units/INS2002/INS2002_unit.bp index 1172c5b5..ccd3aa6f 100644 --- a/units/INS2002/INS2002_unit.bp +++ b/units/INS2002/INS2002_unit.bp @@ -2,7 +2,6 @@ UnitBlueprint { AI = { - AttackAngle = 90, GuardReturnRadius = 130, InitialAutoMode = true, TargetBones = { @@ -66,6 +65,7 @@ UnitBlueprint { 'INTELLIGENCE', 'RADAR', 'SONAR', + 'SILO', 'OVERLAYANTIAIR', 'OVERLAYRADAR', 'OVERLAYSONAR', @@ -90,6 +90,7 @@ UnitBlueprint { 'EMP', 'Radar', 'Sonar', + 'Manual Launch', }, --[[ AnimationDeath = { { @@ -179,6 +180,7 @@ UnitBlueprint { Economy = { BuildCostEnergy = 18000, BuildCostMass = 2000, + BuildRate = 80, BuildTime = 8000, }, Footprint = { @@ -200,9 +202,9 @@ UnitBlueprint { RULEUCC_Reclaim = false, RULEUCC_Repair = false, RULEUCC_RetaliateToggle = true, - RULEUCC_SiloBuildTactical = false, + RULEUCC_SiloBuildTactical = true, RULEUCC_Stop = true, - RULEUCC_Tactical = false, + RULEUCC_Tactical = true, RULEUCC_Transport = false, }, FactionName = 'Nomads', @@ -255,6 +257,13 @@ UnitBlueprint { SizeX = 1.4, SizeY = 1.5, SizeZ = 6.5, + SpecialAbilities = { + LaunchTacMissile = { + AreaOfEffect = 2, + MaxRadius = 256, + MinRadius = 15, + }, + }, StrategicIconName = 'icon_ship2_antiair', StrategicIconSortPriority = 155, Veteran = { @@ -357,25 +366,32 @@ UnitBlueprint { }, BallisticArc = 'RULEUBA_None', CollideFriendly = false, - CountedProjectile = false, - Damage = 500, - DamageFriendly = true, - DamageRadius = 3, + CountedProjectile = true, + Damage = 6000, + DamageFriendly = false, + DamageRadius = 2, DamageType = 'Normal', - DisplayName = 'Fusion missile', + DisplayName = 'Tactical missile', FireTargetLayerCapsTable = { + Land = 'Land|Water|Seabed', Water = 'Land|Water|Seabed', }, - FiringTolerance = 2, + FiringTolerance = 5, + ForceSingleFire = true, + InitialProjectileStorage = 0, Label = 'CruiseMissile', - MaxRadius = 150, - MinRadius = 0, - MuzzleSalvoDelay = 0.3, - MuzzleSalvoSize = 3, + ManualFire = true, + MaxProjectileStorage = 4, + MaxRadius = 256, + MinRadius = 15, + MuzzleChargeDelay = 0.2, + MuzzleSalvoDelay = 0, + MuzzleSalvoSize = 1, MuzzleVelocity = 5, NotExclusive = true, ProjectileId = '/projectiles/NFusionMissile1/NFusionMissile1_proj.bp', - ProjectileLifetime = 15, + ProjectileLifetime = 80, + ProjectilesPerOnFire = 1, RackBones = { { MuzzleBones = { @@ -386,33 +402,24 @@ UnitBlueprint { }, RackFireTogether = false, RackRecoilDistance = 0, - RackReloadTimeout = 0, + RackReloadTimeout = 10, RackSalvoChargeTime = 0, RackSalvoReloadTime = 0, RackSalvoSize = 1, RackSlavedToTurret = false, RangeCategory = 'UWRC_IndirectFire', - RateOfFire = 0.16, + RateOfFire = 1, TargetCheckInterval = 5, TargetPriorities = { 'SPECIALHIGHPRI', - 'NAVAL MOBILE', 'SPECIALLOWPRI', 'ALLUNITS', }, TargetRestrictDisallow = 'UNTARGETABLE', - TrackingRadius = 1.15, - TurretDualManipulators = false, - TurretPitch = 0, - TurretPitchRange = 0, - TurretPitchSpeed = 0, - TurretYaw = 0, - TurretYawRange = 0, - TurretYawSpeed = 0, Turreted = false, WeaponCategory = 'Missile', - WeaponRepackTimeout = 0, - WeaponUnpacks = false, + WeaponRepackTimeout = 5, + WeaponUnpacks = true, }, { AboveWaterTargetsOnly = true, @@ -434,8 +441,8 @@ UnitBlueprint { }, AppliedToTarget = true, BuffType = 'STUN', - Duration = 2, - Radius = 1.3, + Duration = 4, + Radius = 4, TargetAllow = 'TECH1', TargetDisallow = 'UNSTUNABLE,TECH2,TECH3,EXPERIMENTAL,COMMAND,SHIELD,WALL', }, @@ -448,8 +455,8 @@ UnitBlueprint { }, AppliedToTarget = true, BuffType = 'STUN', - Duration = 1, - Radius = 1.3, + Duration = 2, + Radius = 4, TargetAllow = 'TECH2,SHIELD', TargetDisallow = 'UNSTUNABLE,TECH1,TECH3,EXPERIMENTAL,COMMAND,WALL', }, @@ -462,30 +469,31 @@ UnitBlueprint { }, AppliedToTarget = true, BuffType = 'STUN', - Duration = 0.5, - Radius = 1.3, + Duration = 1, + Radius = 4, TargetAllow = 'TECH3', TargetDisallow = 'UNSTUNABLE,TECH1,TECH2,EXPERIMENTAL,COMMAND,SHIELD,WALL', }, }, CollideFriendly = false, - Damage = 20, - DamageRadius = 1.3, - DamageToShields = 140, + Damage = 5, + DamageRadius = 4, + DamageToShields = 600, DamageType = 'Normal', DisplayName = 'EMPactor', + EnergyDrainPerSecond = 300, + EnergyRequired = 450, FireTargetLayerCapsTable = { Water = 'Land|Water|Seabed', }, - FiringRandomness = 0.4, + FiringRandomness = 1, FiringTolerance = 2, Label = 'GunTurret', - MaxRadius = 75, + MaxRadius = 80, MinRadius = 2, MuzzleSalvoDelay = 0, MuzzleSalvoSize = 2, MuzzleVelocity = 30, - NotExclusive = true, ProjectileId = '/projectiles/NEmpShell1/NEmpShell1_proj.bp', ProjectilesPerOnFire = 2, RackBones = { @@ -510,9 +518,9 @@ UnitBlueprint { RackSalvoSize = 1, RackSlavedToTurret = false, RangeCategory = 'UWRC_DirectFire', - RateOfFire = 0.6667, + RateOfFire = 0.5, SlavedToBody = true, - SlavedToBodyArcRange = 120, + SlavedToBodyArcRange = 115, TargetCheckInterval = 0.5, TargetPriorities = { 'SPECIALHIGHPRI', From 0e0db3522019057ce946a2062d29a037259b9bbd Mon Sep 17 00:00:00 2001 From: Apofenas <35565415+Apofenas@users.noreply.github.com> Date: Sat, 27 Oct 2018 16:49:52 +0900 Subject: [PATCH 15/42] HP fix --- units/INS3002/INS3002_unit.bp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/units/INS3002/INS3002_unit.bp b/units/INS3002/INS3002_unit.bp index d42f702c..06b040a2 100644 --- a/units/INS3002/INS3002_unit.bp +++ b/units/INS3002/INS3002_unit.bp @@ -86,7 +86,7 @@ UnitBlueprint { ArmorType = 'Normal', EconomyThreatLevel = 0, Health = 4000, - MaxHealth = 6000, + MaxHealth = 4000, RegenRate = 0, SubThreatLevel = 60, SurfaceThreatLevel = 60, From a89416a15530bbfe2a13ae012e25cc4415e934db Mon Sep 17 00:00:00 2001 From: Apofenas <35565415+Apofenas@users.noreply.github.com> Date: Sat, 27 Oct 2018 16:50:51 +0900 Subject: [PATCH 16/42] Bombard remove --- units/INS2001/INS2001_script.lua | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/units/INS2001/INS2001_script.lua b/units/INS2001/INS2001_script.lua index 8a0131c7..052328c3 100644 --- a/units/INS2001/INS2001_script.lua +++ b/units/INS2001/INS2001_script.lua @@ -2,12 +2,10 @@ local SupportedArtilleryWeapon = import('/lua/nomadsutils.lua').SupportedArtilleryWeapon local AddNavalLights = import('/lua/nomadsutils.lua').AddNavalLights -local AddBombardModeToUnit = import('/lua/nomadsutils.lua').AddBombardModeToUnit local NSeaUnit = import('/lua/nomadsunits.lua').NSeaUnit local EnergyCannon1 = import('/lua/nomadsweapons.lua').EnergyCannon1 local UnderwaterRailgunWeapon1 = import('/lua/nomadsweapons.lua').UnderwaterRailgunWeapon1 -NSeaUnit = AddBombardModeToUnit( NSeaUnit ) NSeaUnit = AddNavalLights(NSeaUnit) EnergyCannon1 = SupportedArtilleryWeapon( EnergyCannon1 ) @@ -65,25 +63,6 @@ INS2001 = Class(NSeaUnit) { end end, - SetBombardmentMode = function(self, enable, changedByTransport) - NSeaUnit.SetBombardmentMode(self, enable, changedByTransport) - self:SetScriptBit('RULEUTC_WeaponToggle', enable) - end, - - OnScriptBitSet = function(self, bit) - NSeaUnit.OnScriptBitSet(self, bit) - if bit == 1 then - NSeaUnit.SetBombardmentMode(self, true, false) - end - end, - - OnScriptBitClear = function(self, bit) - NSeaUnit.OnScriptBitClear(self, bit) - if bit == 1 then - NSeaUnit.SetBombardmentMode(self, false, false) - end - end, - SetupMiniRailguns = function(self) local bp = self:GetBlueprint() if bp.Display.MiniRailgunsExtend then @@ -119,4 +98,4 @@ INS2001 = Class(NSeaUnit) { end, } -TypeClass = INS2001 \ No newline at end of file +TypeClass = INS2001 From d2130d10918bc2bcbbed3aa531213682099fb4f6 Mon Sep 17 00:00:00 2001 From: Apofenas <35565415+Apofenas@users.noreply.github.com> Date: Sat, 27 Oct 2018 16:52:22 +0900 Subject: [PATCH 17/42] Bombard remove --- units/INS3004/INS3004_Script.lua | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/units/INS3004/INS3004_Script.lua b/units/INS3004/INS3004_Script.lua index ca314f6f..c442ded5 100644 --- a/units/INS3004/INS3004_Script.lua +++ b/units/INS3004/INS3004_Script.lua @@ -2,7 +2,6 @@ local SupportedArtilleryWeapon = import('/lua/nomadsutils.lua').SupportedArtilleryWeapon local AddNavalLights = import('/lua/nomadsutils.lua').AddNavalLights -local AddBombardModeToUnit = import('/lua/nomadsutils.lua').AddBombardModeToUnit local NSeaUnit = import('/lua/nomadsunits.lua').NSeaUnit local AAGun = import('/lua/nomadsweapons.lua').AAGun local PlasmaCannon = import('/lua/nomadsweapons.lua').PlasmaCannon @@ -11,7 +10,6 @@ local UnderwaterRailgunWeapon1 = import('/lua/nomadsweapons.lua').UnderwaterRail local RocketWeapon1 = import('/lua/nomadsweapons.lua').RocketWeapon1 NSeaUnit = AddNavalLights(NSeaUnit) -NSeaUnit = AddBombardModeToUnit( NSeaUnit ) PlasmaCannon = SupportedArtilleryWeapon( PlasmaCannon ) @@ -54,25 +52,6 @@ INS3004 = Class(NSeaUnit) { if self.HideTMD then self:HideBone('TMD', true) end end, - SetBombardmentMode = function(self, enable, changedByTransport) - NSeaUnit.SetBombardmentMode(self, enable, changedByTransport) - self:SetScriptBit('RULEUTC_WeaponToggle', enable) - end, - - OnScriptBitSet = function(self, bit) - NSeaUnit.OnScriptBitSet(self, bit) - if bit == 1 then - NSeaUnit.SetBombardmentMode(self, true, false) - end - end, - - OnScriptBitClear = function(self, bit) - NSeaUnit.OnScriptBitClear(self, bit) - if bit == 1 then - NSeaUnit.SetBombardmentMode(self, false, false) - end - end, - RotateAAturretRevolver = function(self, revolver) local angle = self.AATurretRotators[revolver]:GetCurrentAngle() if revolver == 1 then @@ -84,4 +63,4 @@ INS3004 = Class(NSeaUnit) { end, } -TypeClass = INS3004 \ No newline at end of file +TypeClass = INS3004 From bfde98ba596f7b15524f466c8876250bcd6a33dc Mon Sep 17 00:00:00 2001 From: Apofenas <35565415+Apofenas@users.noreply.github.com> Date: Sat, 27 Oct 2018 16:52:47 +0900 Subject: [PATCH 18/42] Bombard remove --- units/INS3004/INS3004_unit.bp | 126 +++++++++++++++++----------------- 1 file changed, 63 insertions(+), 63 deletions(-) diff --git a/units/INS3004/INS3004_unit.bp b/units/INS3004/INS3004_unit.bp index e3eefcf2..f0aba4b2 100644 --- a/units/INS3004/INS3004_unit.bp +++ b/units/INS3004/INS3004_unit.bp @@ -719,69 +719,69 @@ UnitBlueprint { RackBones = { { MuzzleBones = { - 'RocketLauncher_Muzzle1', - }, - RackBone = 'RocketLauncher_Revolver1', - }, - { - MuzzleBones = { - 'RocketLauncher_Muzzle2', - }, - RackBone = 'RocketLauncher_Revolver2', - }, - }, - RackFireTogether = false, - RackRecoilDistance = 0, - RackReloadTimeout = 0, - RackSalvoChargeTime = 0, - RackSalvoReloadTime = 0, - RackSalvoSize = 1, - RackSlavedToTurret = false, - RangeCategory = 'UWRC_AntiAir', - RateOfFire = 2.5, - TargetCheckInterval = 0.3, - TargetPriorities = { - 'SPECIALHIGHPRI', - 'EXPERIMENTAL', - 'AIR MOBILE HIGHPRIAIR', - 'AIR MOBILE TECH3 BOMBER', - 'AIR MOBILE BOMBER', - 'AIR MOBILE GROUNDATTACK', - 'AIR MOBILE TRANSPORTATION', - 'AIR MOBILE', - 'SPECIALLOWPRI', - 'ALLUNITS', - }, - TargetRestrictDisallow = 'UNTARGETABLE', - TrackingRadius = 1.4, - TurretBoneMuzzle = 'RocketLauncher_Pitch', - TurretBonePitch = 'RocketLauncher_Pitch', - TurretBoneYaw = 'RocketLauncher', - TurretDualManipulators = false, - TurretPitch = 40, - TurretPitchRange = 50, - TurretPitchSpeed = 180, - TurretYaw = 0, - TurretYawRange = 180, - TurretYawSpeed = 180, - Turreted = true, - WeaponCategory = 'Anti Air', - WeaponRepackTimeout = 0, - WeaponUnpacks = false, - }, - }, - Wreckage = { - Blueprint = '/props/DefaultWreckage/DefaultWreckage_prop.bp', - EnergyMult = 0, - HealthMult = 0.9, - MassMult = 0.9, - ReclaimTimeMultiplier = 1, - WreckageLayers = { - Air = false, - Land = false, - Seabed = true, - Sub = true, - Water = true, +-- T3 heavy destroyer + +local SupportedArtilleryWeapon = import('/lua/nomadsutils.lua').SupportedArtilleryWeapon +local AddNavalLights = import('/lua/nomadsutils.lua').AddNavalLights +local NSeaUnit = import('/lua/nomadsunits.lua').NSeaUnit +local AAGun = import('/lua/nomadsweapons.lua').AAGun +local PlasmaCannon = import('/lua/nomadsweapons.lua').PlasmaCannon +local StingrayCannon1 = import('/lua/nomadsweapons.lua').StingrayCannon1 +local UnderwaterRailgunWeapon1 = import('/lua/nomadsweapons.lua').UnderwaterRailgunWeapon1 +local RocketWeapon1 = import('/lua/nomadsweapons.lua').RocketWeapon1 + +NSeaUnit = AddNavalLights(NSeaUnit) + +PlasmaCannon = SupportedArtilleryWeapon( PlasmaCannon ) + +INS3004 = Class(NSeaUnit) { + Weapons = { + MainTurret1 = Class(PlasmaCannon) {}, + MainTurret2 = Class(PlasmaCannon) {}, + SideTurret1 = Class(StingrayCannon1) {}, + SideTurret2 = Class(StingrayCannon1) {}, + RailGun = Class(UnderwaterRailgunWeapon1) {}, + AATurret = Class(RocketWeapon1) { + PlayFxMuzzleSequence = function(self, muzzle) + RocketWeapon1.PlayFxMuzzleSequence(self, muzzle) + if muzzle == 'RocketLauncher_Muzzle1' then + self.unit:RotateAAturretRevolver(1) + else + self.unit:RotateAAturretRevolver(2) + end + end, }, }, + + LightBone_Left = 'AntennaLeft3', + LightBone_Right = 'AntennaRight3', + HideTMD = true, + + OnCreate = function(self) + NSeaUnit.OnCreate(self) + + local AATurret = self:GetWeaponByLabel('AATurret') + if AATurret then + local bp = AATurret:GetBlueprint() + local RotateSpeed = 90 * (1 / ((1 / (bp.RateOfFire / table.getsize(bp.RackBones))) - 0.2)) -- calc how fast to rotate 90 degrees with current ROF and 0.2 sec free time + self.AATurretRotators = { + CreateRotator( self, bp.RackBones[1].RackBone, 'z', 0, RotateSpeed ), + CreateRotator( self, bp.RackBones[2].RackBone, 'z', 0, RotateSpeed ), + } + end + + if self.HideTMD then self:HideBone('TMD', true) end + end, + + RotateAAturretRevolver = function(self, revolver) + local angle = self.AATurretRotators[revolver]:GetCurrentAngle() + if revolver == 1 then + angle = angle + 90 + else + angle = angle - 90 + end + self.AATurretRotators[revolver]:SetGoal(angle) + end, } + +TypeClass = INS3004 From e7f4e519490bf9a00ed636b1925d11ea516a5fbd Mon Sep 17 00:00:00 2001 From: Apofenas <35565415+Apofenas@users.noreply.github.com> Date: Sat, 27 Oct 2018 16:53:45 +0900 Subject: [PATCH 19/42] Orbis rebalance --- units/INU1004/INU1004_unit.bp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/units/INU1004/INU1004_unit.bp b/units/INU1004/INU1004_unit.bp index 89776853..27e5c839 100644 --- a/units/INU1004/INU1004_unit.bp +++ b/units/INU1004/INU1004_unit.bp @@ -63,7 +63,6 @@ UnitBlueprint { 'LAND', 'TECH1', 'DIRECTFIRE', - 'HOVER', 'VISIBLETORECON', 'RECLAIMABLE', 'TANK', @@ -75,8 +74,8 @@ UnitBlueprint { AirThreatLevel = 0, ArmorType = 'Normal', EconomyThreatLevel = 0, - Health = 265, - MaxHealth = 265, + Health = 260, + MaxHealth = 260, RegenRate = 0, SubThreatLevel = 0, SurfaceThreatLevel = 1, @@ -230,9 +229,9 @@ UnitBlueprint { }, DragCoefficient = 0.2, Elevation = 0.34, - MaxAcceleration = 3.6, - MaxBrake = 3.6, - MaxSpeed = 3.6, + MaxAcceleration = 3.2, + MaxBrake = 3.2, + MaxSpeed = 3.2, MaxSpeedReverse = 0, MaxSteerForce = 10, MeshExtentsX = 0.75, @@ -276,7 +275,7 @@ UnitBlueprint { BallisticArc = 'RULEUBA_LowArc', DamageFriendly = false, CollideFriendly = false, - Damage = 20, + Damage = 45, DamageType = 'Normal', DisplayName = 'Particle blaster', FireTargetLayerCapsTable = { @@ -309,7 +308,7 @@ UnitBlueprint { RackSalvoSize = 1, RackSlavedToTurret = false, RangeCategory = 'UWRC_DirectFire', - RateOfFire = 1.25, + RateOfFire = 0.67, TargetCheckInterval = 1, TargetPriorities = { 'SPECIALHIGHPRI', From 95be21057c9d2d98ea878230cdb5ceccff8896fa Mon Sep 17 00:00:00 2001 From: Apofenas <35565415+Apofenas@users.noreply.github.com> Date: Sat, 27 Oct 2018 16:54:52 +0900 Subject: [PATCH 20/42] T1 maa rebalance --- units/INU1006/INU1006_unit.bp | 462 +++++++++++++--------------------- 1 file changed, 169 insertions(+), 293 deletions(-) diff --git a/units/INU1006/INU1006_unit.bp b/units/INU1006/INU1006_unit.bp index b11f361e..7015de00 100644 --- a/units/INU1006/INU1006_unit.bp +++ b/units/INU1006/INU1006_unit.bp @@ -1,15 +1,20 @@ --- T1 AA/Artilery +-- T1 tank Orbis UnitBlueprint { - AI = { - BombardModeCheckRadius = 8, - BombardModeCheckUnits = 4, - GuardScanRadius = 32, - }, Audio = { - AmbientMove = Sound { - Bank = 'UEL', - Cue = 'UEL0104_Move_Loop', + AmbientIdle = Sound { + Bank = 'NomadsUnits', + Cue = 'HoverIdle', + LodCutoff = 'UnitMove_LodCutoff', + }, + AmbientMoveLand = Sound { + Bank = 'NomadsUnits', + Cue = 'HoverMoving', + LodCutoff = 'UnitMove_LodCutoff', + }, + AmbientMoveWater = Sound { + Bank = 'NomadsUnits', + Cue = 'HoverMovingOnWater', LodCutoff = 'UnitMove_LodCutoff', }, Destroyed = Sound { @@ -17,19 +22,24 @@ UnitBlueprint { Cue = 'Destroy_Land', LodCutoff = 'UnitMove_LodCutoff', }, + HoverKilledOnWater = Sound { + Bank = 'Explosions', + Cue = 'Expl_Water_Lrg_01', + LodCutoff = 'UnitMove_LodCutoff', + }, StartMove = Sound { - Bank = 'UEL', - Cue = 'UEL0104_Move_Start', + Bank = 'UAL', + Cue = 'UAL0101_Move_Start', LodCutoff = 'UnitMove_LodCutoff', }, StopMove = Sound { - Bank = 'UEL', - Cue = 'UEL0104_Move_Stop', + Bank = 'UAL', + Cue = 'UAL0101_Move_Stop', LodCutoff = 'UnitMove_LodCutoff', }, UISelection = Sound { Bank = 'NomadsInterface', - Cue = 'Nomads_Select_Vehicle', + Cue = 'Nomads_Select_HoverVehicle', LodCutoff = 'UnitMove_LodCutoff', }, }, @@ -42,7 +52,7 @@ UnitBlueprint { Level5 = 5, }, }, - BuildIconSortPriority = 50, + BuildIconSortPriority = 40, Categories = { 'SELECTABLE', 'BUILTBYTIER1FACTORY', @@ -52,47 +62,78 @@ UnitBlueprint { 'MOBILE', 'LAND', 'TECH1', - 'ANTIAIR', - 'INDIRECTFIRE', - 'ARTILLERY', + 'DIRECTFIRE', 'VISIBLETORECON', 'RECLAIMABLE', - 'OVERLAYANTIAIR', - 'OVERLAYINDIRECTFIRE', + 'TANK', + 'OVERLAYDIRECTFIRE', }, - CollisionOffsetZ = 0.1, + CollisionOffsetY = -0.1, + CollisionOffsetZ = 0.15, Defense = { - AirThreatLevel = 0.33, + AirThreatLevel = 0, ArmorType = 'Normal', EconomyThreatLevel = 0, Health = 260, MaxHealth = 260, RegenRate = 0, SubThreatLevel = 0, - SurfaceThreatLevel = 0.25, + SurfaceThreatLevel = 1, }, - Description = 'Mobile Anti-Air Gun', + Description = 'Medium tank', Display = { Abilities = { - 'Anti-Air', - 'Artillery', - 'Area bombardment', + 'Hover', }, BuildEffect = { - ExtendsFront = 0.02, - ExtendsRear = 0.05, + ExtendsFront = 0.03, + }, + IdleEffects = {--fxtype => this one is fxidle + Land = {--layer + Effects = { + { + Bones = { + 'INU1004', + }, + Offset = { + 0, + -0.17, + 0, + }, + Scale = 0.65, + Type = 'NomadsHoverGroundFx1', + Recolour = true, + }, + }, + }, + Water = { + Effects = { + { + Bones = { + 'INU1004', + }, + Offset = { + 0, + -0.17, + 0, + }, + Scale = 0.65, + Type = 'NomadsHoverGroundFx1', + Recolour = true, + }, + }, + }, }, Mesh = { IconFadeInZoom = 130, LODs = { { - AlbedoName = '/units/INU1006/INU1006_Albedo.dds', - LODCutoff = 200, - MeshName = '/units/INU1006/INU1006_LOD0.scm', - NormalsName = '/units/INU1006/INU1006_normalsTS.dds', - Scrolling = true, + LODCutoff = 160, + AlbedoName = '/units/INU1004/INU1004_Albedo.dds', + MeshName = '/units/INU1004/INU1004_LOD0.scm', + NormalsName = '/units/INU1004/INU1004_NormalsTS.dds', ShaderName = 'NomadsUnit', - SpecularName = '/units/INU1006/INU1006_SpecTeam.dds', + SpecularName = '/Units/INU1004/INU1004_SpecTeam.dds', }, }, }, @@ -101,45 +142,51 @@ UnitBlueprint { Effects = { { Bones = { - 'exhaust_L', - 'exhaust_R', + 'INU1004', }, - Type = 'GroundKickup01', + Offset = { + 0, + -0.17, + 0, + }, + Scale = 0.65, + Type = 'NomadsHoverGroundFx1', + Recolour = true, }, }, - Treads = { - ScrollTreads = true, - TreadMarks = { - { - BoneName = 'INU1006', - TreadMarks = 'tank_treads_albedo', - TreadMarksInterval = 0.3, - TreadMarksSizeX = 0.4, - TreadMarksSizeZ = 0.5, - TreadOffset = { - 0, - 0, - 0, - }, + }, + Water = { + Effects = { + { + Bones = { + 'INU1004', }, + Offset = { + 0, + -0.17, + 0, + }, + Scale = 0.65, + Type = 'NomadsHoverGroundFx1', + Recolour = true, }, }, }, }, - PlaceholderMeshName = 'UXL0004', + PlaceholderMeshName = 'UXL0001', SpawnRandomRotation = true, - UniformScale = 0.065, + UniformScale = 0.08, }, Economy = { - BuildCostEnergy = 300, - BuildCostMass = 60, - BuildTime = 220, + BuildCostEnergy = 270, + BuildCostMass = 54, + BuildTime = 270, TeleportEnergyMod = 0.15, TeleportMassMod = 1, TeleportTimeMod = 0.01, }, General = { - Category = 'Anti Air', + Category = 'Direct Fire', Classification = 'RULEUC_MilitaryVehicle', CommandCaps = { RULEUCC_Attack = true, @@ -156,34 +203,20 @@ UnitBlueprint { RULEUCC_Transport = false, }, FactionName = 'Nomads', - Icon = 'land', - OrderOverrides = { - RULEUTC_WeaponToggle = { - bitmapId = 'toggle-bombardmode', - helpText = 'toggle_bombardmode', - }, - RULEUTC_SpecialToggle = { - bitmapId = 'toggle-weapon-air', - helpText = 'toggle_weapon_no_air', - }, - }, + Icon = 'amph', TechLevel = 'RULEUTL_Basic', - ToggleCaps = { - RULEUTC_WeaponToggle = true, - RULEUTC_SpecialToggle = true, - }, - UnitName = 'Barrager', + UnitName = 'Orbis', UnitWeight = 1, }, Intel = { VisionRadius = 20, }, Interface = { - HelpText = 'Mobile Anti-Air Gun', + HelpText = 'Tank', }, LifeBarHeight = 0.075, - LifeBarOffset = 0.3, - LifeBarSize = 0.6, + LifeBarOffset = 0.4, + LifeBarSize = 0.65, Physics = { BankingSlope = 0, BuildOnLayerCaps = { @@ -195,270 +228,113 @@ UnitBlueprint { LAYER_Water = false, }, DragCoefficient = 0.2, - MaxAcceleration = 3, - MaxBrake = 3, - MaxSpeed = 3, + Elevation = 0.34, + MaxAcceleration = 3.2, + MaxBrake = 3.2, + MaxSpeed = 3.2, MaxSpeedReverse = 0, MaxSteerForce = 10, - MeshExtentsX = 0.4, - MeshExtentsY = 0.45, - MeshExtentsZ = 0.6, + MeshExtentsX = 0.75, + MeshExtentsY = 0.5, + MeshExtentsZ = 0.8, MinSpeedPercent = 0, - MotionType = 'RULEUMT_Land', + MotionType = 'RULEUMT_Hover', + RotateBodyWhileMoving = true, RotateOnSpot = true, - RotateOnSpotThreshold = 0.5, - TurnRadius = 5, - TurnRate = 80, + WaterSpeedMultiplier = 0.9, + TurnFacingRate = 120, + TurnRadius = 0, + TurnRate = 85, }, - SelectionCenterOffsetZ = -0.02, - SelectionSizeX = 0.28, - SelectionSizeZ = 0.55, - SelectionThickness = 0.65, - SizeX = 0.5, - SizeY = 0.4, - SizeZ = 0.85, - StrategicIconName = 'icon_land1_aa_arty', + SelectionCenterOffsetY = -0.1, + SelectionSizeX = 0.35, + SelectionSizeZ = 0.85, + SelectionThickness = 0.5, + SizeX = 0.65, + SizeY = 0.3, + SizeZ = 1.2, + StrategicIconName = 'icon_land1_directfire', StrategicIconSortPriority = 135, - Transport = { - CanFireFromTransport = false, - }, Veteran = { - Level1 = 2, - Level2 = 4, - Level3 = 6, - Level4 = 8, - Level5 = 10, + Level1 = 3, + Level2 = 6, + Level3 = 9, + Level4 = 12, + Level5 = 15, }, Weapon = { { AboveWaterTargetsOnly = true, - ArtilleryShieldBlocks = true, - BombardParticipant = true, - BombardSwingTurret = true, - BombardTurretRotationSpeed = 1, Audio = { Fire = Sound { - Bank = 'URLWeapon', - Cue = 'URL0402_Missile_Nanite', + Bank = 'NomadsWeapons', + Cue = 'ParticleBlaster_Medium', LodCutoff = 'Weapon_LodCutoff', }, }, - BallisticArc = 'RULEUBA_HighArc', - CannotAttackGround = false, - CollideFriendly = false, - Damage = 150, + BallisticArc = 'RULEUBA_LowArc', DamageFriendly = false, - DamageRadius = 1.5, + CollideFriendly = false, + Damage = 45, DamageType = 'Normal', - DisplayName = 'Artillery Rockets', + DisplayName = 'Particle blaster', FireTargetLayerCapsTable = { Land = 'Land|Water|Seabed', Water = 'Land|Water|Seabed', }, - FiringRandomness = 0.5, - FiringTolerance = 3, - Label = 'ArtilleryGun', - MaxRadius = 30, - MinRadius = 5, - MuzzleSalvoDelay = 0.1, - MuzzleSalvoSize = 2, - MuzzleVelocity = 14, - MuzzleVelocityReduceDistance = 28, - ProjectileId = '/projectiles/NArtilleryRocket1/NArtilleryRocket1_proj.bp', - ProjectilesPerOnFire = 2, - RackBones = { - { - MuzzleBones = { - 'muzzle.001', - 'muzzle.002', - }, - RackBone = 'barrel', - }, - }, - RackFireTogether = false, - RackRecoilDistance = 0, - RackReloadTimeout = 0, - RackSalvoChargeTime = 0, - RackSalvoReloadTime = 0, - RackSalvoSize = 1, - RackSlavedToTurret = false, - RangeCategory = 'UWRC_IndirectFire', - RateOfFire = 0.15, - StopOnPrimaryWeaponBusy = true, - TargetCheckInterval = 0.5, - TargetPriorities = { - 'SPECIALHIGHPRI', - 'STRUCTURE DEFENSE', - 'SPECIALLOWPRI', - 'ALLUNITS', - }, - TargetRestrictDisallow = 'UNTARGETABLE', - ToggleWeapon = 'AAGun', - TrackingRadius = 1.15, - TurretBoneMuzzle = 'muzzle.001', - TurretBonePitch = 'barrel', - TurretBoneYaw = 'turret', - TurretPitch = 45, - TurretPitchRange = 90, - TurretPitchSpeed = 180, - TurretYaw = 0, - TurretYawRange = 180, - TurretYawSpeed = 90, - Turreted = true, - WeaponCategory = 'Artillery', - WeaponRepackTimeout = 0, - WeaponUnpacks = false, - }, - { - AlwaysRecheckTarget = true, - Audio = { - Fire = Sound { - Bank = 'URLWeapon', - Cue = 'URL0402_Missile_Nanite', - LodCutoff = 'Weapon_LodCutoff', - }, - }, - BallisticArc = 'RULEUBA_None', - BombardParticipant = false, - BombardSwingTurret = false, - CannotAttackGround = true, - CollideFriendly = false, - Damage = 25, --31,25dps - DamageType = 'Normal', - DisplayName = 'Rocket (AA)', - EffectiveRadius = 0, - FireTargetLayerCapsTable = { - Land = 'Air', - }, - FiringRandomness = 0, - FiringTolerance = 0.5, - Label = 'AAGun', - MaxRadius = 32, + FiringTolerance = 2, + LeadTarget = true, + Label = 'MainGun', + MaxRadius = 18, MuzzleSalvoDelay = 0, MuzzleSalvoSize = 1, - MuzzleVelocity = 45, - ProjectileId = '/projectiles/NRocketProj1/NRocketProj1_proj.bp', - ProjectileLifetimeUsesMultiplier = 1.75, - ProjectilesPerOnFire = 1, - RackBones = { - { - MuzzleBones = { - 'muzzle.001', - }, - RackBone = 'barrel', - }, - { - MuzzleBones = { - 'muzzle.002', - }, - RackBone = 'barrel', - }, - }, - RackFireTogether = false, - RackRecoilDistance = -0.15, - RackReloadTimeout = 0, - RackSalvoChargeTime = 0, - RackSalvoReloadTime = 0, - RackSalvoSize = 1, - RackSlavedToTurret = true, - RangeCategory = 'UWRC_AntiAir', - RateOfFire = 1.25, - TargetCheckInterval = 0.3, - TargetPriorities = { - 'SPECIALHIGHPRI', - 'AIR MOBILE HIGHPRIAIR', - 'AIR MOBILE TECH3 BOMBER', - 'AIR MOBILE BOMBER', - 'AIR MOBILE GROUNDATTACK', - 'AIR MOBILE TRANSPORTATION', - 'AIR MOBILE', - 'SPECIALLOWPRI', - 'ALLUNITS', - }, - TargetRestrictDisallow = 'UNTARGETABLE', - ToggleWeapon = 'ArtilleryGun', - TrackingRadius = 1.4, - TurretBoneMuzzle = 'muzzle.001', - TurretBonePitch = 'barrel', - TurretBoneYaw = 'turret', - TurretDualManipulators = false, - TurretPitch = 45, - TurretPitchRange = 90, - TurretPitchSpeed = 180, - TurretYaw = 0, - TurretYawRange = 180, - TurretYawSpeed = 180, - Turreted = true, - UseFiringSolutionInsteadOfAimBone = true, - WeaponCategory = 'Anti Air', - WeaponRepackTimeout = 0, - WeaponUnpacks = false, - }, - { - AlwaysRecheckTarget = true, - BallisticArc = 'RULEUBA_None', - CannotAttackGround = true, - BeamCollisionDelay = 0.2, - BeamLifetime = 0, - CollideFriendly = false, - ContinuousBeam = true, - Damage = 0, - DamageFriendly = false, - DamageType = 'Normal', - DisplayName = 'Targeting Laser', - FireTargetLayerCapsTable = { - Land = 'Air', - }, - Label = 'TargetPainter', - MaxRadius = 32, - MuzzleSalvoDelay = 0, - MuzzleSalvoSize = 1, - PreferPrimaryWeaponTarget = true, + MuzzleVelocity = 28, + ProjectileId = '/projectiles/NParticleBlast1/NParticleBlast1_proj.bp', ProjectileLifetimeUsesMultiplier = 1.15, + ProjectilesPerOnFire = 1, RackBones = { { MuzzleBones = { - 'muzzle.001', + 'muzzle', }, - RackBone = 'barrel', + RackBone = 'muzzle', }, }, - RackFireTogether = false, - RackRecoilDistance = 0, - RackReloadTimeout = 0, + RackFireTogether = true, + RackRecoilDistance = -0.4, + RackReloadTimeout = 10, RackSalvoChargeTime = 0, RackSalvoReloadTime = 0, RackSalvoSize = 1, RackSlavedToTurret = false, - RateOfFire = 10, - ReTargetOnMiss = true, - TargetCheckInterval = 0.1, + RangeCategory = 'UWRC_DirectFire', + RateOfFire = 0.67, + TargetCheckInterval = 1, TargetPriorities = { 'SPECIALHIGHPRI', - 'AIR MOBILE HIGHPRIAIR', - 'AIR MOBILE TECH3 BOMBER', - 'AIR MOBILE BOMBER', - 'AIR MOBILE GROUNDATTACK', - 'AIR MOBILE TRANSPORTATION', - 'AIR MOBILE', + 'TECH1 MOBILE', + 'TECH2 MOBILE', + 'TECH3 MOBILE', + 'STRUCTURE DEFENSE', 'SPECIALLOWPRI', 'ALLUNITS', }, TargetRestrictDisallow = 'UNTARGETABLE', - TrackingRadius = 1.4, - TurretBoneMuzzle = 'muzzle.001', + TrackingRadius = 1.15, + TurretBoneMuzzle = 'muzzle', TurretBonePitch = 'barrel', TurretBoneYaw = 'turret', TurretDualManipulators = false, TurretPitch = 0, - TurretPitchRange = 180, - TurretPitchSpeed = 180, + TurretPitchRange = 80, + TurretPitchSpeed = 60, TurretYaw = 0, TurretYawRange = 180, - TurretYawSpeed = 180, + TurretYawSpeed = 100, Turreted = true, - UseFiringSolutionInsteadOfAimBone = true, - WeaponCategory = 'Anti Air', + WeaponCategory = 'Direct Fire', + WeaponRepackTimeout = 0, + WeaponUnpacks = false, }, }, Wreckage = { From 0bcd8dd2627c303e40723c75fe9650c9e9504755 Mon Sep 17 00:00:00 2001 From: Apofenas <35565415+Apofenas@users.noreply.github.com> Date: Sat, 27 Oct 2018 16:55:32 +0900 Subject: [PATCH 21/42] T1 maa rebalance --- units/INU1006/INU1006_unit.bp | 452 +++++++++++++++++++++------------- 1 file changed, 283 insertions(+), 169 deletions(-) diff --git a/units/INU1006/INU1006_unit.bp b/units/INU1006/INU1006_unit.bp index 7015de00..fbd65c46 100644 --- a/units/INU1006/INU1006_unit.bp +++ b/units/INU1006/INU1006_unit.bp @@ -1,20 +1,13 @@ --- T1 tank Orbis +-- T1 AA/Artilery UnitBlueprint { + AI = { + GuardScanRadius = 32, + }, Audio = { - AmbientIdle = Sound { - Bank = 'NomadsUnits', - Cue = 'HoverIdle', - LodCutoff = 'UnitMove_LodCutoff', - }, - AmbientMoveLand = Sound { - Bank = 'NomadsUnits', - Cue = 'HoverMoving', - LodCutoff = 'UnitMove_LodCutoff', - }, - AmbientMoveWater = Sound { - Bank = 'NomadsUnits', - Cue = 'HoverMovingOnWater', + AmbientMove = Sound { + Bank = 'UEL', + Cue = 'UEL0104_Move_Loop', LodCutoff = 'UnitMove_LodCutoff', }, Destroyed = Sound { @@ -22,24 +15,19 @@ UnitBlueprint { Cue = 'Destroy_Land', LodCutoff = 'UnitMove_LodCutoff', }, - HoverKilledOnWater = Sound { - Bank = 'Explosions', - Cue = 'Expl_Water_Lrg_01', - LodCutoff = 'UnitMove_LodCutoff', - }, StartMove = Sound { - Bank = 'UAL', - Cue = 'UAL0101_Move_Start', + Bank = 'UEL', + Cue = 'UEL0104_Move_Start', LodCutoff = 'UnitMove_LodCutoff', }, StopMove = Sound { - Bank = 'UAL', - Cue = 'UAL0101_Move_Stop', + Bank = 'UEL', + Cue = 'UEL0104_Move_Stop', LodCutoff = 'UnitMove_LodCutoff', }, UISelection = Sound { Bank = 'NomadsInterface', - Cue = 'Nomads_Select_HoverVehicle', + Cue = 'Nomads_Select_Vehicle', LodCutoff = 'UnitMove_LodCutoff', }, }, @@ -52,7 +40,7 @@ UnitBlueprint { Level5 = 5, }, }, - BuildIconSortPriority = 40, + BuildIconSortPriority = 50, Categories = { 'SELECTABLE', 'BUILTBYTIER1FACTORY', @@ -62,78 +50,46 @@ UnitBlueprint { 'MOBILE', 'LAND', 'TECH1', - 'DIRECTFIRE', + 'ANTIAIR', + 'INDIRECTFIRE', + 'ARTILLERY', 'VISIBLETORECON', 'RECLAIMABLE', - 'TANK', - 'OVERLAYDIRECTFIRE', + 'OVERLAYANTIAIR', + 'OVERLAYINDIRECTFIRE', }, - CollisionOffsetY = -0.1, - CollisionOffsetZ = 0.15, + CollisionOffsetZ = 0.1, Defense = { - AirThreatLevel = 0, + AirThreatLevel = 0.33, ArmorType = 'Normal', EconomyThreatLevel = 0, Health = 260, MaxHealth = 260, RegenRate = 0, SubThreatLevel = 0, - SurfaceThreatLevel = 1, + SurfaceThreatLevel = 0.25, }, - Description = 'Medium tank', + Description = 'Mobile Anti-Air Gun', Display = { Abilities = { - 'Hover', + 'Anti-Air', + 'Artillery', }, BuildEffect = { - ExtendsFront = 0.03, - }, - IdleEffects = {--fxtype => this one is fxidle - Land = {--layer - Effects = { - { - Bones = { - 'INU1004', - }, - Offset = { - 0, - -0.17, - 0, - }, - Scale = 0.65, - Type = 'NomadsHoverGroundFx1', - Recolour = true, - }, - }, - }, - Water = { - Effects = { - { - Bones = { - 'INU1004', - }, - Offset = { - 0, - -0.17, - 0, - }, - Scale = 0.65, - Type = 'NomadsHoverGroundFx1', - Recolour = true, - }, - }, - }, + ExtendsFront = 0.02, + ExtendsRear = 0.05, }, Mesh = { IconFadeInZoom = 130, LODs = { { - LODCutoff = 160, - AlbedoName = '/units/INU1004/INU1004_Albedo.dds', - MeshName = '/units/INU1004/INU1004_LOD0.scm', - NormalsName = '/units/INU1004/INU1004_NormalsTS.dds', + AlbedoName = '/units/INU1006/INU1006_Albedo.dds', + LODCutoff = 200, + MeshName = '/units/INU1006/INU1006_LOD0.scm', + NormalsName = '/units/INU1006/INU1006_normalsTS.dds', + Scrolling = true, ShaderName = 'NomadsUnit', - SpecularName = '/Units/INU1004/INU1004_SpecTeam.dds', + SpecularName = '/units/INU1006/INU1006_SpecTeam.dds', }, }, }, @@ -142,51 +98,45 @@ UnitBlueprint { Effects = { { Bones = { - 'INU1004', + 'exhaust_L', + 'exhaust_R', }, - Offset = { - 0, - -0.17, - 0, - }, - Scale = 0.65, - Type = 'NomadsHoverGroundFx1', - Recolour = true, + Type = 'GroundKickup01', }, }, - }, - Water = { - Effects = { - { - Bones = { - 'INU1004', + Treads = { + ScrollTreads = true, + TreadMarks = { + { + BoneName = 'INU1006', + TreadMarks = 'tank_treads_albedo', + TreadMarksInterval = 0.3, + TreadMarksSizeX = 0.4, + TreadMarksSizeZ = 0.5, + TreadOffset = { + 0, + 0, + 0, + }, }, - Offset = { - 0, - -0.17, - 0, - }, - Scale = 0.65, - Type = 'NomadsHoverGroundFx1', - Recolour = true, }, }, }, }, - PlaceholderMeshName = 'UXL0001', + PlaceholderMeshName = 'UXL0004', SpawnRandomRotation = true, - UniformScale = 0.08, + UniformScale = 0.065, }, Economy = { - BuildCostEnergy = 270, - BuildCostMass = 54, - BuildTime = 270, + BuildCostEnergy = 300, + BuildCostMass = 60, + BuildTime = 220, TeleportEnergyMod = 0.15, TeleportMassMod = 1, TeleportTimeMod = 0.01, }, General = { - Category = 'Direct Fire', + Category = 'Anti Air', Classification = 'RULEUC_MilitaryVehicle', CommandCaps = { RULEUCC_Attack = true, @@ -203,20 +153,29 @@ UnitBlueprint { RULEUCC_Transport = false, }, FactionName = 'Nomads', - Icon = 'amph', + Icon = 'land', + OrderOverrides = { + RULEUTC_SpecialToggle = { + bitmapId = 'toggle-weapon-air', + helpText = 'toggle_weapon_no_air', + }, + }, TechLevel = 'RULEUTL_Basic', - UnitName = 'Orbis', + ToggleCaps = { + RULEUTC_WeaponToggle = true, + }, + UnitName = 'Barrager', UnitWeight = 1, }, Intel = { VisionRadius = 20, }, Interface = { - HelpText = 'Tank', + HelpText = 'Mobile Anti-Air Gun', }, LifeBarHeight = 0.075, - LifeBarOffset = 0.4, - LifeBarSize = 0.65, + LifeBarOffset = 0.3, + LifeBarSize = 0.6, Physics = { BankingSlope = 0, BuildOnLayerCaps = { @@ -228,114 +187,269 @@ UnitBlueprint { LAYER_Water = false, }, DragCoefficient = 0.2, - Elevation = 0.34, - MaxAcceleration = 3.2, - MaxBrake = 3.2, - MaxSpeed = 3.2, + MaxAcceleration = 3, + MaxBrake = 3, + MaxSpeed = 3, MaxSpeedReverse = 0, MaxSteerForce = 10, - MeshExtentsX = 0.75, - MeshExtentsY = 0.5, - MeshExtentsZ = 0.8, + MeshExtentsX = 0.4, + MeshExtentsY = 0.45, + MeshExtentsZ = 0.6, MinSpeedPercent = 0, - MotionType = 'RULEUMT_Hover', - RotateBodyWhileMoving = true, + MotionType = 'RULEUMT_Land', RotateOnSpot = true, - WaterSpeedMultiplier = 0.9, - TurnFacingRate = 120, - TurnRadius = 0, - TurnRate = 85, + RotateOnSpotThreshold = 0.5, + TurnRadius = 5, + TurnRate = 80, }, - SelectionCenterOffsetY = -0.1, - SelectionSizeX = 0.35, - SelectionSizeZ = 0.85, - SelectionThickness = 0.5, - SizeX = 0.65, - SizeY = 0.3, - SizeZ = 1.2, - StrategicIconName = 'icon_land1_directfire', + SelectionCenterOffsetZ = -0.02, + SelectionSizeX = 0.28, + SelectionSizeZ = 0.55, + SelectionThickness = 0.65, + SizeX = 0.5, + SizeY = 0.4, + SizeZ = 0.85, + StrategicIconName = 'icon_land1_aa_arty', StrategicIconSortPriority = 135, + Transport = { + CanFireFromTransport = false, + }, Veteran = { - Level1 = 3, - Level2 = 6, - Level3 = 9, - Level4 = 12, - Level5 = 15, + Level1 = 2, + Level2 = 4, + Level3 = 6, + Level4 = 8, + Level5 = 10, }, Weapon = { { AboveWaterTargetsOnly = true, + ArtilleryShieldBlocks = true, + BombardParticipant = true, + BombardSwingTurret = true, + BombardTurretRotationSpeed = 1, Audio = { Fire = Sound { - Bank = 'NomadsWeapons', - Cue = 'ParticleBlaster_Medium', + Bank = 'URLWeapon', + Cue = 'URL0402_Missile_Nanite', LodCutoff = 'Weapon_LodCutoff', }, }, - BallisticArc = 'RULEUBA_LowArc', - DamageFriendly = false, + BallisticArc = 'RULEUBA_HighArc', + CannotAttackGround = false, CollideFriendly = false, - Damage = 45, + Damage = 150, + DamageFriendly = false, + DamageRadius = 1.5, DamageType = 'Normal', - DisplayName = 'Particle blaster', + DisplayName = 'Artillery Rockets', FireTargetLayerCapsTable = { Land = 'Land|Water|Seabed', Water = 'Land|Water|Seabed', }, - FiringTolerance = 2, - LeadTarget = true, - Label = 'MainGun', - MaxRadius = 18, - MuzzleSalvoDelay = 0, - MuzzleSalvoSize = 1, - MuzzleVelocity = 28, - ProjectileId = '/projectiles/NParticleBlast1/NParticleBlast1_proj.bp', - ProjectileLifetimeUsesMultiplier = 1.15, - ProjectilesPerOnFire = 1, + FiringRandomness = 0.5, + FiringTolerance = 3, + Label = 'ArtilleryGun', + MaxRadius = 30, + MinRadius = 5, + MuzzleSalvoDelay = 0.1, + MuzzleSalvoSize = 2, + MuzzleVelocity = 14, + MuzzleVelocityReduceDistance = 28, + ProjectileId = '/projectiles/NArtilleryRocket1/NArtilleryRocket1_proj.bp', + ProjectilesPerOnFire = 2, RackBones = { { MuzzleBones = { - 'muzzle', + 'muzzle.001', + 'muzzle.002', }, - RackBone = 'muzzle', + RackBone = 'barrel', }, }, - RackFireTogether = true, - RackRecoilDistance = -0.4, - RackReloadTimeout = 10, + RackFireTogether = false, + RackRecoilDistance = 0, + RackReloadTimeout = 0, RackSalvoChargeTime = 0, RackSalvoReloadTime = 0, RackSalvoSize = 1, RackSlavedToTurret = false, - RangeCategory = 'UWRC_DirectFire', - RateOfFire = 0.67, - TargetCheckInterval = 1, + RangeCategory = 'UWRC_IndirectFire', + RateOfFire = 0.15, + StopOnPrimaryWeaponBusy = true, + TargetCheckInterval = 0.5, TargetPriorities = { 'SPECIALHIGHPRI', - 'TECH1 MOBILE', - 'TECH2 MOBILE', - 'TECH3 MOBILE', 'STRUCTURE DEFENSE', 'SPECIALLOWPRI', 'ALLUNITS', }, TargetRestrictDisallow = 'UNTARGETABLE', + ToggleWeapon = 'AAGun', TrackingRadius = 1.15, - TurretBoneMuzzle = 'muzzle', + TurretBoneMuzzle = 'muzzle.001', + TurretBonePitch = 'barrel', + TurretBoneYaw = 'turret', + TurretPitch = 45, + TurretPitchRange = 90, + TurretPitchSpeed = 180, + TurretYaw = 0, + TurretYawRange = 180, + TurretYawSpeed = 90, + Turreted = true, + WeaponCategory = 'Artillery', + WeaponRepackTimeout = 0, + WeaponUnpacks = false, + }, + { + AlwaysRecheckTarget = true, + Audio = { + Fire = Sound { + Bank = 'URLWeapon', + Cue = 'URL0402_Missile_Nanite', + LodCutoff = 'Weapon_LodCutoff', + }, + }, + BallisticArc = 'RULEUBA_None', + CannotAttackGround = true, + CollideFriendly = false, + Damage = 25, --31,25dps + DamageType = 'Normal', + DisplayName = 'Rocket (AA)', + EffectiveRadius = 0, + FireTargetLayerCapsTable = { + Land = 'Air', + }, + FiringRandomness = 0, + FiringTolerance = 0.5, + Label = 'AAGun', + MaxRadius = 32, + MuzzleSalvoDelay = 0, + MuzzleSalvoSize = 1, + MuzzleVelocity = 45, + ProjectileId = '/projectiles/NRocketProj1/NRocketProj1_proj.bp', + ProjectileLifetimeUsesMultiplier = 1.75, + ProjectilesPerOnFire = 1, + RackBones = { + { + MuzzleBones = { + 'muzzle.001', + }, + RackBone = 'barrel', + }, + { + MuzzleBones = { + 'muzzle.002', + }, + RackBone = 'barrel', + }, + }, + RackFireTogether = false, + RackRecoilDistance = -0.15, + RackReloadTimeout = 0, + RackSalvoChargeTime = 0, + RackSalvoReloadTime = 0, + RackSalvoSize = 1, + RackSlavedToTurret = true, + RangeCategory = 'UWRC_AntiAir', + RateOfFire = 1.25, + TargetCheckInterval = 0.3, + TargetPriorities = { + 'SPECIALHIGHPRI', + 'AIR MOBILE HIGHPRIAIR', + 'AIR MOBILE TECH3 BOMBER', + 'AIR MOBILE BOMBER', + 'AIR MOBILE GROUNDATTACK', + 'AIR MOBILE TRANSPORTATION', + 'AIR MOBILE', + 'SPECIALLOWPRI', + 'ALLUNITS', + }, + TargetRestrictDisallow = 'UNTARGETABLE', + ToggleWeapon = 'ArtilleryGun', + TrackingRadius = 1.4, + TurretBoneMuzzle = 'muzzle.001', TurretBonePitch = 'barrel', TurretBoneYaw = 'turret', TurretDualManipulators = false, - TurretPitch = 0, - TurretPitchRange = 80, - TurretPitchSpeed = 60, + TurretPitch = 45, + TurretPitchRange = 90, + TurretPitchSpeed = 180, TurretYaw = 0, TurretYawRange = 180, - TurretYawSpeed = 100, + TurretYawSpeed = 180, Turreted = true, - WeaponCategory = 'Direct Fire', + UseFiringSolutionInsteadOfAimBone = true, + WeaponCategory = 'Anti Air', WeaponRepackTimeout = 0, WeaponUnpacks = false, }, + { + AlwaysRecheckTarget = true, + BallisticArc = 'RULEUBA_None', + CannotAttackGround = true, + BeamCollisionDelay = 0.2, + BeamLifetime = 0, + CollideFriendly = false, + ContinuousBeam = true, + Damage = 0, + DamageFriendly = false, + DamageType = 'Normal', + DisplayName = 'Targeting Laser', + FireTargetLayerCapsTable = { + Land = 'Air', + }, + Label = 'TargetPainter', + MaxRadius = 32, + MuzzleSalvoDelay = 0, + MuzzleSalvoSize = 1, + PreferPrimaryWeaponTarget = true, + ProjectileLifetimeUsesMultiplier = 1.15, + RackBones = { + { + MuzzleBones = { + 'muzzle.001', + }, + RackBone = 'barrel', + }, + }, + RackFireTogether = false, + RackRecoilDistance = 0, + RackReloadTimeout = 0, + RackSalvoChargeTime = 0, + RackSalvoReloadTime = 0, + RackSalvoSize = 1, + RackSlavedToTurret = false, + RateOfFire = 10, + ReTargetOnMiss = true, + TargetCheckInterval = 0.1, + TargetPriorities = { + 'SPECIALHIGHPRI', + 'AIR MOBILE HIGHPRIAIR', + 'AIR MOBILE TECH3 BOMBER', + 'AIR MOBILE BOMBER', + 'AIR MOBILE GROUNDATTACK', + 'AIR MOBILE TRANSPORTATION', + 'AIR MOBILE', + 'SPECIALLOWPRI', + 'ALLUNITS', + }, + TargetRestrictDisallow = 'UNTARGETABLE', + TrackingRadius = 1.4, + TurretBoneMuzzle = 'muzzle.001', + TurretBonePitch = 'barrel', + TurretBoneYaw = 'turret', + TurretDualManipulators = false, + TurretPitch = 0, + TurretPitchRange = 180, + TurretPitchSpeed = 180, + TurretYaw = 0, + TurretYawRange = 180, + TurretYawSpeed = 180, + Turreted = true, + UseFiringSolutionInsteadOfAimBone = true, + WeaponCategory = 'Anti Air', + }, }, Wreckage = { Blueprint = '/props/DefaultWreckage/DefaultWreckage_prop.bp', From 4f1ceb04b45d259d09af92658e1311ccb47b6c9f Mon Sep 17 00:00:00 2001 From: Apofenas <35565415+Apofenas@users.noreply.github.com> Date: Sat, 27 Oct 2018 16:56:22 +0900 Subject: [PATCH 22/42] Assasin buff --- units/INU1008/INU1008_unit.bp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/units/INU1008/INU1008_unit.bp b/units/INU1008/INU1008_unit.bp index e07b2906..0c7d0f75 100644 --- a/units/INU1008/INU1008_unit.bp +++ b/units/INU1008/INU1008_unit.bp @@ -113,8 +113,8 @@ UnitBlueprint { WeaponExhaustAnimation = '/units/INU1008/INU1008_Exhaust_Vent.sca', }, Economy = { - BuildCostEnergy = 330, - BuildCostMass = 66, + BuildCostEnergy = 300, + BuildCostMass = 60, BuildTime = 330, TeleportEnergyMod = 0.15, TeleportMassMod = 1, @@ -246,7 +246,7 @@ UnitBlueprint { RackSalvoSize = 1, RackSlavedToTurret = false, RangeCategory = 'UWRC_DirectFire', - RateOfFire = 0.111, + RateOfFire = 0.165, RenderFireClock = true, TargetCheckInterval = 2.5, TargetPriorities = { From 448b166ddbea20a03ab4e95a454d1d305d1013bd Mon Sep 17 00:00:00 2001 From: Apofenas <35565415+Apofenas@users.noreply.github.com> Date: Sat, 27 Oct 2018 16:57:35 +0900 Subject: [PATCH 23/42] MML change --- units/INU2003/INU2003_Script.lua | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/units/INU2003/INU2003_Script.lua b/units/INU2003/INU2003_Script.lua index 6f5507c9..3d36e95e 100644 --- a/units/INU2003/INU2003_Script.lua +++ b/units/INU2003/INU2003_Script.lua @@ -1,6 +1,5 @@ -- T2 missile launcher -local AddBombardModeToUnit = import('/lua/nomadsutils.lua').AddBombardModeToUnit local Buff = import('/lua/sim/buff.lua') local SupportedArtilleryWeapon = import('/lua/nomadsutils.lua').SupportedArtilleryWeapon local NAmphibiousUnit = import('/lua/nomadsunits.lua').NAmphibiousUnit @@ -11,8 +10,6 @@ local SlowHover = import('/lua/defaultunits.lua').SlowHoverLandUnit TacticalMissileWeapon1 = SupportedArtilleryWeapon( TacticalMissileWeapon1 ) -NAmphibiousUnit = AddBombardModeToUnit(NAmphibiousUnit) - INU2003 = Class(NAmphibiousUnit, SlowHover) { Weapons = { MainGun = Class(TacticalMissileWeapon1) { @@ -77,25 +74,6 @@ INU2003 = Class(NAmphibiousUnit, SlowHover) { return NAmphibiousUnit.OnLand(self) end, - SetBombardmentMode = function(self, enable, changedByTransport) - NAmphibiousUnit.SetBombardmentMode(self, enable, changedByTransport) - self:SetScriptBit('RULEUTC_WeaponToggle', enable) - end, - - OnScriptBitSet = function(self, bit) - NAmphibiousUnit.OnScriptBitSet(self, bit) - if bit == 1 then - self.SetBombardmentMode(self, true, false) - end - end, - - OnScriptBitClear = function(self, bit) - NAmphibiousUnit.OnScriptBitClear(self, bit) - if bit == 1 then - self.SetBombardmentMode(self, false, false) - end - end, - } TypeClass = INU2003 From 40fdadcb649d6d860d3e5fb649fe6a15d2478225 Mon Sep 17 00:00:00 2001 From: Apofenas <35565415+Apofenas@users.noreply.github.com> Date: Sat, 27 Oct 2018 16:58:08 +0900 Subject: [PATCH 24/42] MML change --- units/INU2003/INU2003_unit.bp | 38 ++++++++++++++--------------------- 1 file changed, 15 insertions(+), 23 deletions(-) diff --git a/units/INU2003/INU2003_unit.bp b/units/INU2003/INU2003_unit.bp index 40da0f1d..e08264db 100644 --- a/units/INU2003/INU2003_unit.bp +++ b/units/INU2003/INU2003_unit.bp @@ -2,8 +2,6 @@ UnitBlueprint { AI = { - BombardModeCheckRadius = 8, - BombardModeCheckUnits = 4, }, Audio = { AmbientMove = Sound { @@ -82,7 +80,6 @@ UnitBlueprint { Abilities = { 'Amphibious', 'Attacks from under water', - 'Area bombardment', 'Supported Artillery Gun', }, BuildEffect = { @@ -93,13 +90,20 @@ UnitBlueprint { IconFadeInZoom = 130, LODs = { { - LODCutoff = 100, + AlbedoName = '/units/INU2003/INU2003_Albedo.dds', + LODCutoff = 130, + MeshName = '/units/INU2003/INU2003_LOD0.scm', + NormalsName = '/units/INU2003/INU2003_normalsTS.dds', Scrolling = true, ShaderName = 'NomadsUnit', + SpecularName = '/units/INU2003/INU2003_SpecTeam.dds', }, { + AlbedoName = '/units/INU2003/INU2003_lod1_Albedo.dds', LODCutoff = 215, + MeshName = '/units/INU2003/INU2003_LOD1.scm', ShaderName = 'NomadsUnit', + SpecularName = '/units/INU2003/INU2003_lod1_SpecTeam.dds', }, }, }, @@ -164,14 +168,9 @@ UnitBlueprint { FactionName = 'Nomads', Icon = 'amph', OrderOverrides = { - RULEUTC_WeaponToggle = { - bitmapId = 'toggle-bombardmode', - helpText = 'toggle_bombardmode', - }, }, TechLevel = 'RULEUTL_Advanced', ToggleCaps = { - RULEUTC_WeaponToggle = true, }, UnitName = 'Avalanche', UnitWeight = 1, @@ -242,10 +241,8 @@ UnitBlueprint { }, }, BallisticArc = 'RULEUBA_HighArc', - BombardParticipant = true, - BombardSwingTurret = false, CollideFriendly = false, - Damage = 200, + Damage = 150, DamageFriendly = false, DamageRadius = 1.75, DamageType = 'Normal', @@ -262,13 +259,13 @@ UnitBlueprint { Label = 'MainGun', MaxRadius = 60, MaxRadiusUnderWater = 45, - MinRadius = 5, + MinRadius = 15, MuzzleChargeDelay = 0, MuzzleSalvoDelay = 0, - MuzzleSalvoSize = 2, + MuzzleSalvoSize = 4, MuzzleVelocity = 19, MuzzleVelocityReduceDistance = 1, - ProjectilesPerOnFire = 2, + ProjectilesPerOnFire = 4, ProjectileId = '/projectiles/NTacticalMissile1_HighArc/NTacticalMissile1_HighArc_proj.bp', ProjectileLifetime = 36, ProjectileLifetimeUsesMultiplier = 5, @@ -277,15 +274,10 @@ UnitBlueprint { MuzzleBones = { 'muzzle.001', 'muzzle.002', - }, - RackBone = 'recoil.001', - }, - { - MuzzleBones = { 'muzzle.003', 'muzzle.004', }, - RackBone = 'recoil.002', + RackBone = 'recoil.001', }, }, RackFireTogether = false, @@ -296,7 +288,7 @@ UnitBlueprint { RackSalvoSize = 1, RackSlavedToTurret = false, RangeCategory = 'UWRC_IndirectFire', - RateOfFire = 0.125, + RateOfFire = 0.07, RenderFireClock = true, TargetCheckInterval = 1, TargetPriorities = { @@ -310,7 +302,7 @@ UnitBlueprint { TurretBoneMuzzle = 'muzzle.001', TurretBonePitch = 'barrel', TurretBoneYaw = 'turret', - TurretPitch = 45, + TurretPitch = 120, TurretPitchRange = 100, TurretPitchSpeed = 70, TurretYaw = 0, From 00ead0142638d96c8375408e102c7001557436c1 Mon Sep 17 00:00:00 2001 From: Apofenas <35565415+Apofenas@users.noreply.github.com> Date: Sat, 27 Oct 2018 16:58:54 +0900 Subject: [PATCH 25/42] Bombard remove --- units/INU3003/INU3003_Script.lua | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/units/INU3003/INU3003_Script.lua b/units/INU3003/INU3003_Script.lua index 29c75c18..393516d9 100644 --- a/units/INU3003/INU3003_Script.lua +++ b/units/INU3003/INU3003_Script.lua @@ -1,10 +1,8 @@ -- T2 EMP tank -local AddBombardModeToUnit = import('/lua/nomadsutils.lua').AddBombardModeToUnit local NLandUnit = import('/lua/nomadsunits.lua').NLandUnit local EMPGun = import('/lua/nomadsweapons.lua').EMPGun -NLandUnit = AddBombardModeToUnit( NLandUnit ) INU3003 = Class(NLandUnit) { Weapons = { @@ -12,25 +10,6 @@ INU3003 = Class(NLandUnit) { FxMuzzleFlash = import('/lua/nomadseffecttemplate.lua').EMPGunMuzzleFlash_Tank, }, }, - - SetBombardmentMode = function(self, enable, changedByTransport) - NLandUnit.SetBombardmentMode(self, enable, changedByTransport) - self:SetScriptBit('RULEUTC_WeaponToggle', enable) - end, - - OnScriptBitSet = function(self, bit) - NLandUnit.OnScriptBitSet(self, bit) - if bit == 1 then - NLandUnit.SetBombardmentMode(self, true, false) - end - end, - - OnScriptBitClear = function(self, bit) - NLandUnit.OnScriptBitClear(self, bit) - if bit == 1 then - NLandUnit.SetBombardmentMode(self, false, false) - end - end, } -TypeClass = INU3003 \ No newline at end of file +TypeClass = INU3003 From fa2a6c419314ab97ec1d0491e3b3a753a7d69588 Mon Sep 17 00:00:00 2001 From: Apofenas <35565415+Apofenas@users.noreply.github.com> Date: Sat, 27 Oct 2018 16:59:28 +0900 Subject: [PATCH 26/42] Dominator rebalance --- units/INU3003/INU3003_unit.bp | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/units/INU3003/INU3003_unit.bp b/units/INU3003/INU3003_unit.bp index 0ea0882c..91637b85 100644 --- a/units/INU3003/INU3003_unit.bp +++ b/units/INU3003/INU3003_unit.bp @@ -2,8 +2,6 @@ UnitBlueprint { AI = { - BombardModeCheckRadius = 8, - BombardModeCheckUnits = 4, }, Audio = { AmbientMove = Sound { @@ -71,10 +69,7 @@ UnitBlueprint { Description = 'EMP Tank', Display = { Abilities = { - 'Area bombardment', 'EMP', --- 'Orbital protection', --- 'Orbital strike on wreck', }, BuildEffect = { ExtendsFront = 0.13, @@ -155,14 +150,9 @@ UnitBlueprint { FactionName = 'Nomads', Icon = 'land', OrderOverrides = { - RULEUTC_WeaponToggle = { - bitmapId = 'toggle-bombardmode', - helpText = 'toggle_bombardmode', - }, }, TechLevel = 'RULEUTL_Advanced', ToggleCaps = { - RULEUTC_WeaponToggle = true, }, UnitName = 'Dominator', UnitWeight = 1, @@ -231,8 +221,6 @@ UnitBlueprint { }, }, BallisticArc = 'RULEUBA_LowArc', - BombardParticipant = true, - BombardSwingTurret = false, Buffs = { { Add = { @@ -283,6 +271,8 @@ UnitBlueprint { DamageToShields = 600, DamageType = 'Normal', DisplayName = 'EMPactor', + EnergyDrainPerSecond = 150, + EnergyRequired = 450, FireTargetLayerCapsTable = { Land = 'Land|Water|Seabed', }, From 0bb806766c76f6b645f8f4d71a07dfd0607fb016 Mon Sep 17 00:00:00 2001 From: Apofenas <35565415+Apofenas@users.noreply.github.com> Date: Sat, 27 Oct 2018 17:00:15 +0900 Subject: [PATCH 27/42] New ability --- units/INU3004/INU3004_Script.lua | 59 ++++++++++++++++++++++++++------ 1 file changed, 49 insertions(+), 10 deletions(-) diff --git a/units/INU3004/INU3004_Script.lua b/units/INU3004/INU3004_Script.lua index 845995f3..ae3109f6 100644 --- a/units/INU3004/INU3004_Script.lua +++ b/units/INU3004/INU3004_Script.lua @@ -3,24 +3,63 @@ local NLandUnit = import('/lua/nomadsunits.lua').NLandUnit local ArtilleryWeapon = import('/lua/nomadsweapons.lua').ArtilleryWeapon local Utilities = import('/lua/utilities.lua') -local AddAnchorAbilty = import('/lua/nomadsutils.lua').AddAnchorAbilty local SupportedArtilleryWeapon = import('/lua/nomadsutils.lua').SupportedArtilleryWeapon -NLandUnit = AddAnchorAbilty( NLandUnit ) +local SeraphimWeapons = import('/lua/seraphimweapons.lua') +local EffectUtil = import('/lua/EffectUtilities.lua') --added for effects + +local DirectWeapon = SupportedArtilleryWeapon( ArtilleryWeapon ) ArtilleryWeapon = SupportedArtilleryWeapon( ArtilleryWeapon ) + +--ArtilleryWeapon = SupportedArtilleryWeapon(ArtilleryWeapon) + + + + INU3004 = Class(NLandUnit) { Weapons = { - MainGun = Class(ArtilleryWeapon) {}, + SniperGun = Class(DirectWeapon) { + SetOnTransport = function(self, transportstate) + ArtilleryGun.SetOnTransport(self, transportstate) + self.unit:SetScriptBit('RULEUTC_WeaponToggle', false) + end, + }, + ArtilleryGun = Class(ArtilleryWeapon) {}, }, - - EnableSpecialToggle = function(self) - self:EnableAnchor(self) + + OnCreate = function(self) + NLandUnit.OnCreate(self) + self:SetWeaponEnabledByLabel('ArtilleryGun', false) + + local bp = self:GetBlueprint().Weapon + self.ArtilleryRange = bp[1].MaxRadius + self.SniperRange = bp[2].MaxRadius end, + + OnScriptBitSet = function(self, bit) + NLandUnit.OnScriptBitClear(self, bit) + if bit == 1 then + local bp = self:GetBlueprint() + self:SetSpeedMult(bp.Physics.LandSpeedMultiplier * 0.75) + self:SetWeaponEnabledByLabel('ArtilleryGun', true) + self:SetWeaponEnabledByLabel('SniperGun', false) + self:GetWeaponByLabel('TargetTracker'):ChangeMaxRadius(self.SniperRange) + self:GetWeaponManipulatorByLabel('ArtilleryGun'):SetHeadingPitch(self:GetWeaponManipulatorByLabel('SniperGun'):GetHeadingPitch()) + end + end, - DisableSpecialToggle = function(self) - self:DisableAnchor(self) - end, + OnScriptBitClear = function(self, bit) + NLandUnit.OnScriptBitSet(self, bit) + if bit == 1 then + local bp = self:GetBlueprint() + self:SetSpeedMult(bp.Physics.LandSpeedMultiplier) + self:SetWeaponEnabledByLabel('ArtilleryGun', false) + self:SetWeaponEnabledByLabel('SniperGun', true) + self:GetWeaponByLabel('TargetTracker'):ChangeMaxRadius(self.ArtilleryRange) + self:GetWeaponManipulatorByLabel('SniperGun'):SetHeadingPitch(self:GetWeaponManipulatorByLabel('ArtilleryGun'):GetHeadingPitch()) + end + end, } -TypeClass = INU3004 \ No newline at end of file +TypeClass = INU3004 From e2fc7de409a33120ce6079729057d275099e35cc Mon Sep 17 00:00:00 2001 From: Apofenas <35565415+Apofenas@users.noreply.github.com> Date: Sat, 27 Oct 2018 17:00:55 +0900 Subject: [PATCH 28/42] T3 arty rebalance --- units/INU3004/INU3004_unit.bp | 141 +++++++++++++++++++++++++++++----- 1 file changed, 123 insertions(+), 18 deletions(-) diff --git a/units/INU3004/INU3004_unit.bp b/units/INU3004/INU3004_unit.bp index 770b5f6f..2e0fb195 100644 --- a/units/INU3004/INU3004_unit.bp +++ b/units/INU3004/INU3004_unit.bp @@ -1,10 +1,8 @@ -- T3 heavy mobile artilery UnitBlueprint { - Abilities = { - Anchor = { - Buff = 'AnchorModeImmobilizeAddRange', - }, + AI = { + GuardScanRadius = 90, }, Audio = { Activate = Sound { @@ -66,17 +64,19 @@ UnitBlueprint { AirThreatLevel = 0, ArmorType = 'Normal', EconomyThreatLevel = 0, - Health = 900, - MaxHealth = 900, + Health = 1600, + MaxHealth = 1600, RegenRate = 0, SubThreatLevel = 0, SurfaceThreatLevel = 24, }, Description = 'Mobile Heavy Artillery', Display = { - Abilities = { - 'Anchor' + Abilities = { + 'Deploys', + 'Supported Artillery Gun', }, + AnimationOpen = '/units/INU3004/INU3004_aunpack.sca', BuildEffect = { ExtendsFront = 0.27, ExtendsRear = 0.1, @@ -133,9 +133,9 @@ UnitBlueprint { UniformScale = 0.16, }, Economy = { - BuildCostEnergy = 8000, - BuildCostMass = 800, - BuildTime = 4300, + BuildCostEnergy = 9600, + BuildCostMass = 960, + BuildTime = 5000, TeleportEnergyMod = 0.15, TeleportMassMod = 1, TeleportTimeMod = 0.01, @@ -160,14 +160,14 @@ UnitBlueprint { FactionName = 'Nomads', Icon = 'land', OrderOverrides = { - RULEUTC_SpecialToggle = { - bitmapId = 'toggle-anchor', - helpText = 'toggle_anchor', + RULEUTC_WeaponToggle = { + bitmapId = 'toggle-bombardmode', + helpText = 'toggle_bombardmode', }, }, TechLevel = 'RULEUTL_Secret', ToggleCaps = { - RULEUTC_SpecialToggle = true, + RULEUTC_WeaponToggle = true, }, UnitName = 'Mauler', UnitWeight = 1, @@ -192,6 +192,7 @@ UnitBlueprint { LAYER_Water = false, }, DragCoefficient = 0.2, + LandSpeedMultiplier = 1, MaxAcceleration = 2.5, MaxBrake = 2.5, MaxSpeed = 2.5, @@ -228,6 +229,33 @@ UnitBlueprint { Level5 = 45, }, Weapon = { + { -- special dummy weapon to make the unit stop a certain distance away + Damage = 0, + DamageFriendly = false, + FireTargetLayerCapsTable = { --what the unit will stop for, seabed is important too + Land = 'Land|Water|Seabed', + Water = 'Land|Water|Seabed', + }, + Label = 'TargetTracker', + MaxRadius = 100, --same range as long range gun + RackBones = { + { + MuzzleBones = { + 'INU3004', -- when moving to new unit, update these to something that exists on the unit + }, + RackBone = 'INU3004', + }, + }, + RateOfFire = 0.5, + TargetCheckInterval = 1, + TargetPriorities = { + 'ALLUNITS', + }, + TargetRestrictDisallow = 'UNTARGETABLE', + TrackingRadius = 1.2, + Turreted = false, + SlavedToBody = false, + }, { AboveWaterTargetsOnly = true, ArtilleryShieldBlocks = true, @@ -249,9 +277,10 @@ UnitBlueprint { Land = 'Land|Water|Seabed', }, FiringRandomness = 1.5, - FiringTolerance = 1, - Label = 'MainGun', - MaxRadius = 80, + FiringTolerance = 10, + IgnoreIfDisabled = true, + Label = 'ArtilleryGun', + MaxRadius = 90, MinRadius = 0, MuzzleSalvoDelay = 0, MuzzleSalvoSize = 1, @@ -304,6 +333,82 @@ UnitBlueprint { Turreted = true, WeaponCategory = 'Artillery', }, + { + AboveWaterTargetsOnly = true, + ArtilleryShieldBlocks = true, + Audio = { + Fire = Sound { + Bank = 'NomadsWeapons', + Cue = 'ParticleBlaster_Heavy', + LodCutoff = 'Weapon_LodCutoff', + }, + }, + BallisticArc = 'RULEUBA_LowArc', + CollideFriendly = false, + Damage = 500, + DamageFriendly = true, + DamageRadius = 5, + DamageType = 'Normal', + DisplayName = 'Particle blast artillery', + FireTargetLayerCapsTable = { + Land = 'Land|Water|Seabed', + }, + FiringRandomness = 1.5, + FiringTolerance = 1, + IgnoreIfDisabled = true, + Label = 'SniperGun', + MaxRadius = 80, + MinRadius = 0, + MuzzleSalvoDelay = 0, + MuzzleSalvoSize = 1, + MuzzleVelocity = 24, + ProjectileId = '/projectiles/NParticleBlastArtilleryShell1/NParticleBlastArtilleryShell1_proj.bp', + ProjectileLifetime = 20, + ProjectilesPerOnFire = 1, + RackBones = { + { + MuzzleBones = { + 'muzzle', + }, + RackBone = 'recoil', + TelescopeBone = 'muzzle', + TelescopeRecoilDistance = -1, + }, + }, + RackFireTogether = false, + RackRecoilDistance = -2.7, + RackReloadTimeout = 0, + RackSalvoChargeTime = 0, + RackSalvoReloadTime = 0, + RackSalvoSize = 1, + RackSlavedToTurret = false, + RangeCategory = 'UWRC_DirectFire', + RateOfFire = 0.133, + RenderFireClock = true, + TargetCheckInterval = 1, + TargetPriorities = { + 'TECH1 MOBILE', + 'TECH2 MOBILE', + 'TECH3 MOBILE', + 'SPECIALHIGHPRI', + 'STRUCTURE DEFENSE', + 'SPECIALLOWPRI', + 'ALLUNITS', + }, + TargetRestrictDisallow = 'UNTARGETABLE', + TurretBoneMuzzle = 'muzzle', + TurretBonePitch = 'barrel', + TurretBoneYaw = 'turret', + TurretDualManipulators = false, + TurretPitch = 30, + TurretPitchRange = 45, + TurretPitchSpeed = 20, + TurretYaw = 0, + TurretYawRange = 180, + TurretYawSpeed = 35, + Turreted = true, + WeaponCategory = 'Direct Fire', + }, }, Wreckage = { Blueprint = '/props/DefaultWreckage/DefaultWreckage_prop.bp', From 9c8103b344a8076f782b4ad3eac7a6796844b7cc Mon Sep 17 00:00:00 2001 From: Apofenas <35565415+Apofenas@users.noreply.github.com> Date: Sat, 27 Oct 2018 17:01:50 +0900 Subject: [PATCH 29/42] T3 rebalance --- units/INU3009/INU3009_unit.bp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/units/INU3009/INU3009_unit.bp b/units/INU3009/INU3009_unit.bp index d58e11b0..c3519304 100644 --- a/units/INU3009/INU3009_unit.bp +++ b/units/INU3009/INU3009_unit.bp @@ -125,7 +125,7 @@ UnitBlueprint { }, Economy = { BuildCostEnergy = 12800, - BuildCostMass = 960, + BuildCostMass = 1060, BuildTime = 4800, }, General = { @@ -181,11 +181,11 @@ UnitBlueprint { }, DragCoefficient = 0.2, Elevation = 0, - MaxAcceleration = 2.8, - MaxBrake = 2.8, - MaxSpeed = 2.8, - MaxSpeedReverse = 2.8, - MaxSteerForce = 2.8, + MaxAcceleration = 2.6, + MaxBrake = 2.6, + MaxSpeed = 2.6, + MaxSpeedReverse = 2.6, + MaxSteerForce = 2.6, MeshExtentsX = 0.8, MeshExtentsY = 0.65, MeshExtentsZ = 1.25, @@ -231,7 +231,7 @@ UnitBlueprint { BallisticArc = 'RULEUBA_LowArc', CollideFriendly = false, Damage = 800, - DamageRadius = 0, + DamageRadius = 2, DamageFriendly = false, DamageType = 'Normal', DisplayName = 'Plasma cannon', @@ -266,7 +266,7 @@ UnitBlueprint { -- TurretBoneDualManipSwitchDelay = 0.1, }, }, - RackFireTogether = false, + RackFireTogether = true, RackRecoilDistance = -1, RackReloadTimeout = 10, RackSalvoChargeTime = 0, @@ -274,7 +274,7 @@ UnitBlueprint { RackSalvoSize = 1, RackSlavedToTurret = false, RangeCategory = 'UWRC_DirectFire', - RateOfFire = 0.4, + RateOfFire = 0.25, TargetCheckInterval = 0.2, TargetPriorities = { 'SPECIALHIGHPRI', From 959263ef606bccc5c92755e56bf21190cac2d223 Mon Sep 17 00:00:00 2001 From: Apofenas <35565415+Apofenas@users.noreply.github.com> Date: Sat, 27 Oct 2018 17:02:42 +0900 Subject: [PATCH 30/42] Bullfrog change --- units/INU4002/INU4002_Script.lua | 36 -------------------------------- 1 file changed, 36 deletions(-) diff --git a/units/INU4002/INU4002_Script.lua b/units/INU4002/INU4002_Script.lua index f56417e4..1eb9716a 100644 --- a/units/INU4002/INU4002_Script.lua +++ b/units/INU4002/INU4002_Script.lua @@ -1,6 +1,5 @@ -- experimental hover unit bullfrog -local AddBombardModeToUnit = import('/lua/nomadsutils.lua').AddBombardModeToUnit local NExperimentalHoverLandUnit = import('/lua/nomadsunits.lua').NExperimentalHoverLandUnit local PlasmaCannon = import('/lua/nomadsweapons.lua').PlasmaCannon local AnnihilatorCannon1 = import('/lua/nomadsweapons.lua').AnnihilatorCannon1 @@ -13,8 +12,6 @@ local GetRandomInt = import('/lua/utilities.lua').GetRandomInt local Utilities = import('/lua/utilities.lua') local SlowHover = import('/lua/defaultunits.lua').SlowHoverLandUnit -NExperimentalHoverLandUnit = AddBombardModeToUnit( NExperimentalHoverLandUnit ) - INU4002 = Class(NExperimentalHoverLandUnit, SlowHover) { Weapons = { @@ -89,12 +86,6 @@ INU4002 = Class(NExperimentalHoverLandUnit, SlowHover) { self:ForkThread(self.HeadRotationThread) end, - OnBombardmentModeChanged = function( self, enabled, changedByTransport ) - NExperimentalHoverLandUnit.OnBombardmentModeChanged(self, enabled, changedByTransport) - self:CalcGattlingRotationSpeed() - self:ActivateGattlingRotation( self.GattlingCannonActive ) - end, - CalcGattlingRotationSpeed = function(self) local wep = self:GetWeaponByLabel('FrontGun') if wep then @@ -102,14 +93,6 @@ INU4002 = Class(NExperimentalHoverLandUnit, SlowHover) { local wepBp = wep:GetBlueprint() local rof = wepBp.RateOfFire or 1 - -- check bombardment mode values - if self.BombardmentMode and wepBp.BombardDisable then - self.GattlingRotSpeed = 0 - return - elseif self.BombardmentMode and wepBp.BombardParticipant then - rof = wep.CurrentROF or rof - end - rof = 10 / math.floor( 10 / rof) self.GattlingRotSpeed = rof * 120 -- every rof-time turn 120, or one-third (3 barrels) @@ -186,25 +169,6 @@ INU4002 = Class(NExperimentalHoverLandUnit, SlowHover) { end end, - SetBombardmentMode = function(self, enable, changedByTransport) - NExperimentalHoverLandUnit.SetBombardmentMode(self, enable, changedByTransport) - self:SetScriptBit('RULEUTC_WeaponToggle', enable) - end, - - OnScriptBitSet = function(self, bit) - NExperimentalHoverLandUnit.OnScriptBitSet(self, bit) - if bit == 1 then - NExperimentalHoverLandUnit.SetBombardmentMode(self, true, false) - end - end, - - OnScriptBitClear = function(self, bit) - NExperimentalHoverLandUnit.OnScriptBitClear(self, bit) - if bit == 1 then - NExperimentalHoverLandUnit.SetBombardmentMode(self, false, false) - end - end, - CrushDuringDescent = function(self) -- This is a WOF event which is in here cause I like WOF! Sorry, I can't be crushed during sinking! return false From 820a0578fad2ffc6f08043110359be48da8bdfdc Mon Sep 17 00:00:00 2001 From: Apofenas <35565415+Apofenas@users.noreply.github.com> Date: Sat, 27 Oct 2018 17:03:15 +0900 Subject: [PATCH 31/42] Bullfrog change --- units/INU4002/INU4002_unit.bp | 41 +++++++++++++---------------------- 1 file changed, 15 insertions(+), 26 deletions(-) diff --git a/units/INU4002/INU4002_unit.bp b/units/INU4002/INU4002_unit.bp index 9bda45f3..8b022e80 100644 --- a/units/INU4002/INU4002_unit.bp +++ b/units/INU4002/INU4002_unit.bp @@ -3,8 +3,6 @@ UnitBlueprint { AI = { AttackAngle = 1, - BombardModeCheckRadius = 10, - BombardModeCheckUnits = 5, TargetBones = { 'INU4002', 'FrontTurret_Yaw', @@ -91,9 +89,9 @@ UnitBlueprint { AirThreatLevel = 45, ArmorType = 'Experimental', EconomyThreatLevel = 200, - Health = 78000, - MaxHealth = 78000, - RegenRate = 15, + Health = 50000, + MaxHealth = 50000, + RegenRate = 50, SubThreatLevel = 0, SurfaceThreatLevel = 450, }, @@ -101,7 +99,6 @@ UnitBlueprint { Display = { Abilities = { 'Anti-Air', - 'Area bombardment', 'Hover', 'Massive', 'Volatile', @@ -301,14 +298,9 @@ UnitBlueprint { FactionName = 'Nomads', Icon = 'amph', OrderOverrides = { - RULEUTC_WeaponToggle = { - bitmapId = 'toggle-bombardmode', - helpText = 'toggle_bombardmode', - }, }, TechLevel = 'RULEUTL_Secret', ToggleCaps = { - RULEUTC_WeaponToggle = true, }, UnitName = 'Bullfrog', UnitWeight = 1, @@ -336,8 +328,8 @@ UnitBlueprint { DragCoefficient = 0.2, Elevation = 0.4, MaxAcceleration = 2, - MaxBrake = 2, - MaxSpeed = 2, + MaxBrake = 1.75, + MaxSpeed = 1.75, MaxSpeedReverse = 2, MaxSteerForce = 2, -- MeshExtentsX = 0.75, @@ -346,13 +338,13 @@ UnitBlueprint { MinSpeedPercent = 0, MotionType = 'RULEUMT_Hover', WaterSpeedMultiplier = 0.9, - RotateBodyWhileMoving = false, + RotateBodyWhileMoving = true, SkirtOffsetX = -1, SkirtOffsetZ = -3, SkirtSizeX = 7, SkirtSizeZ = 11, TurnFacingRate = 40, - RotateOnSpot = true, + RotateOnSpot = false, TurnRadius = 5, TurnRate = 40, }, @@ -384,11 +376,9 @@ UnitBlueprint { }, }, BallisticArc = 'RULEUBA_LowArc', - BombardParticipant = true, - BombardSwingTurret = false, CollideFriendly = false, Damage = 30, - DamageRadius = 2, + DamageRadius = 3, DamageType = 'Normal', DisplayName = 'Energy Cannon', DoTPulses = 10, @@ -399,10 +389,10 @@ UnitBlueprint { }, FiringRandomness = 0.3, FiringTolerance = 2, - InitialDamage = 1200, + InitialDamage = 1200, --1500 dps Label = 'MainGun', - MaxRadius = 65, - MinRadius = 8, + MaxRadius = 100, + MinRadius = 15, MuzzleSalvoDelay = 0, MuzzleSalvoSize = 2, MuzzleVelocity = 50, @@ -478,10 +468,8 @@ UnitBlueprint { }, }, BallisticArc = 'RULEUBA_LowArc', - BombardParticipant = true, - BombardSwingTurret = false, CollideFriendly = false, - Damage = 250, --1250dps/1875dps with bombard + Damage = 200, --1000dps DamageRadius = 0.5, DamageType = 'Normal', DisplayName = 'Annihilator Gattling Cannon', @@ -520,6 +508,7 @@ UnitBlueprint { RackSlavedToTurret = false, RangeCategory = 'UWRC_DirectFire', RateOfFire = 5, + SlavedToBody = true, TargetCheckInterval = 0.5, TargetPriorities = { 'SPECIALHIGHPRI', @@ -571,7 +560,7 @@ UnitBlueprint { HeadingArcCenter = 90, HeadingArcRange = 60, Label = 'SideGunLeft', - MaxRadius = 40, + MaxRadius = 50, MinRadius = 5, MuzzleSalvoDelay = 0, MuzzleSalvoSize = 1, @@ -645,7 +634,7 @@ UnitBlueprint { HeadingArcCenter = -90, HeadingArcRange = 60, Label = 'SideGunRight', - MaxRadius = 40, + MaxRadius = 50, MinRadius = 5, MuzzleSalvoDelay = 0, MuzzleSalvoSize = 1, From 44560ad235d70645c09c58c12b30981bc94a7e5d Mon Sep 17 00:00:00 2001 From: Apofenas <35565415+Apofenas@users.noreply.github.com> Date: Sat, 27 Oct 2018 17:05:17 +0900 Subject: [PATCH 32/42] Bomber nerf --- units/INA1003/INA1003_Script.lua | 1 - 1 file changed, 1 deletion(-) diff --git a/units/INA1003/INA1003_Script.lua b/units/INA1003/INA1003_Script.lua index 708c244c..919852a1 100644 --- a/units/INA1003/INA1003_Script.lua +++ b/units/INA1003/INA1003_Script.lua @@ -10,4 +10,3 @@ INA1003 = Class(NAirUnit) { } TypeClass = INA1003 - From 4938bd30c163866d41606b82cf96f2365b743b45 Mon Sep 17 00:00:00 2001 From: Apofenas <35565415+Apofenas@users.noreply.github.com> Date: Sat, 27 Oct 2018 17:05:49 +0900 Subject: [PATCH 33/42] Bomber nerf From 4c39013918d6415b7b5a4b7a9c802913eb6330d5 Mon Sep 17 00:00:00 2001 From: Apofenas <35565415+Apofenas@users.noreply.github.com> Date: Sat, 27 Oct 2018 17:18:58 +0900 Subject: [PATCH 34/42] Bomber nerf From 958ac1b7205dfc2ee30fdfb59cb608ce0b68c3b5 Mon Sep 17 00:00:00 2001 From: Apofenas <35565415+Apofenas@users.noreply.github.com> Date: Sat, 27 Oct 2018 17:19:33 +0900 Subject: [PATCH 35/42] Bomber nerf From 062be04bb338b06453c6d6c06385c61fc6384659 Mon Sep 17 00:00:00 2001 From: CookieNoob Date: Sat, 27 Oct 2018 11:52:36 +0200 Subject: [PATCH 36/42] remove unused function SuspendWeaponFire removes WeaponSuspended as it is not used in the entire mod and causes issues with ambiguous class definitions of the RackSalvoFireReadyState --- nomadhook/lua/sim/defaultweapons.lua | 48 ---------------------------- 1 file changed, 48 deletions(-) diff --git a/nomadhook/lua/sim/defaultweapons.lua b/nomadhook/lua/sim/defaultweapons.lua index 790b9c0e..f8069314 100644 --- a/nomadhook/lua/sim/defaultweapons.lua +++ b/nomadhook/lua/sim/defaultweapons.lua @@ -5,54 +5,6 @@ local oldDefaultProjectileWeapon = DefaultProjectileWeapon DefaultProjectileWeapon = Class(oldDefaultProjectileWeapon) { --- Another way to disable a weapon below, use SuspendWeaponFire(). This is less invasive and doesn't disable the aiming manip, etc. --- Had to change the RackSalvoFireReadyState for this though - - SuspendWeaponFire = function(self, bool) - self.WeaponSuspended = (bool == true) - end, - - OnCreate = function(self) - oldDefaultProjectileWeapon.OnCreate(self) - self.WeaponSuspended = false - end, - - RackSalvoFireReadyState = State (oldDefaultProjectileWeapon.RackSalvoFireReadyState) { - Main = function(self) - local bp = self:GetBlueprint() - if (bp.CountedProjectile == true and bp.WeaponUnpacks == true) then - self.unit:SetBusy(true) - else - self.unit:SetBusy(false) - end - self.WeaponCanFire = true - if self.EconDrain then - self.WeaponCanFire = false - WaitFor(self.EconDrain) - if self.EconDrain then - RemoveEconomyEvent(self.unit, self.EconDrain) - end - self.EconDrain = nil - self.WeaponCanFire = true - end - if self.WeaponSuspended then -- allowing weapons to be suspended - self.WeaponCanFire = false - while self.WeaponSuspended do - WaitTicks(1) - end - self.WeaponCanFire = true - end - if bp.CountedProjectile == true or bp.AnimationReload then - ChangeState(self, self.RackSalvoFiringState) - end - end, - - OnFire = function(self) - oldDefaultProjectileWeapon.RackSalvoFireReadyState.OnFire(self) - end, - }, - - OnWeaponFired = function(self) self:SwitchAimController() oldDefaultProjectileWeapon.OnWeaponFired(self) From 82303c17e085698002374cec42932cab93b73fcd Mon Sep 17 00:00:00 2001 From: CookieNoob Date: Sat, 27 Oct 2018 12:01:38 +0200 Subject: [PATCH 37/42] Revert "Bombard remove" This reverts commit bfde98ba596f7b15524f466c8876250bcd6a33dc. --- units/INS3004/INS3004_unit.bp | 126 +++++++++++++++++----------------- 1 file changed, 63 insertions(+), 63 deletions(-) diff --git a/units/INS3004/INS3004_unit.bp b/units/INS3004/INS3004_unit.bp index f0aba4b2..e3eefcf2 100644 --- a/units/INS3004/INS3004_unit.bp +++ b/units/INS3004/INS3004_unit.bp @@ -719,69 +719,69 @@ UnitBlueprint { RackBones = { { MuzzleBones = { --- T3 heavy destroyer - -local SupportedArtilleryWeapon = import('/lua/nomadsutils.lua').SupportedArtilleryWeapon -local AddNavalLights = import('/lua/nomadsutils.lua').AddNavalLights -local NSeaUnit = import('/lua/nomadsunits.lua').NSeaUnit -local AAGun = import('/lua/nomadsweapons.lua').AAGun -local PlasmaCannon = import('/lua/nomadsweapons.lua').PlasmaCannon -local StingrayCannon1 = import('/lua/nomadsweapons.lua').StingrayCannon1 -local UnderwaterRailgunWeapon1 = import('/lua/nomadsweapons.lua').UnderwaterRailgunWeapon1 -local RocketWeapon1 = import('/lua/nomadsweapons.lua').RocketWeapon1 - -NSeaUnit = AddNavalLights(NSeaUnit) - -PlasmaCannon = SupportedArtilleryWeapon( PlasmaCannon ) - -INS3004 = Class(NSeaUnit) { - Weapons = { - MainTurret1 = Class(PlasmaCannon) {}, - MainTurret2 = Class(PlasmaCannon) {}, - SideTurret1 = Class(StingrayCannon1) {}, - SideTurret2 = Class(StingrayCannon1) {}, - RailGun = Class(UnderwaterRailgunWeapon1) {}, - AATurret = Class(RocketWeapon1) { - PlayFxMuzzleSequence = function(self, muzzle) - RocketWeapon1.PlayFxMuzzleSequence(self, muzzle) - if muzzle == 'RocketLauncher_Muzzle1' then - self.unit:RotateAAturretRevolver(1) - else - self.unit:RotateAAturretRevolver(2) - end - end, + 'RocketLauncher_Muzzle1', + }, + RackBone = 'RocketLauncher_Revolver1', + }, + { + MuzzleBones = { + 'RocketLauncher_Muzzle2', + }, + RackBone = 'RocketLauncher_Revolver2', + }, + }, + RackFireTogether = false, + RackRecoilDistance = 0, + RackReloadTimeout = 0, + RackSalvoChargeTime = 0, + RackSalvoReloadTime = 0, + RackSalvoSize = 1, + RackSlavedToTurret = false, + RangeCategory = 'UWRC_AntiAir', + RateOfFire = 2.5, + TargetCheckInterval = 0.3, + TargetPriorities = { + 'SPECIALHIGHPRI', + 'EXPERIMENTAL', + 'AIR MOBILE HIGHPRIAIR', + 'AIR MOBILE TECH3 BOMBER', + 'AIR MOBILE BOMBER', + 'AIR MOBILE GROUNDATTACK', + 'AIR MOBILE TRANSPORTATION', + 'AIR MOBILE', + 'SPECIALLOWPRI', + 'ALLUNITS', + }, + TargetRestrictDisallow = 'UNTARGETABLE', + TrackingRadius = 1.4, + TurretBoneMuzzle = 'RocketLauncher_Pitch', + TurretBonePitch = 'RocketLauncher_Pitch', + TurretBoneYaw = 'RocketLauncher', + TurretDualManipulators = false, + TurretPitch = 40, + TurretPitchRange = 50, + TurretPitchSpeed = 180, + TurretYaw = 0, + TurretYawRange = 180, + TurretYawSpeed = 180, + Turreted = true, + WeaponCategory = 'Anti Air', + WeaponRepackTimeout = 0, + WeaponUnpacks = false, + }, + }, + Wreckage = { + Blueprint = '/props/DefaultWreckage/DefaultWreckage_prop.bp', + EnergyMult = 0, + HealthMult = 0.9, + MassMult = 0.9, + ReclaimTimeMultiplier = 1, + WreckageLayers = { + Air = false, + Land = false, + Seabed = true, + Sub = true, + Water = true, }, }, - - LightBone_Left = 'AntennaLeft3', - LightBone_Right = 'AntennaRight3', - HideTMD = true, - - OnCreate = function(self) - NSeaUnit.OnCreate(self) - - local AATurret = self:GetWeaponByLabel('AATurret') - if AATurret then - local bp = AATurret:GetBlueprint() - local RotateSpeed = 90 * (1 / ((1 / (bp.RateOfFire / table.getsize(bp.RackBones))) - 0.2)) -- calc how fast to rotate 90 degrees with current ROF and 0.2 sec free time - self.AATurretRotators = { - CreateRotator( self, bp.RackBones[1].RackBone, 'z', 0, RotateSpeed ), - CreateRotator( self, bp.RackBones[2].RackBone, 'z', 0, RotateSpeed ), - } - end - - if self.HideTMD then self:HideBone('TMD', true) end - end, - - RotateAAturretRevolver = function(self, revolver) - local angle = self.AATurretRotators[revolver]:GetCurrentAngle() - if revolver == 1 then - angle = angle + 90 - else - angle = angle - 90 - end - self.AATurretRotators[revolver]:SetGoal(angle) - end, } - -TypeClass = INS3004 From 44b3c361f7ef324ac15c56ee4b84a642ec451bf8 Mon Sep 17 00:00:00 2001 From: CookieNoob Date: Sat, 27 Oct 2018 12:12:18 +0200 Subject: [PATCH 38/42] remove bombardment ability in bp for INS3004 --- units/INS3004/INS3004_unit.bp | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/units/INS3004/INS3004_unit.bp b/units/INS3004/INS3004_unit.bp index e3eefcf2..dd64640f 100644 --- a/units/INS3004/INS3004_unit.bp +++ b/units/INS3004/INS3004_unit.bp @@ -2,7 +2,6 @@ UnitBlueprint { AI = { - AttackAngle = 45, GuardReturnRadius = 130, TargetBones = { 'INS3004', @@ -181,6 +180,13 @@ UnitBlueprint { }, Scale = 2.5, Type = 'RightFrontWake', + }, + { + Bones = { + 'wake', + }, + Scale = 1.5, + Type = 'BackWake', }, { Bones = { @@ -225,14 +231,9 @@ UnitBlueprint { FactionName = 'Nomads', Icon = 'sea', OrderOverrides = { - RULEUTC_WeaponToggle = { - bitmapId = 'toggle-bombardmode', - helpText = 'toggle_bombardmode', - }, }, TechLevel = 'RULEUTL_Secret', ToggleCaps = { - RULEUTC_WeaponToggle = true, }, UnitName = 'Juggernaut', UnitWeight = 1, @@ -244,7 +245,7 @@ UnitBlueprint { WaterVisionRadius = 50, }, Interface = { - HelpText = 'A more powerful version of the Destroyer. Has two long range cannons, two smaller cannons, AA defense and a submerged railgun.', + HelpText = 'This ship is a little bit thin in an armor, but carries great fire power of 2 heavy long range plasma turrets, two smaller stingray cannons, flak AA defense and a submerged railgun.', }, LifeBarHeight = 0.075, LifeBarOffset = 6.5, @@ -306,9 +307,6 @@ UnitBlueprint { }, }, BallisticArc = 'RULEUBA_LowArc', - BombardParticipant = true, - BombardSwingTurret = true, - BombardTurretRotationSpeed = 5, CollideFriendly = false, Damage = 200, DamageRadius = 2, @@ -356,7 +354,7 @@ UnitBlueprint { RangeCategory = 'UWRC_DirectFire', RateOfFire = 0.5, SlavedToBody = true, - SlavedToBodyArcRange = 100, + SlavedToBodyArcRange = 155, TargetCheckInterval = 3, TargetPriorities = { 'SPECIALHIGHPRI', @@ -391,9 +389,6 @@ UnitBlueprint { }, }, BallisticArc = 'RULEUBA_LowArc', - BombardParticipant = true, - BombardSwingTurret = true, - BombardTurretRotationSpeed = 5, CollideFriendly = false, Damage = 200, DamageRadius = 2, @@ -442,7 +437,7 @@ UnitBlueprint { RangeCategory = 'UWRC_DirectFire', RateOfFire = 0.5, SlavedToBody = true, - SlavedToBodyArcRange = 100, + SlavedToBodyArcRange = 155, TargetCheckInterval = 3, TargetPriorities = { 'SPECIALHIGHPRI', From d5a2eaf2d1b93e2f2ff59568b9fc9bf67d074774 Mon Sep 17 00:00:00 2001 From: CookieNoob Date: Sat, 27 Oct 2018 12:48:42 +0200 Subject: [PATCH 39/42] Revert "T3 arty rebalance" This reverts commit 3b32201708de82248cfbaa2826dbd8cf4c7a1f9d. --- units/INO2302/INO2302_unit.bp | 265 +++++++++++++++++++--------------- 1 file changed, 149 insertions(+), 116 deletions(-) diff --git a/units/INO2302/INO2302_unit.bp b/units/INO2302/INO2302_unit.bp index 5e037e73..2a3121c8 100644 --- a/units/INO2302/INO2302_unit.bp +++ b/units/INO2302/INO2302_unit.bp @@ -1,27 +1,18 @@ --- T3 Artillery Installation - UnitBlueprint { - Audio = { - DeathExplosion = Sound { - Bank = 'NomadsDestroy', - Cue = 'Destroy_Lrg_PreDestroy', - LodCutoff = 'UnitMove_LodCutoff', - }, - Destroyed = Sound { - Bank = 'NomadsDestroy', - Cue = 'Destroy_Lrg_Structure', - LodCutoff = 'UnitMove_LodCutoff', - }, - DoneBeingBuilt = Sound { - Bank = 'UEB', - Cue = 'UEB2302_Activate', - LodCutoff = 'UnitMove_LodCutoff', - }, - UISelection = Sound { - Bank = 'NomadsInterface', - Cue = 'Nomads_Select_Gun', - LodCutoff = 'UnitMove_LodCutoff', - }, + Air = { + BankFactor = 0.25, + BankForward = true, + CanFly = true, + HoverOverAttack = false, + KLift = 1, + KLiftDamping = 10, + KMove = 1, + KMoveDamping = 10, + KTurn = 1, + KTurnDamping = 10, + LiftFactor = 100, + MaxAirspeed = 4, + StartTurnDistance = 250, }, Buffs = { Regen = { @@ -32,145 +23,129 @@ UnitBlueprint { Level5 = 15, }, }, - BuildIconSortPriority = 140, + BuildIconSortPriority = 90, Categories = { - 'SELECTABLE', - 'BUILTBYTIER3ENGINEER', - 'BUILTBYTIER3COMMANDER', 'NOMADS', - 'STRUCTURE', - 'STRATEGIC', - 'TECH3', - 'INDIRECTFIRE', - 'ARTILLERY', - 'DRAGBUILD', - 'SIZE16', + 'UNTARGETABLE', + 'NOFORMATION', + 'SATELLITE', 'VISIBLETORECON', - 'RECLAIMABLE', - 'SHOWATTACKRETICLE', - 'OVERLAYINDIRECTFIRE', - 'SORTSTRATEGIC', + 'SELECTABLE', + 'HIGHALTAIR', }, - CollisionOffsetY = -0.25, Defense = { AirThreatLevel = 0, - ArmorType = 'Structure', - EconomyThreatLevel = 1190, - Health = 10000, - MaxHealth = 10000, + ArmorType = 'Normal', + EconomyThreatLevel = 0, + Health = 1000, + MaxHealth = 1000, RegenRate = 0, SubThreatLevel = 0, SurfaceThreatLevel = 0, }, - Description = 'Heavy Artillery Installation', + Description = 'Orbital Artillery Gun', Display = { - AnimationPermOpen = '/units/INB2302/INB2302_APermOpen.sca', + BuildMeshBlueprint = '/units/INO2302/INO2302_BuildMesh.bp', Mesh = { IconFadeInZoom = 130, LODs = { { + AlbedoName = '/units/INO2302/INO2302_Albedo.dds', LODCutoff = 500, - AlbedoName = '/units/INB2302/INB2302_Albedo.dds', - MeshName = '/units/INB2302/INB2302_LOD0.scm', - NormalsName = '/units/INB2302/INB2302_NormalsTS.dds', + MeshName = '/units/INO2302/INO2302_Lod0.scm', + NormalsName = '/units/INO2302/INO2302_NormalsTS.dds', ShaderName = 'NomadsUnit', - SpecularName = '/Units/INB2302/INB2302_SpecTeam.dds', + SpecularName = '/units/INO2302/INO2302_SpecTeam.dds', }, }, }, - PlaceholderMeshName = 'UXB0004', - SpawnRandomRotation = true, - Tarmacs = { - { - Albedo = 'Tarmacs/Tar12x_nomads_01_albedo', - DeathLifetime = 300, - FadeOut = 150, - Length = 12.8, - Normal = 'Tarmacs/Tar12x_nomads_01_normals', - Orientations = { - 0, + MovementEffects = { + BeamExhaust = { + Bones = { + 'Thruster1', + 'Thruster2', + 'Thruster3', + 'Thruster4', + 'Thruster5', + 'Thruster6', }, - RemoveWhenDead = false, - Width = 12.8, + Cruise = true, + Idle = true, }, }, - UniformScale = 0.48, + PlaceholderMeshName = 'UXL0004', + SpawnRandomRotation = true, + UniformScale = 0.15, }, Economy = { - BuildCostEnergy = 1000000, - BuildCostMass = 82000, - BuildTime = 32700, - RebuildBonusIds = { - 'inb2302', - }, - }, - Footprint = { - SizeX = 5, - SizeZ = 5, + BuildTime = 10000, }, General = { + CapCost = 0, Category = 'Strategic', Classification = 'RULEUC_Weapon', CommandCaps = { - RULEUCC_Attack = false, + RULEUCC_Attack = true, RULEUCC_CallTransport = false, RULEUCC_Capture = false, RULEUCC_Guard = false, - RULEUCC_Move = false, + RULEUCC_Move = true, RULEUCC_Nuke = false, RULEUCC_Patrol = false, RULEUCC_Reclaim = false, RULEUCC_Repair = false, - RULEUCC_RetaliateToggle = false, - RULEUCC_Stop = false, + RULEUCC_RetaliateToggle = true, + RULEUCC_Stop = true, RULEUCC_Transport = false, }, FactionName = 'Nomads', Icon = 'land', - SelectionPriority = 5, TechLevel = 'RULEUTL_Secret', - UnitName = 'Desolator', + UnitName = 'Orbital Artillery Gun', UnitWeight = 1, }, Intel = { - VisionRadius = 28, + VisionRadius = 0, }, Interface = { - HelpText = 'Heavy Artillery Installation', + HelpText = 'Orbital Artillery Gun', }, LifeBarHeight = 0.075, - LifeBarOffset = 2.35, - LifeBarSize = 5, + LifeBarOffset = 0.4, + LifeBarRender = false, + LifeBarSize = 0, Physics = { BankingSlope = 0, BuildOnLayerCaps = { LAYER_Air = false, - LAYER_Land = true, - LAYER_Orbit = false, + LAYER_Land = false, + LAYER_Orbit = true, LAYER_Seabed = false, LAYER_Sub = false, LAYER_Water = false, }, - DragCoefficient = 0.2, - FlattenSkirt = true, - MaxSteerForce = 0, - MeshExtentsX = 6, - MeshExtentsY = 3.75, - MeshExtentsZ = 9, + Elevation = 80, + FuelRechargeRate = 150, + FuelUseTime = 0, + MaxAcceleration = 100, + MaxSpeed = 10, + MaxSteerForce = 10, + MeshExtentsX = 0.9, + MeshExtentsY = 0.55, + MeshExtentsZ = 1.05, MinSpeedPercent = 0, - MotionType = 'RULEUMT_None', - SkirtOffsetX = -1.5, - SkirtOffsetZ = -1.5, - SkirtSizeX = 8, - SkirtSizeZ = 8, - TurnRate = 0, + MotionType = 'RULEUMT_Air', + RotateOnSpot = true, + RotateOnSpotThreshold = 0.5, + TurnRadius = 100, + TurnRate = 20, }, - SelectionSizeX = 4, - SelectionSizeZ = 4, - SelectionThickness = 0.3, - SizeX = 5, - SizeY = 3, - SizeZ = 5, + SelectionSizeX = 0.45, + SelectionSizeZ = 0.65, + SelectionThickness = 0.66, + SizeX = 0.65, + SizeY = 0.4, + SizeZ = 0.9, StrategicIconName = 'icon_structure3_artillery', StrategicIconSortPriority = 175, Veteran = { @@ -181,19 +156,77 @@ UnitBlueprint { Level5 = 150, }, Weapon = { - }, - Wreckage = { - Blueprint = '/props/DefaultWreckage/DefaultWreckage_prop.bp', - EnergyMult = 0, - HealthMult = 0.9, - MassMult = 0.9, - ReclaimTimeMultiplier = 1, - WreckageLayers = { - Air = false, - Land = true, - Seabed = false, - Sub = false, - Water = false, + { + AboveWaterTargetsOnly = true, + AimsStraightOnDisable = true, + ArtilleryShieldBlocks = true, + BallisticArc = 'RULEUBA_LowArc', + CannotAttackGround = false, + CollideFriendly = false, + Damage = 1250, + DamageFriendly = true, + DamageRadius = 6, + DamageType = 'Normal', + DisplayName = 'Micro singularity artillery', + EnergyDrainPerSecond = 5000, + EnergyRequired = 10000, + FireTargetLayerCapsTable = { + Air = 'Land|Water|Seabed', + Land = 'Land|Water|Seabed', + Water = 'Land|Water|Seabed', + }, + FiringRandomness = 0.7, + FiringTolerance = 0, + Label = 'MainGun', + MaxRadius = 825, + MinRadius = 150, + MuzzleSalvoDelay = 0.5, + MuzzleSalvoSize = 5, + MuzzleVelocity = 70, + ProjectileId = '/projectiles/NArtilleryShell2/NArtilleryShell2_proj.bp', + ProjectileLifetimeUsesMultiplier = 1.75, + ProjectilesPerOnFire = 1, + RackBones = { + { + MuzzleBones = { + 'Gun_Muzzle', + }, + RackBone = 'Gun_Pitch', + }, + }, + RackFireTogether = false, + RackRecoilDistance = 0, + RackReloadTimeout = 0, + RackSalvoChargeTime = 0, + RackSalvoReloadTime = 0, + RackSalvoSize = 1, + RackSlavedToTurret = false, + RangeCategory = 'UWRC_IndirectFire', + RateOfFire = 0.08, + RenderFireClock = true, + TargetCheckInterval = 60, + TargetPriorities = { + 'SPECIALHIGHPRI', + 'SPECIALLOWPRI', + 'ALLUNITS', + }, + TargetRestrictDisallow = 'UNTARGETABLE', + TrackingRadius = 1, + TurretBoneMuzzle = 'Gun_Muzzle', + TurretBonePitch = 'Gun_Pitch', + TurretBoneYaw = 'Gun_Yaw', + TurretDualManipulators = false, + TurretPitch = 0, + TurretPitchRange = 360, + TurretPitchSpeed = 10, + TurretYaw = 0, + TurretYawRange = 360, + TurretYawSpeed = 10, + Turreted = true, + UseFiringSolutionInsteadOfAimBone = true, + WeaponCategory = 'Direct Fire', + WeaponRepackTimeout = 0, + WeaponUnpacks = false, }, }, } From 0136b5c0a2af9c435ed6b6a5b59e9be8bc042a1a Mon Sep 17 00:00:00 2001 From: CookieNoob Date: Sat, 27 Oct 2018 13:03:49 +0200 Subject: [PATCH 40/42] Revert "Cruiser change" This reverts commit 7160e382cb6a91ce434315817844af907135665e. --- units/INS2002/INS2002_unit.bp | 90 ++++++++++++++++------------------- 1 file changed, 41 insertions(+), 49 deletions(-) diff --git a/units/INS2002/INS2002_unit.bp b/units/INS2002/INS2002_unit.bp index ccd3aa6f..1172c5b5 100644 --- a/units/INS2002/INS2002_unit.bp +++ b/units/INS2002/INS2002_unit.bp @@ -2,6 +2,7 @@ UnitBlueprint { AI = { + AttackAngle = 90, GuardReturnRadius = 130, InitialAutoMode = true, TargetBones = { @@ -65,7 +66,6 @@ UnitBlueprint { 'INTELLIGENCE', 'RADAR', 'SONAR', - 'SILO', 'OVERLAYANTIAIR', 'OVERLAYRADAR', 'OVERLAYSONAR', @@ -90,7 +90,6 @@ UnitBlueprint { 'EMP', 'Radar', 'Sonar', - 'Manual Launch', }, --[[ AnimationDeath = { { @@ -180,7 +179,6 @@ UnitBlueprint { Economy = { BuildCostEnergy = 18000, BuildCostMass = 2000, - BuildRate = 80, BuildTime = 8000, }, Footprint = { @@ -202,9 +200,9 @@ UnitBlueprint { RULEUCC_Reclaim = false, RULEUCC_Repair = false, RULEUCC_RetaliateToggle = true, - RULEUCC_SiloBuildTactical = true, + RULEUCC_SiloBuildTactical = false, RULEUCC_Stop = true, - RULEUCC_Tactical = true, + RULEUCC_Tactical = false, RULEUCC_Transport = false, }, FactionName = 'Nomads', @@ -257,13 +255,6 @@ UnitBlueprint { SizeX = 1.4, SizeY = 1.5, SizeZ = 6.5, - SpecialAbilities = { - LaunchTacMissile = { - AreaOfEffect = 2, - MaxRadius = 256, - MinRadius = 15, - }, - }, StrategicIconName = 'icon_ship2_antiair', StrategicIconSortPriority = 155, Veteran = { @@ -366,32 +357,25 @@ UnitBlueprint { }, BallisticArc = 'RULEUBA_None', CollideFriendly = false, - CountedProjectile = true, - Damage = 6000, - DamageFriendly = false, - DamageRadius = 2, + CountedProjectile = false, + Damage = 500, + DamageFriendly = true, + DamageRadius = 3, DamageType = 'Normal', - DisplayName = 'Tactical missile', + DisplayName = 'Fusion missile', FireTargetLayerCapsTable = { - Land = 'Land|Water|Seabed', Water = 'Land|Water|Seabed', }, - FiringTolerance = 5, - ForceSingleFire = true, - InitialProjectileStorage = 0, + FiringTolerance = 2, Label = 'CruiseMissile', - ManualFire = true, - MaxProjectileStorage = 4, - MaxRadius = 256, - MinRadius = 15, - MuzzleChargeDelay = 0.2, - MuzzleSalvoDelay = 0, - MuzzleSalvoSize = 1, + MaxRadius = 150, + MinRadius = 0, + MuzzleSalvoDelay = 0.3, + MuzzleSalvoSize = 3, MuzzleVelocity = 5, NotExclusive = true, ProjectileId = '/projectiles/NFusionMissile1/NFusionMissile1_proj.bp', - ProjectileLifetime = 80, - ProjectilesPerOnFire = 1, + ProjectileLifetime = 15, RackBones = { { MuzzleBones = { @@ -402,24 +386,33 @@ UnitBlueprint { }, RackFireTogether = false, RackRecoilDistance = 0, - RackReloadTimeout = 10, + RackReloadTimeout = 0, RackSalvoChargeTime = 0, RackSalvoReloadTime = 0, RackSalvoSize = 1, RackSlavedToTurret = false, RangeCategory = 'UWRC_IndirectFire', - RateOfFire = 1, + RateOfFire = 0.16, TargetCheckInterval = 5, TargetPriorities = { 'SPECIALHIGHPRI', + 'NAVAL MOBILE', 'SPECIALLOWPRI', 'ALLUNITS', }, TargetRestrictDisallow = 'UNTARGETABLE', + TrackingRadius = 1.15, + TurretDualManipulators = false, + TurretPitch = 0, + TurretPitchRange = 0, + TurretPitchSpeed = 0, + TurretYaw = 0, + TurretYawRange = 0, + TurretYawSpeed = 0, Turreted = false, WeaponCategory = 'Missile', - WeaponRepackTimeout = 5, - WeaponUnpacks = true, + WeaponRepackTimeout = 0, + WeaponUnpacks = false, }, { AboveWaterTargetsOnly = true, @@ -441,8 +434,8 @@ UnitBlueprint { }, AppliedToTarget = true, BuffType = 'STUN', - Duration = 4, - Radius = 4, + Duration = 2, + Radius = 1.3, TargetAllow = 'TECH1', TargetDisallow = 'UNSTUNABLE,TECH2,TECH3,EXPERIMENTAL,COMMAND,SHIELD,WALL', }, @@ -455,8 +448,8 @@ UnitBlueprint { }, AppliedToTarget = true, BuffType = 'STUN', - Duration = 2, - Radius = 4, + Duration = 1, + Radius = 1.3, TargetAllow = 'TECH2,SHIELD', TargetDisallow = 'UNSTUNABLE,TECH1,TECH3,EXPERIMENTAL,COMMAND,WALL', }, @@ -469,31 +462,30 @@ UnitBlueprint { }, AppliedToTarget = true, BuffType = 'STUN', - Duration = 1, - Radius = 4, + Duration = 0.5, + Radius = 1.3, TargetAllow = 'TECH3', TargetDisallow = 'UNSTUNABLE,TECH1,TECH2,EXPERIMENTAL,COMMAND,SHIELD,WALL', }, }, CollideFriendly = false, - Damage = 5, - DamageRadius = 4, - DamageToShields = 600, + Damage = 20, + DamageRadius = 1.3, + DamageToShields = 140, DamageType = 'Normal', DisplayName = 'EMPactor', - EnergyDrainPerSecond = 300, - EnergyRequired = 450, FireTargetLayerCapsTable = { Water = 'Land|Water|Seabed', }, - FiringRandomness = 1, + FiringRandomness = 0.4, FiringTolerance = 2, Label = 'GunTurret', - MaxRadius = 80, + MaxRadius = 75, MinRadius = 2, MuzzleSalvoDelay = 0, MuzzleSalvoSize = 2, MuzzleVelocity = 30, + NotExclusive = true, ProjectileId = '/projectiles/NEmpShell1/NEmpShell1_proj.bp', ProjectilesPerOnFire = 2, RackBones = { @@ -518,9 +510,9 @@ UnitBlueprint { RackSalvoSize = 1, RackSlavedToTurret = false, RangeCategory = 'UWRC_DirectFire', - RateOfFire = 0.5, + RateOfFire = 0.6667, SlavedToBody = true, - SlavedToBodyArcRange = 115, + SlavedToBodyArcRange = 120, TargetCheckInterval = 0.5, TargetPriorities = { 'SPECIALHIGHPRI', From e71f28b2c0c320cb1ecdc70a4dc56f5908057e2a Mon Sep 17 00:00:00 2001 From: CookieNoob Date: Sat, 27 Oct 2018 13:07:50 +0200 Subject: [PATCH 41/42] Revert "Cruiser missile change" This reverts commit 18390fe20467388aa352f370eaa448211e90a50e. --- projectiles/NFusionMissile1/NFusionMissile1_proj.bp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/projectiles/NFusionMissile1/NFusionMissile1_proj.bp b/projectiles/NFusionMissile1/NFusionMissile1_proj.bp index b76e3471..37cef1f4 100644 --- a/projectiles/NFusionMissile1/NFusionMissile1_proj.bp +++ b/projectiles/NFusionMissile1/NFusionMissile1_proj.bp @@ -24,8 +24,8 @@ ProjectileBlueprint { 'NOSPLASHDAMAGE', }, Defense = { - Health = 2, - MaxHealth = 2, + Health = 1, + MaxHealth = 1, }, Display = { CameraFollowTimeout = 5, @@ -46,11 +46,6 @@ ProjectileBlueprint { StrategicIconSize = 2, UniformScale = 1, }, - Economy = { - BuildCostEnergy = 3600, - BuildCostMass = 180, - BuildTime = 2400, - }, General = { Category = 'Artillery', EntityCategory = { @@ -76,7 +71,7 @@ ProjectileBlueprint { MaxZigZag = 0, TrackTarget = true, TrackTargetGround = true, - TurnRate = 100, + TurnRate = 200, UseGravity = false, VelocityAlign = true, ZigZagFrequency = 0, From beaa229d218d909c20cc6aa0083b1d1b275bbbb5 Mon Sep 17 00:00:00 2001 From: CookieNoob Date: Sat, 27 Oct 2018 13:07:53 +0200 Subject: [PATCH 42/42] Revert "Cruiser Missile change" This reverts commit d5858fe5e50f3c40d71c70cab4e325b44abf8339. --- projectiles/NFusionMissile1/NFusionMissile1_script.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/projectiles/NFusionMissile1/NFusionMissile1_script.lua b/projectiles/NFusionMissile1/NFusionMissile1_script.lua index 643e675a..9a0cc887 100644 --- a/projectiles/NFusionMissile1/NFusionMissile1_script.lua +++ b/projectiles/NFusionMissile1/NFusionMissile1_script.lua @@ -10,10 +10,9 @@ NFusionMissile1 = Class(FusionMissile) { end, StageThread = function(self) - WaitSeconds(1) - local bp = self:GetBlueprint().Physics - self:SetTurnRate(bp.TurnRate) + WaitSeconds(2.2) + self:SetTurnRate(self:GetBlueprint().Physics.TurnRate) end, } -TypeClass = NFusionMissile1 +TypeClass = NFusionMissile1 \ No newline at end of file