Skip to content

Commit

Permalink
Merge remote-tracking branch 'darkademic/dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
Inq8 committed Jul 8, 2023
2 parents 8996b0b + 28cb642 commit f1591e0
Show file tree
Hide file tree
Showing 16 changed files with 90 additions and 30 deletions.
2 changes: 1 addition & 1 deletion OpenRA.Mods.CA/Traits/MindController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ void UpdateCapacity(Actor self)
var newCapacity = info.Capacity;

// Modifiers have no effect if the base capacity is unlimited.
if (info.Capacity == 0)
if (info.Capacity <= 0)
return;

foreach (var capacityModifier in capacityModifiers)
Expand Down
2 changes: 1 addition & 1 deletion OpenRA.Mods.CA/Traits/PortableChronoCA.cs
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ public PortableChronoOrderGenerator(Actor self, PortableChronoCA portableChrono)
info = portableChrono.Info;

selectedWithAbility = self.World.Selection.Actors
.Where(a => a.Info.HasTraitInfo<PortableChronoCAInfo>() && a != self && a.Owner == self.Owner)
.Where(a => a.Info.HasTraitInfo<PortableChronoCAInfo>() && a != self && a.Owner == self.Owner && !a.IsDead)
.Select(a => new TraitPair<PortableChronoCA>(a, a.Trait<PortableChronoCA>()));
}

Expand Down
2 changes: 1 addition & 1 deletion OpenRA.Mods.CA/Widgets/ExternalLinkButtonWidget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public override void MouseEntered()

public override void MouseExited()
{
base.MouseEntered();
base.MouseExited();
hovering = false;
}

Expand Down
6 changes: 5 additions & 1 deletion mods/ca/maps/ca07-subversion/ca07.lua
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ WorldLoaded = function()
end)
end

