Repo-wide formatting pass
This commit is contained in:
1 parent
20b5d31836
commit
62ade7ea45
291 files changed
+1405
-1423
No files matched your search
@@ -22,75 +22,79 @@ SROROHAG = Class(TLandUnit) {
|
||||
self.unit:SetScriptBit('RULEUTC_WeaponToggle', false)
|
||||
end,
|
||||
},
|
||||
AAGun = Class(TDFHeavyPlasmaCannonWeapon)
|
||||
{
|
||||
PlayFxWeaponPackSequence = function(self)
|
||||
if self.SpinManip then
|
||||
self.SpinManip:SetTargetSpeed(0)
|
||||
end
|
||||
self.ExhaustEffects = EffectUtils.CreateBoneEffects( self.unit, 'Exhaust', self.unit:GetArmy(), Effects.WeaponSteam01 )
|
||||
TDFHeavyPlasmaCannonWeapon.PlayFxWeaponPackSequence(self)
|
||||
end,
|
||||
AAGun = Class(TDFHeavyPlasmaCannonWeapon)
|
||||
{
|
||||
PlayFxWeaponPackSequence = function(self)
|
||||
if self.SpinManip then
|
||||
self.SpinManip:SetTargetSpeed(0)
|
||||
end
|
||||
self.ExhaustEffects = EffectUtils.CreateBoneEffects(self.unit, 'Exhaust', self.unit:GetArmy(),
|
||||
Effects.WeaponSteam01)
|
||||
TDFHeavyPlasmaCannonWeapon.PlayFxWeaponPackSequence(self)
|
||||
end,
|
||||
|
||||
|
||||
PlayFxRackSalvoChargeSequence = function(self)
|
||||
if not self.SpinManip then
|
||||
self.SpinManip = CreateRotator(self.unit, 'Gun_Barrel', 'z', nil, 270, 180, 60)
|
||||
self.unit.Trash:Add(self.SpinManip)
|
||||
end
|
||||
|
||||
if self.SpinManip then
|
||||
self.SpinManip:SetTargetSpeed(500)
|
||||
end
|
||||
TDFHeavyPlasmaCannonWeapon.PlayFxRackSalvoChargeSequence(self)
|
||||
end,
|
||||
|
||||
|
||||
PlayFxRackSalvoReloadSequence = function(self)
|
||||
if self.SpinManip then
|
||||
self.SpinManip:SetTargetSpeed(200)
|
||||
end
|
||||
self.ExhaustEffects = EffectUtils.CreateBoneEffects( self.unit, 'Exhaust', self.unit:GetArmy(), Effects.WeaponSteam01 )
|
||||
TDFHeavyPlasmaCannonWeapon.PlayFxRackSalvoChargeSequence(self)
|
||||
end,
|
||||
},
|
||||
GroundGun = Class(TDFHeavyPlasmaCannonWeapon)
|
||||
{
|
||||
SetOnTransport = function(self, transportstate)
|
||||
TDFHeavyPlasmaCannonWeapon.SetOnTransport(self, transportstate)
|
||||
self.unit:SetScriptBit('RULEUTC_WeaponToggle', false)
|
||||
end,
|
||||
|
||||
PlayFxWeaponPackSequence = function(self)
|
||||
if self.SpinManip then
|
||||
self.SpinManip:SetTargetSpeed(0)
|
||||
end
|
||||
self.ExhaustEffects = EffectUtils.CreateBoneEffects( self.unit, 'Exhaust', self.unit:GetArmy(), Effects.WeaponSteam01 )
|
||||
TDFHeavyPlasmaCannonWeapon.PlayFxWeaponPackSequence(self)
|
||||
end,
|
||||
PlayFxRackSalvoChargeSequence = function(self)
|
||||
if not self.SpinManip then
|
||||
self.SpinManip = CreateRotator(self.unit, 'Gun_Barrel', 'z', nil, 270, 180, 60)
|
||||
self.unit.Trash:Add(self.SpinManip)
|
||||
end
|
||||
|
||||
|
||||
PlayFxRackSalvoChargeSequence = function(self)
|
||||
if not self.SpinManip then
|
||||
self.SpinManip = CreateRotator(self.unit, 'Gun_Barrel', 'z', nil, 270, 180, 60)
|
||||
self.unit.Trash:Add(self.SpinManip)
|
||||
end
|
||||
|
||||
if self.SpinManip then
|
||||
self.SpinManip:SetTargetSpeed(500)
|
||||
end
|
||||
TDFHeavyPlasmaCannonWeapon.PlayFxRackSalvoChargeSequence(self)
|
||||
end,
|
||||
|
||||
|
||||
PlayFxRackSalvoReloadSequence = function(self)
|
||||
if self.SpinManip then
|
||||
self.SpinManip:SetTargetSpeed(200)
|
||||
end
|
||||
self.ExhaustEffects = EffectUtils.CreateBoneEffects( self.unit, 'Exhaust', self.unit:GetArmy(), Effects.WeaponSteam01 )
|
||||
TDFHeavyPlasmaCannonWeapon.PlayFxRackSalvoChargeSequence(self)
|
||||
end,
|
||||
},
|
||||
if self.SpinManip then
|
||||
self.SpinManip:SetTargetSpeed(500)
|
||||
end
|
||||
TDFHeavyPlasmaCannonWeapon.PlayFxRackSalvoChargeSequence(self)
|
||||
end,
|
||||
|
||||
|
||||
PlayFxRackSalvoReloadSequence = function(self)
|
||||
if self.SpinManip then
|
||||
self.SpinManip:SetTargetSpeed(200)
|
||||
end
|
||||
self.ExhaustEffects = EffectUtils.CreateBoneEffects(self.unit, 'Exhaust', self.unit:GetArmy(),
|
||||
Effects.WeaponSteam01)
|
||||
TDFHeavyPlasmaCannonWeapon.PlayFxRackSalvoChargeSequence(self)
|
||||
end,
|
||||
},
|
||||
GroundGun = Class(TDFHeavyPlasmaCannonWeapon)
|
||||
{
|
||||
SetOnTransport = function(self, transportstate)
|
||||
TDFHeavyPlasmaCannonWeapon.SetOnTransport(self, transportstate)
|
||||
self.unit:SetScriptBit('RULEUTC_WeaponToggle', false)
|
||||
end,
|
||||
|
||||
PlayFxWeaponPackSequence = function(self)
|
||||
if self.SpinManip then
|
||||
self.SpinManip:SetTargetSpeed(0)
|
||||
end
|
||||
self.ExhaustEffects = EffectUtils.CreateBoneEffects(self.unit, 'Exhaust', self.unit:GetArmy(),
|
||||
Effects.WeaponSteam01)
|
||||
TDFHeavyPlasmaCannonWeapon.PlayFxWeaponPackSequence(self)
|
||||
end,
|
||||
|
||||
|
||||
PlayFxRackSalvoChargeSequence = function(self)
|
||||
if not self.SpinManip then
|
||||
self.SpinManip = CreateRotator(self.unit, 'Gun_Barrel', 'z', nil, 270, 180, 60)
|
||||
self.unit.Trash:Add(self.SpinManip)
|
||||
end
|
||||
|
||||
if self.SpinManip then
|
||||
self.SpinManip:SetTargetSpeed(500)
|
||||
end
|
||||
TDFHeavyPlasmaCannonWeapon.PlayFxRackSalvoChargeSequence(self)
|
||||
end,
|
||||
|
||||
|
||||
PlayFxRackSalvoReloadSequence = function(self)
|
||||
if self.SpinManip then
|
||||
self.SpinManip:SetTargetSpeed(200)
|
||||
end
|
||||
self.ExhaustEffects = EffectUtils.CreateBoneEffects(self.unit, 'Exhaust', self.unit:GetArmy(),
|
||||
Effects.WeaponSteam01)
|
||||
TDFHeavyPlasmaCannonWeapon.PlayFxRackSalvoChargeSequence(self)
|
||||
end,
|
||||
},
|
||||
},
|
||||
|
||||
OnCreate = function(self)
|
||||
@@ -98,25 +102,27 @@ SROROHAG = Class(TLandUnit) {
|
||||
self:SetWeaponEnabledByLabel('CLPL', false)
|
||||
self:SetWeaponEnabledByLabel('GroundGun', false)
|
||||
end,
|
||||
|
||||
|
||||
OnScriptBitSet = function(self, bit)
|
||||
TLandUnit.OnScriptBitSet(self, bit)
|
||||
if bit == 1 then
|
||||
if bit == 1 then
|
||||
self:SetWeaponEnabledByLabel('GroundGun', true)
|
||||
self:SetWeaponEnabledByLabel('AAGun', false)
|
||||
self:SetWeaponEnabledByLabel('CLPL', true)
|
||||
self:GetWeaponManipulatorByLabel('GroundGun'):SetHeadingPitch( self:GetWeaponManipulatorByLabel('AAGun'):GetHeadingPitch() )
|
||||
self:GetWeaponManipulatorByLabel('GroundGun'):SetHeadingPitch(self:GetWeaponManipulatorByLabel('AAGun')
|
||||
:GetHeadingPitch())
|
||||
end
|
||||
end,
|
||||
|
||||
OnScriptBitClear = function(self, bit)
|
||||
TLandUnit.OnScriptBitClear(self, bit)
|
||||
if bit == 1 then
|
||||
if bit == 1 then
|
||||
self:SetWeaponEnabledByLabel('GroundGun', false)
|
||||
self:SetWeaponEnabledByLabel('AAGun', true)
|
||||
self:SetWeaponEnabledByLabel('CLPL', false)
|
||||
self:GetWeaponManipulatorByLabel('AAGun'):SetHeadingPitch( self:GetWeaponManipulatorByLabel('GroundGun'):GetHeadingPitch() )
|
||||
self:GetWeaponManipulatorByLabel('AAGun'):SetHeadingPitch(self:GetWeaponManipulatorByLabel('GroundGun')
|
||||
:GetHeadingPitch())
|
||||
end
|
||||
end,
|
||||
}
|
||||
TypeClass = SROROHAG
|
||||
TypeClass = SROROHAG
|
||||
@@ -86,7 +86,7 @@ UnitBlueprint {
|
||||
},
|
||||
},
|
||||
},
|
||||
MovementEffects = {
|
||||
MovementEffects = {
|
||||
Land = {
|
||||
Effects = {
|
||||
{
|
||||
@@ -213,7 +213,7 @@ UnitBlueprint {
|
||||
Level5 = 80,
|
||||
},
|
||||
Weapon = {
|
||||
--#TURRET
|
||||
--#TURRET
|
||||
{
|
||||
AboveWaterTargetsOnly = true,
|
||||
AimsStraightOnDisable = true,
|
||||
@@ -394,7 +394,7 @@ UnitBlueprint {
|
||||
Land = 'Land|Water|Air',
|
||||
Water = 'Land|Water',
|
||||
Seabed = 'Water|Sub|Seabed',
|
||||
},
|
||||
},
|
||||
FiringRandomness = 0.3,
|
||||
FiringRandomnessWhileMoving = 1.5,
|
||||
FiringTolerance = 0,
|
||||
|
||||
Reference in new issue
Block a user