Repo-wide formatting pass
This commit is contained in:
1 parent
20b5d31836
commit
62ade7ea45
291 files changed
+1405
-1423
No files matched your search
@@ -27,10 +27,10 @@ LAWARRIORH7 = Class(TAirUnit) {
|
||||
},
|
||||
|
||||
DestructionTicks = 250,
|
||||
EngineRotateBones = {'R_Engine', 'L_Engine', },
|
||||
EngineRotateBones = { 'R_Engine', 'L_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
|
||||
@@ -39,9 +39,9 @@ LAWARRIORH7 = 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)
|
||||
@@ -61,18 +61,19 @@ LAWARRIORH7 = 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,
|
||||
|
||||
}
|
||||
|
||||
TypeClass = LAWARRIORH7
|
||||
TypeClass = LAWARRIORH7
|
||||
Reference in new issue
Block a user