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

+235
View File
@@ -0,0 +1,235 @@
#****************************************************************************
#**
#** File : /lua/armordefinition.lua
#** Author(s):
#**
#** Summary :
#**
#** Copyright © 2005 Gas Powered Games, Inc. All rights reserved.
#****************************************************************************
#
# Armor Type Definitions
#
armordefinition = {
{ # Armor Type Name
'Default',
# Armor Definition
'Normal 1.0',
},
{ # Armor Type Name
'Normal',
# Armor Definition
'Normal 1.0',
'D_Ammo 30.0',
'D_Energy 30.0',
'D_ClusterAmmo 30.0',
'D_ClusterEnergy 30.0',
},
{ # Armor Type Name
'Light',
# Armor Definition
'Normal 1.0',
'D_Ammo 30.0',
'D_Energy 30.0',
'D_ClusterAmmo 30.0',
'D_ClusterEnergy 30.0',
},
{ # Armor Type Name
'Commander',
# Armor Definition
'Normal 1.0',
'Overcharge 0.033333',
'Deathnuke 0.05',
'D_Ammo 30.0',
'D_Energy 30.0',
'D_ClusterAmmo 30.0',
'D_ClusterEnergy 30.0',
},
{ # Armor Type Name
'Structure',
# Armor Definition
'Normal 1.0',
'Overcharge 0.066666',
'Deathnuke 0.01',
'D_Ammo 30.0',
'D_Energy 30.0',
'D_ClusterAmmo 30.0',
'D_ClusterEnergy 30.0',
},
{
# Armor Type name
'Experimental',
# Armor Definition
'ExperimentalFootfall 0.0',
'D_Ammo 30.0',
'D_Energy 30.0',
'D_ClusterAmmo 30.0',
'D_ClusterEnergy 30.0',
},
--DMG
{
# Armor Type Name
'D_Ammo',
# Armor Definition
'Normal 15.0',
},
{
# Armor Type Name
'D_Energy',
# Armor Definition
'Normal 15.0',
},
{
# Armor Type Name
'D_ClusterAmmo',
# Armor Definition
'Normal 15.0',
},
{
# Armor Type Name
'D_ClusterEnergy',
# Armor Definition
'Normal 15.0',
},
--Armor
{
# Armor Type Name
'A_M_Reactive',
# Armor Definition
'Normal 0.03',
'D_Ammo 0.5',
'D_Energy 1.0',
'D_ClusterAmmo 0.5',
'D_ClusterEnergy 1.1',
},
{
# Armor Type Name
'A_M_Reflective',
# Armor Definition
'Normal 0.03',
'D_Ammo 1.0',
'D_Energy 0.5',
'D_ClusterAmmo 1.1',
'D_ClusterEnergy 0.5',
},
{
# Armor Type Name
'A_M_Standard',
# Armor Definition
'Normal 0.03',
'D_Ammo 1.0',
'D_Energy 1.0',
'D_ClusterAmmo 1.1',
'D_ClusterEnergy 1.1',
},
{
# Armor Type Name
'A_V_Reactive',
# Armor Definition
'Normal 0.03',
'D_Ammo 0.5',
'D_Energy 1.0',
'D_ClusterAmmo 0.7',
'D_ClusterEnergy 1.2',
},
{
# Armor Type Name
'A_V_Reflective',
# Armor Definition
'Normal 0.03',
'D_Ammo 1.0',
'D_Energy 0.5',
'D_ClusterAmmo 1.2',
'D_ClusterEnergy 0.7',
},
{
# Armor Type Name
'A_V_Standard_Track',
# Armor Definition
'Normal 0.03',
'D_Ammo 1.0',
'D_Energy 1.0',
'D_ClusterAmmo 1.2',
'D_ClusterEnergy 1.2',
},
{
# Armor Type Name
'A_V_Standard_Wheel',
# Armor Definition
'Normal 0.03',
'D_Ammo 1.0',
'D_Energy 1.0',
'D_ClusterAmmo 1.4',
'D_ClusterEnergy 1.4',
},
{
# Armor Type Name
'A_V_Standard_Hover',
# Armor Definition
'Normal 0.03',
'D_Ammo 1.0',
'D_Energy 1.0',
'D_ClusterAmmo 1.5',
'D_ClusterEnergy 1.5',
},
{
# Armor Type Name
'A_A_Reactive',
# Armor Definition
'Normal 0.03',
'D_Ammo 0.5',
'D_Energy 1.0',
'D_ClusterAmmo 1.2',
'D_ClusterEnergy 2.5',
},
{
# Armor Type Name
'A_A_Reflective',
# Armor Definition
'Normal 0.03',
'D_Ammo 1.0',
'D_Energy 0.5',
'D_ClusterAmmo 2.5',
'D_ClusterEnergy 1.2',
},
{
# Armor Type Name
'A_A_Standard',
# Armor Definition
'Normal 0.03',
'D_Ammo 1.0',
'D_Energy 1.0',
'D_ClusterAmmo 2.5',
'D_ClusterEnergy 2.5',
},
}
+29
View File
@@ -0,0 +1,29 @@
local Entity = import('/lua/sim/Entity.lua').Entity
local explosion = import('/lua/defaultexplosions.lua')
local EffectTemplate = import('/lua/EffectTemplates.lua')
local EffectUtilities = import('/lua/EffectUtilities.lua')
local Game = import('/lua/game.lua')
local utilities = import('/lua/utilities.lua')
local Shield = import('/lua/shield.lua').Shield
local UnitShield = import('/lua/shield.lua').UnitShield
local AntiArtilleryShield = import('/lua/shield.lua').AntiArtilleryShield
local Buff = import('/lua/sim/buff.lua')
local AIUtils = import('/lua/ai/aiutilities.lua')
local oldUnit=Unit
Unit = Class(oldUnit) {
InitiateTeleportThread = function(self, teleporter, location, orientation)
local exbp = self:GetBlueprint()
local MaxTeleRange = exbp.Defense.MaxTeleRange
local exdist = VDist3(location, self:GetPosition())
if MaxTeleRange then
if exdist > MaxTeleRange then
LOG('Stopping teleport thread')
return
end
end
oldUnit.InitiateTeleportThread(self, teleporter, location, orientation)
end
}
@@ -0,0 +1,47 @@
ProjectileBlueprint {
Audio = {
Impact = Sound {
Bank = 'Impacts',
Cue = 'AEON_Expl_Med_Impact',
LodCutoff = 'Weapon_LodCutoff',
},
ImpactTerrain = Sound {
Bank = 'Impacts',
Cue = 'Impact_Land_Gen_AEON',
LodCutoff = 'Weapon_LodCutoff',
},
ImpactWater = Sound {
Bank = 'Impacts',
Cue = 'Impact_Water_Splash_AEON',
LodCutoff = 'Weapon_LodCutoff',
},
},
Categories = {
'AEON',
'PROJECTILE',
'DIRECTFIRE',
},
Display = {
ImpactEffects = {
Type = 'Small01',
},
StrategicIconSize = 1,
},
General = {
Category = 'Direct Fire',
EntityCategory = {
'AEON',
'PROJECTILE',
'DIRECTFIRE',
},
},
Interface = {
HelpText = 0,
},
Physics = {
DestroyOnWater = false,
InitialSpeed = 14,
Lifetime = 1.5,
UseGravity = false,
},
}
@@ -0,0 +1,8 @@
#
# Aeon laser 'bolt'
#
local ALightLaserProjectile = import('/lua/aeonprojectiles.lua').ALightLaserProjectile
ADFLaserLight02 = Class(ALightLaserProjectile) {}
TypeClass = ADFLaserLight02
@@ -0,0 +1,49 @@
ProjectileBlueprint {
Audio = {
Impact = Sound {
Bank = 'Impacts',
Cue = 'AEON_Expl_Med_Impact',
LodCutoff = 'Weapon_LodCutoff',
},
ImpactTerrain = Sound {
Bank = 'Impacts',
Cue = 'Impact_Land_Gen_AEON',
LodCutoff = 'Weapon_LodCutoff',
},
ImpactWater = Sound {
Bank = 'Impacts',
Cue = 'Impact_Water_Splash_AEON',
LodCutoff = 'Weapon_LodCutoff',
},
},
Categories = {
'AEON',
'PROJECTILE',
'DIRECTFIRE',
},
Display = {
ImpactEffects = {
Type = 'Medium02',
},
StrategicIconSize = 2,
},
General = {
Category = 'Direct Fire',
EntityCategory = {
'AEON',
'PROJECTILE',
'DIRECTFIRE',
},
Faction = 'Aeon',
Weapon = 'Oblivion Cannon',
},
Interface = {
HelpText = 0,
},
Physics = {
DestroyOnWater = false,
InitialSpeed = 28,
TurnRate = 360,
VelocityAlign = true,
},
}
@@ -0,0 +1,8 @@
#
# Aeon quantum 'bolt'
#
local AOblivionCannonProjectile = import('/lua/aeonprojectiles.lua').AOblivionCannonProjectile
ADFOblivionCannon01 = Class(AOblivionCannonProjectile) {}
TypeClass = ADFOblivionCannon01
@@ -0,0 +1,71 @@
ProjectileBlueprint {
Audio = {
Impact = Sound {
Bank = 'Impacts',
Cue = 'CYB_Expl_Med_Impact',
LodCutoff = 'Weapon_LodCutoff',
},
ImpactTerrain = Sound {
Bank = 'Impacts',
Cue = 'Impact_Land_Gen_CYBRAN',
LodCutoff = 'Weapon_LodCutoff',
},
ImpactWater = Sound {
Bank = 'Impacts',
Cue = 'Impact_Water_Splash_CYBRAN',
LodCutoff = 'Weapon_LodCutoff',
},
},
Categories = {
'CYBRAN',
'PROJECTILE',
'INDIRECTFIRE',
'TACTICAL',
'MISSILE',
},
Defense = {
Health = 1,
MaxHealth = 1,
},
Display = {
MeshBlueprint = '/projectiles/CAAMissileNanite01/CAAMissileNanite01_mesh.bp',
StrategicIconSize = 2,
UniformScale = 0.25,
},
Economy = {
BuildCostEnergy = 100,
BuildCostMass = 10,
BuildTime = 1,
},
General = {
Category = 'Missile',
EntityCategory = {
'CYBRAN',
'PROJECTILE',
'INDIRECTFIRE',
'TACTICAL',
'MISSILE',
},
Faction = 'Cybran',
TechLevel = 3,
Weapon = 'Nanite Missile System',
},
Interface = {
HelpText = 0,
},
Physics = {
Acceleration = 5,
DestroyOnWater = true,
InitialSpeed = 30,
LeadTarget = false,
Lifetime = 3,
MaxSpeed = 50,
MaxZigZag = 15,
OnLostTargetLifetime = 0.7,
TrackTarget = true,
TurnRate = 45,
UseGravity = false,
VelocityAlign = true,
ZigZagFrequency = 10,
},
}
@@ -0,0 +1,27 @@
#
# AA Missile for Cybrans
#
local CAAMissileNaniteProjectile = import('/lua/cybranprojectiles.lua').CAAMissileNaniteProjectile
CAAMissileNanite02 = Class(CAAMissileNaniteProjectile) {
OnCreate = function(self)
CAAMissileNaniteProjectile.OnCreate(self)
self:SetCollisionShape('Sphere', 0, 0, 0, 2.0)
self:ForkThread(self.UpdateThread)
end,
UpdateThread = function(self)
WaitSeconds(1.5)
self:SetMaxSpeed(80)
self:SetAcceleration(10 + Random() * 8)
self:ChangeMaxZigZag(0.5)
self:ChangeZigZagFrequency(2)
end,
OnImpact = function(self, TargetType, TargetEntity)
CAAMissileNaniteProjectile.OnImpact(self, TargetType, TargetEntity)
end,
}
TypeClass = CAAMissileNanite02
@@ -0,0 +1,50 @@
ProjectileBlueprint {
Audio = {
Impact = Sound {
Bank = 'Impacts',
Cue = 'CYB_Expl_Med_Impact',
LodCutoff = 'Weapon_LodCutoff',
},
ImpactTerrain = Sound {
Bank = 'Impacts',
Cue = 'Impact_Land_Gen_CYBRAN',
LodCutoff = 'Weapon_LodCutoff',
},
ImpactWater = Sound {
Bank = 'Impacts',
Cue = 'Impact_Water_Splash_CYBRAN',
LodCutoff = 'Weapon_LodCutoff',
},
},
Categories = {
'CYBRAN',
'PROJECTILE',
'DIRECTFIRE',
},
Display = {
ImpactEffects = {
Scale = 1,
Type = 'Small01',
},
StrategicIconSize = 1,
},
General = {
Category = 'Direct Fire',
EntityCategory = {
'CYBRAN',
'PROJECTILE',
'DIRECTFIRE',
},
Faction = 'Cybran',
Weapon = 'Light Pulse Laser',
},
Interface = {
HelpText = 0,
},
Physics = {
DestroyOnWater = false,
InitialSpeed = 22,
Lifetime = 2.5,
UseGravity = false,
},
}
@@ -0,0 +1,8 @@
#
# Cybran laser 'bolt'
#
local CHeavyLaserProjectile = import('/lua/cybranprojectiles.lua').CHeavyLaserProjectile
CDFLaserHeavy01 = Class(CHeavyLaserProjectile) {}
TypeClass = CDFLaserHeavy01
@@ -0,0 +1,29 @@
ProjectileBlueprint {
Categories = {
'CYBRAN',
'PROJECTILE',
'DIRECTFIRE',
},
Display = {
StrategicIconSize = 1,
},
General = {
Category = 'Direct Fire',
EntityCategory = {
'CYBRAN',
'PROJECTILE',
'DIRECTFIRE',
},
Faction = 'Cybran',
Weapon = 'Particle Cannon',
},
Interface = {
HelpText = 0,
},
Physics = {
DestroyOnWater = false,
InitialSpeed = 15,
LeadTarget = false,
UseGravity = false,
},
}
@@ -0,0 +1,9 @@
#
# Cybran Particle Cannon Projectile Script
#
local CParticleCannonProjectile = import('/lua/cybranprojectiles.lua').CParticleCannonProjectile
CDFParticleCannon01 = Class(CParticleCannonProjectile) {
}
TypeClass = CDFParticleCannon01
@@ -0,0 +1,72 @@
ProjectileBlueprint {
Audio = {
Impact = Sound {
Bank = 'Impacts',
Cue = 'UEF_Expl_Med_Impact',
LodCutoff = 'Weapon_LodCutoff',
},
ImpactTerrain = Sound {
Bank = 'Impacts',
Cue = 'Impact_Land_Gen_UEF',
LodCutoff = 'Weapon_LodCutoff',
},
ImpactWater = Sound {
Bank = 'Impacts',
Cue = 'Impact_Water_Splash_UEF',
LodCutoff = 'Weapon_LodCutoff',
},
},
Categories = {
'UEF',
'PROJECTILE',
'INDIRECTFIRE',
'TACTICAL',
'MISSILE',
},
Defense = {
Health = 1,
MaxHealth = 1,
},
Display = {
Mesh = {
LODs = {
{
ShaderName = 'NormalMappedAlpha',
},
},
},
StrategicIconSize = 2,
UniformScale = 0.03,
},
General = {
Category = 'Missile',
EntityCategory = {
'UEF',
'PROJECTILE',
'INDIRECTFIRE',
'TACTICAL',
'MISSILE',
},
Faction = 'UEF',
TechLevel = 1,
Weapon = 'Flayer SAM Launcher',
},
Interface = {
HelpText = 0,
},
Physics = {
Acceleration = 5,
DestroyOnWater = true,
InitialSpeed = 30,
LeadTarget = false,
Lifetime = 3,
MaxSpeed = 50,
MaxZigZag = 15,
OnLostTargetLifetime = 0.7,
TrackTarget = true,
TurnRate = 45,
UseGravity = false,
VelocityAlign = true,
ZigZagFrequency = 10,
},
}
@@ -0,0 +1,14 @@
#
# Terran Anti Air Missile
#
local TMissileAAProjectile = import('/lua/terranprojectiles.lua').TMissileAAProjectile
TAAMissileFlayer01 = Class(TMissileAAProjectile) {
OnCreate = function(self)
TMissileAAProjectile.OnCreate(self)
self:SetCollisionShape('Sphere', 0, 0, 0, 0.8)
end,
}
TypeClass = TAAMissileFlayer01