Repo-wide formatting pass
This commit is contained in:
1 parent
20b5d31836
commit
62ade7ea45
291 files changed
+1405
-1423
No files matched your search
@@ -26,10 +26,10 @@ LAKARNOV = Class(TAirUnit) {
|
||||
},
|
||||
|
||||
DestructionTicks = 250,
|
||||
EngineRotateBones = {'Front_Right_Engine', 'Front_Left_Engine', },
|
||||
EngineRotateBones = { 'Front_Right_Engine', 'Front_Left_Engine', },
|
||||
|
||||
OnStopBeingBuilt = function(self,builder,layer)
|
||||
TAirUnit.OnStopBeingBuilt(self,builder,layer)
|
||||
OnStopBeingBuilt = function(self, builder, layer)
|
||||
TAirUnit.OnStopBeingBuilt(self, builder, layer)
|
||||
self.EngineManipulators = {}
|
||||
|
||||
--# create the engine thrust manipulators
|
||||
@@ -38,9 +38,9 @@ LAKARNOV = Class(TAirUnit) {
|
||||
end
|
||||
|
||||
--# set up the thursting arcs for the engines
|
||||
for keys,values in self.EngineManipulators do
|
||||
for keys, values in self.EngineManipulators do
|
||||
--# XMAX,XMIN,YMAX,YMIN,ZMAX,ZMIN, TURNMULT, TURNSPEED
|
||||
values:SetThrustingParam( 0.0, 0.0, -0.1, 0.1, -0.0, 0.0, 1.0, 0.25 )
|
||||
values:SetThrustingParam(0.0, 0.0, -0.1, 0.1, -0.0, 0.0, 1.0, 0.25)
|
||||
end
|
||||
|
||||
self.LandingAnimManip = CreateAnimator(self)
|
||||
@@ -72,21 +72,22 @@ LAKARNOV = Class(TAirUnit) {
|
||||
end,
|
||||
|
||||
--# Override air destruction effects so we can do something custom here
|
||||
CreateUnitAirDestructionEffects = function( self, scale )
|
||||
self:ForkThread(self.AirDestructionEffectsThread, self )
|
||||
CreateUnitAirDestructionEffects = function(self, scale)
|
||||
self:ForkThread(self.AirDestructionEffectsThread, self)
|
||||
end,
|
||||
|
||||
AirDestructionEffectsThread = function( self )
|
||||
local numExplosions = math.floor( table.getn( self.AirDestructionEffectBones ) * 0.5 )
|
||||
AirDestructionEffectsThread = function(self)
|
||||
local numExplosions = math.floor(table.getn(self.AirDestructionEffectBones) * 0.5)
|
||||
for i = 0, numExplosions do
|
||||
explosion.CreateDefaultHitExplosionAtBone( self, self.AirDestructionEffectBones[util.GetRandomInt( 1, numExplosions )], 0.5 )
|
||||
WaitSeconds( util.GetRandomFloat( 0.2, 0.9 ))
|
||||
explosion.CreateDefaultHitExplosionAtBone(self,
|
||||
self.AirDestructionEffectBones[util.GetRandomInt(1, numExplosions)], 0.5)
|
||||
WaitSeconds(util.GetRandomFloat(0.2, 0.9))
|
||||
end
|
||||
end,
|
||||
|
||||
OnCreate = function(self)
|
||||
TAirUnit.OnCreate(self)
|
||||
--#CreateSlider(unit, bone, [goal_x, goal_y, goal_z, [speed,
|
||||
--#CreateSlider(unit, bone, [goal_x, goal_y, goal_z, [speed,
|
||||
self.Sliders = {}
|
||||
self.Sliders[1] = CreateSlider(self, 'Char01')
|
||||
self.Sliders[1]:SetGoal(0, 0, -35)
|
||||
@@ -99,7 +100,7 @@ LAKARNOV = Class(TAirUnit) {
|
||||
self.Trash:Add(v)
|
||||
end
|
||||
end,
|
||||
|
||||
|
||||
ExpandThread = function(self)
|
||||
if self.Sliders then
|
||||
for k, v in self.Sliders do
|
||||
@@ -115,4 +116,4 @@ LAKARNOV = Class(TAirUnit) {
|
||||
|
||||
}
|
||||
|
||||
TypeClass = LAKARNOV
|
||||
TypeClass = LAKARNOV
|
||||
@@ -287,7 +287,7 @@ UnitBlueprint {
|
||||
FireTargetLayerCapsTable = {
|
||||
Air = 'Land|Water|Seabed|Air',
|
||||
Land = 'Land|Water|Seabed|Air',
|
||||
},
|
||||
},
|
||||
FiringRandomness = 0.3,
|
||||
FiringRandomnessWhileMoving = 1.5,
|
||||
FiringTolerance = 0.1,
|
||||
@@ -358,7 +358,7 @@ UnitBlueprint {
|
||||
FireTargetLayerCapsTable = {
|
||||
Air = 'Land|Water|Seabed|Air',
|
||||
Land = 'Land|Water|Seabed|Air',
|
||||
},
|
||||
},
|
||||
FiringRandomness = 0.3,
|
||||
FiringRandomnessWhileMoving = 1.5,
|
||||
FiringTolerance = 0.1,
|
||||
|
||||
Reference in new issue
Block a user