local revealPoints = { EntranceReveal1, EntranceReveal2, EntranceReveal3, EntranceReveal4, BridgeDefendersReveal1, BridgeDefendersReveal2 }
local revealPoints = { EntranceReveal1, EntranceReveal2, EntranceReveal3, EntranceReveal4, BridgeDefendersReveal1, BridgeDefendersReveal2, EmpDroneReveal }
Utils.Do(revealPoints, function(p)
Trigger.OnEnteredProximityTrigger(p.CenterPosition, WDist.New(11 * 1024), function(a, id)
if a.Owner == Nod and a.Type ~= "smallcamera" then
Expand All @@ -103,6 +103,10 @@ WorldLoaded = function()
BridgeTipShown = true
Tip("Too many guards up ahead. Find a way to neutralise them.")
end
if Difficulty ~= "hard" and p == EmpDroneReveal and not EmpDroneTipShown then
EmpDroneTipShown = true
Media.DisplayMessage("That E.M.P Drone could come in handy.", "Hacker", HSLColor.FromHex("00FF00"))
end
local camera = Actor.Create("smallcamera", true, { Owner = Nod, Location = p.Location })
Trigger.AfterDelay(DateTime.Seconds(4), function()
camera.Destroy()
Expand Down
3 changes: 3 additions & 0 deletions mods/ca/maps/ca07-subversion/map.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4374,6 +4374,9 @@ Actors:
BridgeDefendersReveal2: waypoint
Owner: Neutral
Location: 72,42
EmpDroneReveal: waypoint
Owner: Neutral
Location: 37,36

Rules: ca|rules/campaign-rules.yaml, ca|rules/campaign-tooltips.yaml, ca|rules/campaign-palettes.yaml, rules.yaml

Expand Down
2 changes: 1 addition & 1 deletion mods/ca/maps/ca25-singularity/map.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5002,7 +5002,7 @@ Actors:
Location: 120,63
HackerDropLanding: waypoint
Owner: Neutral
Location: 124,99
Location: 124,103
WestAttackNode2: waypoint
Owner: Neutral
Location: 27,59
Expand Down
46 changes: 39 additions & 7 deletions mods/ca/maps/tfca/tfca-rules-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,11 @@ SPAWN:
Delay: 25
StartIfBelow: 100
RequiresCondition: shielded
FirepowerMultiplier@ENGIBUFF:
RequiresCondition: engibuff
Modifier: 115
ExternalCondition@ENGIBUFF:
Condition: engibuff

XO:
Inherits@TFUNIT: ^TFUnit
Expand Down Expand Up @@ -287,6 +292,13 @@ E3:
Modifier: 40
-ReloadDelayMultiplier@FRENZYDEBUFF:
-SpeedMultiplier@FRENZYDEBUFF:
GrantConditionOnBotOwner@ISBOT:
Bots: bot
Condition: is-bot
AutoTargetPriority@BOTPRIO:
RequiresCondition: is-bot
ValidTargets: Defense
Priority: 10

MEDI:
Inherits@TFUNIT: ^TFUnit
Expand Down Expand Up @@ -327,7 +339,7 @@ E4:
TooltipExtras:
Strengths: • High sustained damage
Weaknesses: • Short range
Attributes: • Pyroblast ability
Attributes: • Pyroblast ability\n• Impervious to fire
Mobile:
Speed: 100
RevealsShroud:
Expand Down Expand Up @@ -369,6 +381,8 @@ E4:
Count: 1
ShowSelectionBar: true
SelectionBarColor: ff6600
Targetable@FIREPROOF:
TargetTypes: Fireproof

SEAL:
Inherits@TFUNIT: ^TFUnit
Expand Down Expand Up @@ -427,7 +441,7 @@ E6:
BuildPaletteOrder: 9
TooltipExtras:
Weaknesses: • Unarmed
Attributes: • Detects mines
Attributes: • Detects mines\n• Nearby allies deal 15% more damage
Mobile:
Speed: 100
RevealsShroud:
Expand Down Expand Up @@ -486,6 +500,14 @@ E6:
DetectCloaked:
Range: 5c0
DetectionTypes: Mine
WithRangeCircle:
Color: ffff00aa
Range: 3c512
ValidRelationships: Ally
ProximityExternalCondition@ENGIBUFF:
Range: 3c512
Condition: engibuff
ValidRelationships: Ally

SAB:
Inherits@TFUNIT: ^TFUnit
Expand Down Expand Up @@ -572,12 +594,13 @@ IVAN:
Bots: bot
Condition: is-bot
Armament@PRIMARY:
PauseOnCondition: reloading
RequiresCondition: !is-bot
Armament@PRIMARYBOT:
PauseOnCondition: reloading
Weapon: BotIvanbomb
LocalOffset: 0,0,555
FireDelay: 15
RequiresCondition: is-bot
Armament@PRIMARYBOTDEF:
Weapon: BotIvanbombDef
LocalOffset: 0,0,555
Expand All @@ -587,7 +610,6 @@ IVAN:
AutoTargetPriority@DEFAULTDEF:
RequiresCondition: is-bot
ValidTargets: Defense
InvalidTargets: NoAutoTarget
Priority: 10

SNIP:
Expand All @@ -598,7 +620,7 @@ SNIP:
TooltipExtras:
Strengths: • Long range\n• High single-target damage
Weaknesses: • Fragile\n• Slow
Attributes:
Attributes: • Must aim before shooting
Mobile:
Speed: 75
RevealsShroud:
Expand Down Expand Up @@ -702,6 +724,14 @@ HQ:
-BeingCapturedCondition:
-RangedGpsRadarProvider:
-WithRangeCircle:
-SpawnActorPowerCA@sathack:
-SpawnActorPowerCA@sathacklegion:
-ProduceActorPowerCA@hackercell:
-ProduceActorPowerCA@hackercellAI:
-DropPodsPowerCA@Zocom:
-CashHackPower@Legion:
-AirstrikePower@BlackhandFirebomb:
-AirReinforcementsPower@ShadowTeam:

APWR:
-Sellable:
Expand Down Expand Up @@ -741,14 +771,14 @@ GUN:

SPAWNGUN:
Inherits: GUN
DamageMultiplier@INVULN:
Modifier: 0
RenderSprites:
Image: gun
MustBeDestroyed:
RequiredForShortGame: true
WithColoredSelectionBox@REL:
ColorSource: Player
-Targetable:
-Targetable@EXPLOSIVES:

SHIELDZONE:
Inherits@1: CAMERA
Expand All @@ -757,6 +787,7 @@ SHIELDZONE:
Visible: Always
Color: 00ffbbaa
Range: 3c0
ValidRelationships: Ally
ProximityExternalCondition@SHIELD:
Range: 3c0
Condition: shielded
Expand All @@ -782,6 +813,7 @@ PYROZONE:
Visible: Always
Color: ff6600aa
Range: 3c0
ValidRelationships: Enemy, Ally
KillsSelf:
RemoveInstead: true
Delay: 200
Expand Down
8 changes: 6 additions & 2 deletions mods/ca/maps/tfca/tfca-weapons.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Dragon:
Ivanbomb:
Range: 6c0
ReloadDelay: 30
Warhead@AttachDelayedWeapon: AttachDelayedWeapon
TriggerTime: 80

BotIvanbomb:
Inherits: Ivanbomb
Expand All @@ -38,13 +40,14 @@ HeavyFlameTankFlamer:
-BurstDelays:
Warhead@1Dam: SpreadDamage
ValidRelationships: Enemy, Ally, Neutral
InvalidTargets: Fireproof
Damage: 450

Uzi:
Inherits: M60mgTD
Range: 6c0
Projectile: Bullet
Speed: 700
Speed: 850
ContrailLength: 9
ContrailStartColor: 88888844
ContrailStartColorAlpha: 68
Expand Down Expand Up @@ -96,7 +99,7 @@ Heal:
Damage: -4000

Repair:
ReloadDelay: 60
ReloadDelay: 40
Warhead@highlight: GrantExternalCondition
ValidTargets: Structure
Warhead@1Dam: SpreadDamage
Expand All @@ -111,6 +114,7 @@ Pyroblast:
Warhead@1Dam: SpreadDamage
Spread: 768
Damage: 35000
InvalidTargets: Fireproof
Versus:
Concrete: 1
Warhead@3Eff: CreateEffect
Expand Down
8 changes: 7 additions & 1 deletion mods/ca/maps/tfca/tfca.lua
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ BlueWins = function()
Utils.Do(spawnguns, function(g)
g.Kill()
end)
Utils.Do(Objectives, function(o)
o.Actor.Owner = Blue
end)
end

RedWins = function()
Expand All @@ -164,6 +167,9 @@ RedWins = function()
Utils.Do(spawnguns, function(g)
g.Kill()
end)
Utils.Do(Objectives, function(o)
o.Actor.Owner = Red
end)
end

BotSetup = function()
Expand Down Expand Up @@ -248,7 +254,7 @@ BotTick = function()

if BotEngiTurrets[selfString] ~= nil and not BotEngiTurrets[selfString].IsDead then
local guardChance = Utils.RandomInteger(0, 100)
if guardChance > 50 then
if guardChance > 15 then
self.Guard(BotEngiTurrets[selfString])
end
end
Expand Down
8 changes: 7 additions & 1 deletion mods/ca/rules/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@
ProductionCostMultiplier@vhardbonus:
Multiplier: 95
Prerequisites: is-vhard-ai
ProductionTimeMultiplier@easybonus:
Multiplier: 110
Prerequisites: is-easy-ai

# Refineries have an explicit BuildDuration so build time is unaffected by ProductionCostMultiplier
^BotRefinery:
Expand Down Expand Up @@ -156,6 +159,9 @@
ProductionCostMultiplier@brutalbonus:
Multiplier: 95
Prerequisites: is-brutal-ai
ProductionTimeMultiplier@easybonus:
Multiplier: 115
Prerequisites: is-easy-ai

# The Bot does not know how to sell up when he does not have an income. This provides an income, when floating less than 2500$
^BotFallbackInsurance:
Expand Down Expand Up @@ -1139,7 +1145,7 @@
Targetable@AICAPTURE:
TargetTypes: NoCrew
RequiresCondition: driver-dead
TooltipDescription:
TooltipDescription@DRIVER_DEAD:
Description: Crewless. Capturable by infantry.
RequiresCondition: driver-dead

Expand Down
6 changes: 3 additions & 3 deletions mods/ca/rules/infantry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3807,9 +3807,9 @@ SEAL:
BuildLimit: -1
Description: Elite infantry armed with an SMG and C4.
TooltipExtras:
Strengths: • Strong vs Infantry, Buildings
Strengths: • Strong vs Infantry, Light Armor, Buildings
Weaknesses: • Cannot attack Aircraft
Attributes: • Can detect cloaked units\n• Plants C4 to destroy structures and vehicles
Attributes: • Can detect cloaked units\n• Plants C4 to destroy structures
Voiced:
VoiceSet: SealVoice
Mobile:
Expand Down Expand Up @@ -3955,7 +3955,7 @@ ENLI:
Description: Heavy cyborg infantry unit armed with\n a particle cannon that deals area damage.
TooltipExtras:
Strengths: • Strong vs Heavy Armor, Light Armor
Weaknesses: • Weak vs Infantry, Defenses\n• Cannot attack Aircraft
Weaknesses: • Weak vs Infantry\n• Cannot attack Aircraft
Attributes: • Heals on Tiberium\n• EMP blast ability
Valued:
Cost: 1000
Expand Down
5 changes: 5 additions & 0 deletions mods/ca/rules/vehicles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3276,6 +3276,7 @@ MTNK.Drone:
-Capturable@DRIVER_DEAD:
-GrantConditionIfOwnerIsNeutral:
-ChangesHealth@DRIVER_DEAD:
-TooltipDescription@DRIVER_DEAD:
-Targetable@DRIVERKILL:
-Targetable@DRIVERKILLLOWHP:
-GrantConditionOnDamageState@DRIVERKILLLOWHP:
Expand Down Expand Up @@ -3365,6 +3366,7 @@ MDRN:
-Capturable@DRIVER_DEAD:
-GrantConditionIfOwnerIsNeutral:
-ChangesHealth@DRIVER_DEAD:
-TooltipDescription@DRIVER_DEAD:
-Targetable@DRIVERKILL:
-Targetable@DRIVERKILLLOWHP:
-GrantConditionOnDamageState@DRIVERKILLLOWHP:
Expand Down Expand Up @@ -3627,6 +3629,7 @@ HTNK.Drone:
-Capturable@DRIVER_DEAD:
-GrantConditionIfOwnerIsNeutral:
-ChangesHealth@DRIVER_DEAD:
-TooltipDescription@DRIVER_DEAD:
-Targetable@DRIVERKILL:
-Targetable@DRIVERKILLLOWHP:
-GrantConditionOnDamageState@DRIVERKILLLOWHP:
Expand Down Expand Up @@ -6300,6 +6303,7 @@ MEMP:
-Capturable@DRIVER_DEAD:
-GrantConditionIfOwnerIsNeutral:
-ChangesHealth@DRIVER_DEAD:
-TooltipDescription@DRIVER_DEAD:
-Targetable@DRIVERKILL:
-Targetable@DRIVERKILLLOWHP:
-GrantConditionOnDamageState@DRIVERKILLLOWHP:
Expand Down Expand Up @@ -6395,6 +6399,7 @@ CDRN:
-Capturable@DRIVER_DEAD:
-GrantConditionIfOwnerIsNeutral:
-ChangesHealth@DRIVER_DEAD:
-TooltipDescription@DRIVER_DEAD:
-Targetable@DRIVERKILL:
-Targetable@DRIVERKILLLOWHP:
-GrantConditionOnDamageState@DRIVERKILLLOWHP:
Expand Down
2 changes: 1 addition & 1 deletion mods/ca/weapons/ballistics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
Inherits: ^Cannon
ReloadDelay: 135
Report: vapoat1a.aud
Range: 5c0
Range: 5c768
Burst: 2
BurstDelays: 8
InvalidTargets: Air, AirSmall
Expand Down
Loading

0 comments on commit f1591e0

Please sign in to comment.