Initial commit

This commit is contained in:
cardboardbread committed 2026-09-18 05:35:15 -04:00
commit 74162a93be
1366 files changed
+81395

No files matched your search

Binary file not shown.
Binary file not shown.
+78
View File
@@ -0,0 +1,78 @@
#****************************************************************************
#**
#** File : /cdimage/units/FSWARRIORH7/FSWARRIORH7_script.lua
#** Author(s): John Comes, David Tomandl, Jessica St. Croix, Gordon Duclos, Andres Mendez, Kami, FuegoTigre
#**
#** Summary : Warrior H-7 Attack Helicopter Script
#**
#** Copyright © 2006 Gas Powered Games, Inc. All rights reserved.
#****************************************************************************
local TAirUnit = import('/lua/terranunits.lua').TAirUnit
local explosion = import('/lua/defaultexplosions.lua')
local util = import('/lua/utilities.lua')
local TDFGaussCannonWeapon = import('/lua/terranweapons.lua').TDFGaussCannonWeapon
local TSAMLauncher = import('/lua/terranweapons.lua').TSAMLauncher
FSWARRIORH7 = Class(TAirUnit) {
BeamExhaustCruise = '/effects/emitters/transport_thruster_beam_01_emit.bp',
BeamExhaustIdle = '/effects/emitters/transport_thruster_beam_02_emit.bp',
Weapons = {
AC2 = Class(TDFGaussCannonWeapon) {},
SRM4 = Class(TSAMLauncher) {},
},
DestructionTicks = 250,
EngineRotateBones = {'R_Engine', 'L_Engine', },
OnStopBeingBuilt = function(self,builder,layer)
TAirUnit.OnStopBeingBuilt(self,builder,layer)
self.EngineManipulators = {}
# create the engine thrust manipulators
for k, v in self.EngineRotateBones do
table.insert(self.EngineManipulators, CreateThrustController(self, "thruster", v))
end
# set up the thursting arcs for the engines
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 )
end
self.LandingAnimManip = CreateAnimator(self)
self.LandingAnimManip:SetPrecedence(0)
self.Trash:Add(self.LandingAnimManip)
self.LandingAnimManip:PlayAnim(self:GetBlueprint().Display.AnimationLand):SetRate(1)
self:ForkThread(self.ExpandThread)
end,
OnMotionVertEventChange = function(self, new, old)
TAirUnit.OnMotionVertEventChange(self, new, old)
if (new == 'Down') then
self.LandingAnimManip:SetRate(-1)
elseif (new == 'Up') then
self.LandingAnimManip:SetRate(1)
end
end,
# Override air destruction effects so we can do something custom here
CreateUnitAirDestructionEffects = function( self, scale )
self:ForkThread(self.AirDestructionEffectsThread, self )
end,
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 ))
end
end,
}
TypeClass = FSWARRIORH7
Binary file not shown.
Binary file not shown.
+430
View File
@@ -0,0 +1,430 @@
UnitBlueprint {
AI = {
TargetBones = {
'FSWARRIORH7_lod0',
},
},
Air = {
AutoLandTime = 1,
BankFactor = 0.1,
BankForward = false,
CanFly = true,
CirclingDirChangeFrequencySec = 1,
CirclingElevationChangeRatio = 0.25,
CirclingRadiusChangeMaxRatio = 0.9,
CirclingRadiusChangeMinRatio = 0.6,
CirclingRadiusVsAirMult = 0.66,
CirclingTurnMult = 3,
KLift = 3,
KLiftDamping = 2.5,
KMove = 0.8,
KMoveDamping = 2,
KTurn = 0.8,
KTurnDamping = 1.5,
LiftFactor = 7,
MaxAirspeed = 5.04,
MinAirspeed = 0,
StartTurnDistance = 5,
TransportHoverHeight = 2,
},
Audio = {
AirUnitWaterImpact = Sound {
Bank = 'Explosions',
Cue = 'Expl_Water_Lrg_01',
LodCutoff = 'UnitMove_LodCutoff',
},
AmbientMove = Sound {
Bank = 'UEA',
Cue = 'UEA0104_Move_Loop',
LodCutoff = 'UnitMove_LodCutoff',
},
DeathExplosion = Sound {
Bank = 'UEADestroy',
Cue = 'UEA_Destroy_Air_Killed',
LodCutoff = 'UnitMove_LodCutoff',
},
Destroyed = Sound {
Bank = 'UEADestroy',
Cue = 'UEA_Destroy_Lrg',
LodCutoff = 'UnitMove_LodCutoff',
},
Killed = Sound {
Bank = 'UEADestroy',
Cue = 'UEA_Destroy_Air_Killed',
LodCutoff = 'UnitMove_LodCutoff',
},
Landing = Sound {
Bank = 'UEA',
Cue = 'UEA0104_Move_Land',
LodCutoff = 'UnitMove_LodCutoff',
},
StartMove = Sound {
Bank = 'UEA',
Cue = 'UEA0104_Move_Start',
LodCutoff = 'UnitMove_LodCutoff',
},
StopMove = Sound {
Bank = 'UEA',
Cue = 'UEA0104_Move_Stop',
LodCutoff = 'UnitMove_LodCutoff',
},
Thruster = Sound {
Bank = 'UEA',
Cue = 'UEA0104_Move_Thruster',
LodCutoff = 'UnitMove_LodCutoff',
},
UISelection = Sound {
Bank = 'Interface',
Cue = 'UEF_Select_Air',
LodCutoff = 'UnitMove_LodCutoff',
},
},
AverageDensity = 1,
Buffs = {
Regen = {
Level1 = 0.01,
Level2 = 0.02,
Level3 = 0.05,
Level4 = 0.1,
Level5 = 0.2,
},
},
BuildIconSortPriority = 21,
Categories = {
'PRODUCTSC1',
'SELECTABLE',
'BUILTBYTIER1FACTORY',
'BUILTBYTIER2FACTORY',
'BUILTBYTIER3FACTORY',
'FS',
'MOBILE',
'AIR',
'TECH1',
'GROUNDATTACK',
'ANTIAIR',
'VISIBLETORECON',
'RECLAIMABLE',
'SHOWATTACKRETICLE',
'OVERLAYDIRECTFIRE',
},
CollisionOffsetY = -0.3,
Defense = {
AirThreatLevel = 295,
ArmorType = 'A_A_Standard',
EconomyThreatLevel = 0,
Health = 39,
MaxHealth = 39,
RegenRate = 0,
SubThreatLevel = 0,
SurfaceThreatLevel = 295,
},
Description = '<LOC FSWARRIORH7_desc>Warrior Attack Helicopter',
Display = {
Abilities = {
'<LOC ability_aa>Anti-Air',
'1x AC2 |-| Min: 120m Max: 720m',
'1x SRM4 |-| Max: 270m',
},
AnimationLand = '/units/FSWARRIORH7/FSWARRIORH7_atakeoff01.sca',
ForcedBuildSpin = 90,
LayerChangeEffects = {
AirLand = {
Effects = {
{
Bones = {
'L_Exhust',
'R_Exhust',
},
Offset = {
0,
0,
0,
},
Type = 'Landing01',
},
},
},
LandAir = {
Effects = {
{
Bones = {
'L_Exhust',
'R_Exhust',
},
Type = 'TakeOff01',
},
},
},
},
Mesh = {
IconFadeInZoom = 100,
LODs = {
{
LODCutoff = 200,
ShaderName = 'Unit',
},
},
},
MovementEffects = {
BeamExhaust = {
Bones = {
'L_Exhust',
'R_Exhust',
},
Cruise = true,
Idle = true,
},
},
PlaceholderMeshName = 'UXB0000',
SpawnRandomRotation = false,
UniformScale = 0.23,
},
Economy = {
BuildCostEnergy = 14750,
BuildCostMass = 295,
BuildTime = 1050,
},
Footprint = {
MaxSlope = 0.25,
SizeX = 1,
SizeZ = 2,
},
General = {
Category = 'Gunship',
Classification = 'RULEUC_MilitaryAircraft',
CommandCaps = {
RULEUCC_Attack = true,
RULEUCC_CallTransport = true,
RULEUCC_Capture = false,
RULEUCC_Dock = true,
RULEUCC_Guard = true,
RULEUCC_Move = true,
RULEUCC_Nuke = false,
RULEUCC_Patrol = true,
RULEUCC_Reclaim = false,
RULEUCC_Repair = false,
RULEUCC_RetaliateToggle = true,
RULEUCC_Stop = true,
RULEUCC_Transport = false,
},
FactionName = 'UEF',
Icon = 'air',
SelectionPriority = 2,
TechLevel = 'RULEUTL_basic',
UnitName = '<LOC FSWARRIORH7_name>Warrior',
UnitWeight = 1,
},
Intel = {
VisionRadius = 22.5,
},
Interface = {
HelpText = '<LOC FSWARRIORH7_help>Warrior',
},
LifeBarHeight = 0.075,
LifeBarOffset = 3,
LifeBarSize = 2,
Physics = {
BuildOnLayerCaps = {
LAYER_Air = true,
LAYER_Land = false,
LAYER_Orbit = false,
LAYER_Seabed = false,
LAYER_Sub = false,
LAYER_Water = false,
},
Elevation = 8,
FuelRechargeRate = 70,
FuelUseTime = 800,
MaxSpeed = 5.04,
MeshExtentsX = 2,
MeshExtentsY = 1,
MeshExtentsZ = 3,
MotionType = 'RULEUMT_Air',
},
SelectionSizeX = 0.46,
SelectionSizeZ = 0.75,
SelectionThickness = 0.19,
SizeX = 1,
SizeY = 1,
SizeZ = 2,
StrategicIconName = 'icon_gunship1_directfire',
StrategicIconSortPriority = 65,
Transport = {
AirClass = true,
TransportClass = 3,
},
UseOOBTestZoom = 200,
Veteran = {
Level1 = 5,
Level2 = 10,
Level3 = 20,
Level4 = 40,
Level5 = 80,
},
Weapon = {
{
AboveWaterTargetsOnly = true,
AlwaysRecheckTarget = true,
Audio = {
Fire = Sound {
Bank = 'UELWeapon',
Cue = 'UEL0202_Cannon_Dbl',
LodCutoff = 'Weapon_LodCutoff',
},
},
BallisticArc = 'RULEUBA_LowArc',
CannotAttackGround = false,
CollideFriendly = false,
Damage = 0.8,
DamageFriendly = false,
DamageType = 'D_Ammo',
DisplayName = 'AC2',
FireTargetLayerCapsTable = {
Air = 'Land|Water|Air',
Land = 'Land|Water|Air',
},
FiringRandomness = 0.3,
FiringRandomnessWhileMoving = 0.5,
#######change from 1.5 to 0.5 due to extreme inacurecy as unit always on the move in air.##
FiringTolerance = 1,
Label = 'AC2',
MaxRadius = 72,
MinRadius = 12,
MuzzleSalvoDelay = 0,
MuzzleSalvoSize = 1,
MuzzleVelocity = 30,
ProjectileId = '/projectiles/TDFGauss01/TDFGauss01_proj.bp',
ProjectileLifetimeUsesMultiplier = 2.5,
ProjectilesPerOnFire = 1,
RackBones = {
{
MuzzleBones = {
'AC2_Muzzle',
},
RackBone = 'AC2_Barrel',
},
},
RackFireTogether = false,
RackRecoilDistance = -0.2,
RackReloadTimeout = 0,
RackSalvoChargeTime = 0,
RackSalvoReloadTime = 0,
RackSalvoSize = 1,
RackSlavedToTurret = true,
RangeCategory = 'UWRC_DirectFire',
RateOfFire = .5,
TargetCheckInterval = 0.5,
TargetPriorities = {
'SPECIALHIGHPRI',
'MOBILE',
'STRUCTURE DEFENSE',
'SPECIALLOWPRI',
'ALLUNITS',
},
TargetRestrictDisallow = 'UNTARGETABLE',
TrackingRadius = 1,
TurretBoneMuzzle = 'AC2_Muzzle',
TurretBonePitch = 'AC2_Barrel',
TurretBoneYaw = 'AC2_Turret',
TurretDualManipulators = false,
TurretPitch = 0,
TurretPitchRange = 45,
TurretPitchSpeed = 45,
TurretYaw = 0,
TurretYawRange = 90,
TurretYawSpeed = 180,
Turreted = true,
WeaponCategory = 'Direct Fire',
},
{
AlwaysRecheckTarget = true,
Audio = {
Fire = Sound {
Bank = 'URLWeapon',
Cue = 'URB2304_Missile_Nanite',
LodCutoff = 'Weapon_LodCutoff',
},
},
BallisticArc = 'RULEUBA_None',
CannotAttackGround = false,
CollideFriendly = false,
Damage = 1,
DamageRadius = 0,
DamageType = 'D_ClusterEnergy',
DisplayName = 'Short Range Missles',
FireTargetLayerCapsTable = {
Air = 'Land|Water|Seabed|Air',
Land = 'Land|Water|Seabed|Air',
},
FiringRandomness = 0.3,
FiringRandomnessWhileMoving = 1.5,
FiringTolerance = 50,
Label = 'SRM4',
MaxRadius = 27,
MuzzleSalvoDelay = 0.1,
MuzzleSalvoSize = 4,
MuzzleVelocity = 27,
ProjectileId= '/projectiles/TAAMissileFlayer01/TAAMissileFlayer01_proj.bp',
ProjectileLifetime = 1,
ProjectilesPerOnFire = 4,
RackBones = {
{
MuzzleBones = {
'SRM_Muzzle01',
'SRM_Muzzle02',
'SRM_Muzzle03',
'SRM_Muzzle04',
},
RackBone = 'SRM_Rack',
},
},
RackFireTogether = true,
RackRecoilDistance = 0,
RackReloadTimeout = 10,
RackSalvoChargeTime = 0,
RackSalvoReloadTime = 0,
RackSalvoSize = 1,
RackSlavedToTurret = true,
RangeCategory = 'UWRC_DirectFire',
RateOfFire = 0.25,
TargetCheckInterval = 0.3,
TargetPriorities = {
'SPECIALHIGHPRI',
'MOBILE',
'STRUCTURE DEFENSE',
'SPECIALLOWPRI',
'ALLUNITS',
},
TargetRestrictDisallow = 'UNTARGETABLE',
TrackingRadius = 1,
HeadingArcCenter = 0,
HeadingArcRange = 45,
TurretBoneMuzzle = 'SRM_Muzzle',
TurretBonePitch = 'SRM_Muzzle',
TurretBoneYaw = 'FSWARRIORH7_lod0',
TurretDualManipulators = false,
TurretPitch = 0,
TurretPitchRange = 60,
TurretPitchSpeed = 180,
TurretYaw = 0,
TurretYawRange = 45,
TurretYawSpeed = 360,
Turreted = false,
WeaponCategory = 'Direct Fire',
},
},
Wreckage = {
Blueprint = '/props/DefaultWreckage/DefaultWreckage_prop.bp',
EnergyMult = 0,
HealthMult = 0.9,
MassMult = 0.9,
ReclaimTimeMultiplier = 1,
WreckageLayers = {
Air = false,
Land = true,
Seabed = false,
Sub = false,
Water = false,
},
},
}
+5
View File
@@ -0,0 +1,5 @@
[.ShellClassInfo]
InfoTip=This folder is shared online.
IconFile=C:\Program Files (x86)\Google\Drive\googledrivesync.exe
IconIndex=12