Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #****************************************************************************
- #**
- #** File : /cdimage/units/UEA0303/UEA0303_script.lua
- #** Author(s): John Comes, David Tomandl, Jessica St. Croix
- #**
- #** Summary : UEF Supersonic Fighter Script
- #**
- #** Copyright © 2005 Gas Powered Games, Inc. All rights reserved.
- #****************************************************************************
- local TAirUnit = import('/lua/terranunits.lua').TAirUnit
- local TIFCarpetBombWeapon = import('/lua/terranweapons.lua').TIFCarpetBombWeapon
- local EffectTemplate = import('/lua/EffectTemplates.lua')
- local TAMPhalanxWeapon = import('/lua/terranweapons.lua').TAMPhalanxWeapon
- UEA0301 = Class(TAirUnit) {
- Weapons = {
- GatlingGun = Class(TAMPhalanxWeapon) {},
- Bomb = Class(TIFCarpetBombWeapon) {
- IdleState = State (TIFCarpetBombWeapon.IdleState) {
- Main = function(self)
- TIFCarpetBombWeapon.IdleState.Main(self)
- end,
- OnGotTarget = function(self)
- self.unit:SetBreakOffTriggerMult(2.0)
- self.unit:SetBreakOffDistanceMult(8.0)
- self.unit:SetSpeedMult(0.67)
- TIFCarpetBombWeapon.IdleState.OnGotTarget(self)
- end,
- },
- },
- OnGotTarget = function(self)
- self.unit:SetBreakOffTriggerMult(2.0)
- self.unit:SetBreakOffDistanceMult(8.0)
- self.unit:SetSpeedMult(0.67)
- TIFCarpetBombWeapon.OnGotTarget(self)
- end,
- OnLostTarget = function(self)
- self.unit:SetBreakOffTriggerMult(1.0)
- self.unit:SetBreakOffDistanceMult(1.0)
- self.unit:SetSpeedMult(1.0)
- TIFCarpetBombWeapon.OnLostTarget(self)
- end,
- },
- }
- TypeClass = UEA0301
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement