forked from FAForever/fa
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDEL0204_Script.lua
More file actions
56 lines (49 loc) · 2.28 KB
/
Copy pathDEL0204_Script.lua
File metadata and controls
56 lines (49 loc) · 2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
--#****************************************************************************
--#**
--#** File : /cdimage/units/DEL0204/DEL0204_script.lua
--#** Author(s): John Comes, David Tomandl, Jessica St. Croix, Matt Vainio
--#**
--#** Summary : UEF Mongoose Gatling Bot
--#**
--#** Copyright © 2005 Gas Powered Games, Inc. All rights reserved.
--#****************************************************************************
local TWalkingLandUnit = import('/lua/terranunits.lua').TWalkingLandUnit
local TWeapons = import('/lua/terranweapons.lua')
local TDFPlasmaCannonWeapon = TWeapons.TDFPlasmaCannonWeapon
local TIFFragLauncherWeapon = TWeapons.TDFFragmentationGrenadeLauncherWeapon
local EffectUtils = import('/lua/effectutilities.lua')
local Effects = import('/lua/effecttemplates.lua')
DEL0204 = Class(TWalkingLandUnit)
{
Weapons = {
GatlingCannon = Class(TDFPlasmaCannonWeapon)
{
PlayFxWeaponPackSequence = function(self)
if self.SpinManip then
self.SpinManip:SetTargetSpeed(0)
end
self.ExhaustEffects = EffectUtils.CreateBoneEffects(self.unit, 'Left_Arm_Barrel_Muzzle', self.unit.Army, Effects.WeaponSteam01)
TDFPlasmaCannonWeapon.PlayFxWeaponPackSequence(self)
end,
PlayFxRackSalvoChargeSequence = function(self)
if not self.SpinManip then
self.SpinManip = CreateRotator(self.unit, 'Left_Arm_Barrel', 'z', nil, 270, 180, 60)
self.unit.Trash:Add(self.SpinManip)
end
if self.SpinManip then
self.SpinManip:SetTargetSpeed(500)
end
TDFPlasmaCannonWeapon.PlayFxRackSalvoChargeSequence(self)
end,
PlayFxRackSalvoReloadSequence = function(self)
if self.SpinManip then
self.SpinManip:SetTargetSpeed(200)
end
self.ExhaustEffects = EffectUtils.CreateBoneEffects(self.unit, 'Left_Arm_Barrel_Muzzle', self.unit.Army, Effects.WeaponSteam01)
TDFPlasmaCannonWeapon.PlayFxRackSalvoChargeSequence(self)
end,
},
Grenade = Class(TIFFragLauncherWeapon) {}
},
}
TypeClass = DEL0204