Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scathis rework #2686

28 changes: 28 additions & 0 deletions projectiles/CIFArtilleryProton01/CIFArtilleryProton01_script.lua
@@ -0,0 +1,28 @@
#
# Cybran Artillery Projectile
#
local CArtilleryProtonProjectile = import('/lua/cybranprojectiles.lua').CArtilleryProtonProjectile
local RandomFloat = import('/lua/utilities.lua').GetRandomFloat

CIFArtilleryProton01 = Class(CArtilleryProtonProjectile) {

OnImpact = function(self, targetType, targetEntity)
CArtilleryProtonProjectile.OnImpact(self, targetType, targetEntity)
local army = self:GetArmy()
CreateLightParticle( self, -1, army, 24, 12, 'glow_03', 'ramp_red_06' )
CreateLightParticle( self, -1, army, 18, 22, 'glow_03', 'ramp_antimatter_02' )
if targetType == 'Terrain' or targetType == 'Prop' then
CreateDecal( self:GetPosition(), RandomFloat(0.0,6.28), 'scorch_011_albedo', '', 'Albedo', 20, 20, 350, 200, army )
end
ForkThread(self.ForceThread, self, self:GetPosition())
self:ShakeCamera( 20, 3, 0, 1 )
end,

ForceThread = function(self, pos)
DamageArea(self, pos, 10, 1, 'Force', true)
WaitTicks(2)
DamageArea(self, pos, 10, 1, 'Force', true)
DamageRing(self, pos, 10, 15, 1, 'Fire', true)
end,
}
TypeClass = CIFArtilleryProton01
38 changes: 19 additions & 19 deletions units/URL0401/URL0401_unit.bp
Expand Up @@ -76,8 +76,8 @@ UnitBlueprint {
AirThreatLevel = 0,
ArmorType = 'Experimental',
EconomyThreatLevel = 0,
Health = 17500,
MaxHealth = 17500,
Health = 9000,
MaxHealth = 9000,
RegenRate = 0,
SubThreatLevel = 0,
SurfaceThreatLevel = 0,
Expand Down Expand Up @@ -170,9 +170,9 @@ UnitBlueprint {
UniformScale = 0.1,
},
Economy = {
BuildCostEnergy = 2000000,
BuildCostMass = 110000,
BuildTime = 80000,
BuildCostEnergy = 4000000,
BuildCostMass = 220000,
BuildTime = 240000,
TeleportEnergyMod = 0.15,
TeleportMassMod = 1,
TeleportTimeMod = 0.01,
Expand Down Expand Up @@ -226,7 +226,7 @@ UnitBlueprint {
},
DragCoefficient = 0.2,
LayerChangeOffsetHeight = -1,
MaxAcceleration = 1.5,
MaxAcceleration = 2.1,
MaxBrake = 1.5,
MaxSpeed = 1.5,
MaxSpeedReverse = 0,
Expand All @@ -240,7 +240,7 @@ UnitBlueprint {
SkirtSizeX = 8,
SkirtSizeZ = 8,
TurnRadius = 2,
TurnRate = 40,
TurnRate = 80,
},
SelectionSizeX = 4,
SelectionSizeZ = 5,
Expand Down Expand Up @@ -273,31 +273,31 @@ UnitBlueprint {
},
BallisticArc = 'RULEUBA_HighArc',
CollideFriendly = false,
Damage = 3000,
Damage =2000,
DamageFriendly = true,
DamageRadius = 7,
DamageRadius = 14,
DamageType = 'Normal',
DisplayName = 'Proton Artillery',
EnergyChargeForFirstShot = false,
EnergyDrainPerSecond = 2000,
EnergyRequired = 2000,
EnergyDrainPerSecond = 5000,
EnergyRequired = 5000,
FireTargetLayerCapsTable = {
Land = 'Land|Water|Seabed',
Water = 'Land|Water|Seabed',
},
FiringRandomness = 0.3,
FiringRandomness = 0.5,
FiringTolerance = 0,
Label = 'Gun01',
LeadTarget = true,
MaxRadius = 300,
MaxRadius = 30000,
MinRadius = 50,
MuzzleSalvoDelay = 0,
MuzzleSalvoSize = 1,
MuzzleSalvoDelay = 0.3,
MuzzleSalvoSize = 20,
MuzzleVelocity = 160,
MuzzleVelocityReduceDistance = 2350,
ProjectileId = '/projectiles/CIFArtilleryProton01/CIFArtilleryProton01_proj.bp',
ProjectileLifetime = 100,
ProjectilesPerOnFire = 1,
ProjectilesPerOnFire = 20,
RackBones = {
{
MuzzleBones = {
Expand All @@ -307,15 +307,15 @@ UnitBlueprint {
},
},
RackFireTogether = false,
RackRecoilDistance = -20,
RackRecoilDistance = 0,
RackReloadTimeout = 0,
RackSalvoChargeTime = 0,
RackSalvoFiresAfterCharge = false,
RackSalvoReloadTime = 0,
RackSalvoSize = 1,
RackSlavedToTurret = false,
RangeCategory = 'UWRC_IndirectFire',
RateOfFire = 0.53,
RateOfFire = 0.05,
TargetCheckInterval = 2,
TargetPriorities = {
'SPECIALHIGHPRI',
Expand All @@ -339,7 +339,7 @@ UnitBlueprint {
Turreted = true,
UseFiringSolutionInsteadOfAimBone = true,
WeaponCategory = 'Artillery',
WeaponRepackTimeout = 4,
WeaponRepackTimeout = 0.5,
WeaponUnpackAnimation = '/units/URL0401/URL0401_aopen.sca',
WeaponUnpackAnimationRate = 2.5,
WeaponUnpackAnimatorPrecedence = 0,
Expand Down