Skip to content

Commit

Permalink
Bunch of Misc Audio/Effects
Browse files Browse the repository at this point in the history
-Reduced Unit Upgrade radius to immediate area around FIX/REP
-Added Unit Upgrade sfx
-Added Inspiration overlay to affected infantry
  • Loading branch information
Inq8 committed Feb 23, 2024
1 parent 1dcc0c1 commit f56e3b0
Show file tree
Hide file tree
Showing 28 changed files with 80 additions and 20 deletions.
6 changes: 5 additions & 1 deletion OpenRA.Mods.CA/Traits/Upgradeable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,15 @@ public class UpgradeableInfo : ConditionalTraitInfo
[Desc("Voice to use on upgrade completion.")]
public readonly string UpgradeCompleteSpeechNotification = "UpgradeComplete";

[Desc("Sound to play on upgrade completion.")]
public readonly string UpgradeSound = "voveupgr.aud";

[ActorReference]
[Desc("If set, must upgrade near one of these actors.")]
public readonly HashSet<string> UpgradeAtActors = new HashSet<string> { };

[Desc("If UpgradeAtActors are set, defines the max distance to upgrade.")]
public readonly WDist UpgradeAtRange = WDist.FromCells(10);
public readonly WDist UpgradeAtRange = WDist.FromCells(3);

[Desc("Color to use for the target line.")]
public readonly Color TargetLineColor = Color.Cyan;
Expand Down Expand Up @@ -170,6 +173,7 @@ public void Unlock()
public void Complete()
{
upgraded = true;
Game.Sound.Play(SoundType.World, Info.UpgradeSound, self.CenterPosition);
}

public void UpdateManager()
Expand Down
Binary file added mods/ca/bits/audio/icivatta.aud
Binary file not shown.
Binary file added mods/ca/bits/audio/icivattb.aud
Binary file not shown.
Binary file added mods/ca/bits/audio/vblediea.aud
Binary file not shown.
Binary file added mods/ca/bits/audio/vbledieb.aud
Binary file not shown.
Binary file added mods/ca/bits/audio/vblelo1a.aud
Binary file not shown.
Binary file added mods/ca/bits/audio/vblelo3.aud
Binary file not shown.
Binary file added mods/ca/bits/audio/vifvtran.aud
Binary file not shown.
Binary file added mods/ca/bits/audio/vintdiea.aud
Binary file not shown.
Binary file added mods/ca/bits/audio/vintdieb.aud
Binary file not shown.
Binary file added mods/ca/bits/audio/vintdna.aud
Binary file not shown.
Binary file added mods/ca/bits/audio/vintupa.aud
Binary file not shown.
Binary file added mods/ca/bits/audio/vosplana.aud
Binary file not shown.
Binary file added mods/ca/bits/audio/vospstaa.aud
Binary file not shown.
Binary file added mods/ca/bits/audio/voveupgr.aud
Binary file not shown.
Binary file added mods/ca/bits/audio/vtitupg1.aud
Binary file not shown.
Binary file modified mods/ca/bits/pip-cmsr.shp
Binary file not shown.
Binary file added mods/ca/bits/ussrstar.shp
Binary file not shown.
24 changes: 14 additions & 10 deletions mods/ca/rules/aircraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -874,8 +874,8 @@ NHAW:
TurnSpeed: 20
Speed: 155
AltitudeVelocity: 0c58
TakeoffSounds: htoff1.aud
LandingSounds: hland1.aud
TakeoffSounds: vospstaa.aud
LandingSounds: vosplana.aud
Voice: Move
WithIdleOverlay@ROTOR1AIR:
Offset: 237,0,263
Expand Down Expand Up @@ -2620,7 +2620,7 @@ KIRO:
AmbientSoundCA:
SoundFiles: vkirlo2a.aud, vkirlo2b.aud, vkirlo2c.aud
Interval: 2
VolumeMultiplier: 0.05
VolumeMultiplier: 0.08
-RangeMultiplier@SEEK:
-RangeMultiplier@SEEK2:
-RangeMultiplier@SEEK3:
Expand Down Expand Up @@ -2905,11 +2905,13 @@ HARR:
RepulsionSpeed: 40
MaximumPitch: 56
CanHover: False
TakeoffSounds: mtoff1.aud, mtoff2.aud
LandingSounds: mland1.aud, mland2.aud
TakeoffSounds: vintupa.aud
LandingSounds: vintdna.aud
Voice: Move
CanSlide: False
AltitudeVelocity: 0c200
SoundOnDamageTransition:
DestroyedSounds: vintdiea.aud, vintdieb.aud
AutoTarget:
InitialStance: HoldFire
InitialStanceAI: AttackAnything
Expand Down Expand Up @@ -3759,10 +3761,12 @@ BEAG:
RepulsionSpeed: 40
MaximumPitch: 56
CanHover: False
TakeoffSounds: mtoff1.aud, mtoff2.aud
LandingSounds: mland1.aud, mland2.aud
TakeoffSounds: vblelo1a.aud
LandingSounds: vblelo3.aud
CanSlide: False
AltitudeVelocity: 0c200
SoundOnDamageTransition:
DestroyedSounds: vblediea.aud, vbledieb.aud
AutoTarget:
InitialStance: HoldFire
InitialStanceAI: AttackAnything
Expand Down Expand Up @@ -3880,8 +3884,8 @@ KAMV:
Aircraft:
TurnSpeed: 16
Speed: 112
TakeoffSounds: htoff1.aud
LandingSounds: hland1.aud
TakeoffSounds: vospstaa.aud
LandingSounds: vosplana.aud
AutoTarget:
InitialStance: HoldFire
InitialStanceAI: AttackAnything
Expand Down Expand Up @@ -4437,7 +4441,7 @@ DISC:
AmbientSoundCA:
SoundFiles: diskmolp2a.aud, diskmolp2b.aud
Interval: 15
VolumeMultiplier: 0.1
VolumeMultiplier: 0.08
-RangeMultiplier@SEEK:
-RangeMultiplier@SEEK2:
-RangeMultiplier@SEEK3:
5 changes: 5 additions & 0 deletions mods/ca/rules/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,11 @@
SpeedMultiplier@Inspiration:
RequiresCondition: inspiration
Modifier: 150
WithIdleOverlay@Inspiration:
Image: ussrstar
Sequence: idle-overlay
Palette: effect
RequiresCondition: inspiration

^Chronoshiftable:
ChronoshiftableCA:
Expand Down
9 changes: 9 additions & 0 deletions mods/ca/rules/infantry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,11 @@ SPY:
Position: TopLeft
ValidRelationships: Ally, Enemy, Neutral
RequiresCondition: cmsr-disguise
WithIdleOverlay@Inspiration:
Image: ussrstar
Sequence: idle-overlay
Palette: effect
RequiresCondition: cmsr-disguise
AttackMove:
Voice: Move
Voiced:
Expand Down Expand Up @@ -4314,6 +4319,10 @@ CMSR:
Palette: effect
Position: TopLeft
ValidRelationships: Ally, Enemy, Neutral
WithIdleOverlay@Inspiration:
Image: ussrstar
Sequence: idle-overlay
Palette: effect
WithRadiatingCircle:
EndRadius: 7c0
Interval: 25
Expand Down
3 changes: 3 additions & 0 deletions mods/ca/rules/upgrades.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,9 @@ railgun.upgrade:
Strengths: + Increased range\n+ Damages targets in a line
Valued:
Cost: 1000
AnnounceOnCreation:
SoundNotification: UPG-Railguns
Delay: 60
RenderSprites:
Image: railgun.upgrade

Expand Down
11 changes: 11 additions & 0 deletions mods/ca/rules/vehicles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5835,10 +5835,20 @@ TITN:
Actors: titn.rail
Upgradeable@RAILGUN:
Type: railgun.upgrade
UpgradingCondition: upgrading
Actor: titn.rail
UpgradeAtActors: fix, rep, srep
BuildDuration: 100
RequiresCondition: !mindcontrolled
WithDecoration@Upgradeable:
Image: upgrade
Palette: chrome
Sequence: upgrade
Position: Center
RequiresCondition: upgrading
BlinkInterval: 5
BlinkPattern: on
ValidRelationships: Ally, Neutral

TITN.RAIL:
Inherits: TITN
Expand All @@ -5860,6 +5870,7 @@ TITN.RAIL:
Actor: TITN.RAIL.Husk
-ReplacedInQueue:
-Upgradeable@RAILGUN:
-WithDecoration@Upgradeable:

JUGG:
Inherits: ^TankTD
Expand Down
16 changes: 16 additions & 0 deletions mods/ca/sequences/misc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1166,6 +1166,12 @@ poweron:
Tick: 160
ZOffset: 2047

upgrade:
upgrade:
Filename: upgradecursor.shp
Start: 0
Length: 3

nosignal:
offline:
Filename: nosig.shp
Expand Down Expand Up @@ -3016,3 +3022,13 @@ veilblast:
Filename: veilblast.shp
Alpha: 0.8
idle:

ussrstar:
Defaults:
Length: *
ZOffset: -32
IgnoreWorldTint: true
idle-overlay:
Filename: ussrstar.shp
Alpha: 0.6
ZOffset: -32
2 changes: 1 addition & 1 deletion mods/ca/weapons/ballistics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
SmudgeType: Crater
InvalidTargets: Vehicle, Structure, Wall, Husk, Trees
Warhead@3Eff: CreateEffect
Explosions: small_explosion
Explosions: small_explosion_alt1, small_explosion_alt2, small_explosion_alt3
ImpactSounds: kaboom12.aud
ValidTargets: Ground, Ship, Trees
Warhead@4EffWater: CreateEffect
Expand Down
8 changes: 6 additions & 2 deletions mods/ca/weapons/explosions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ UnitExplodePlaneLight:
Inherits: UnitExplodePlane
Warhead@1Dam: SpreadDamage
Damage: 3000
Warhead@2Eff: CreateEffect
Explosions: napalm

UnitExplodePlaneEmpty:
Inherits: UnitExplode
Expand All @@ -92,12 +94,14 @@ UnitExplodeHeli:
None: 30
Light: 30
Warhead@2Eff: CreateEffect
Explosions: napalm
Explosions: large_napalm

UnitExplodeHeliEmpty:
Inherits: UnitExplodeHeli
Warhead@1Dam: SpreadDamage
Damage: 2000
Warhead@2Eff: CreateEffect
Explosions: napalm

UnitExplodeDrone:
Inherits: UnitExplodeHeli
Expand All @@ -108,7 +112,7 @@ UnitExplodeDrone:
Light: 30

UnitExplodeDroneEmpty:
Inherits: UnitExplodeHeli
Inherits: UnitExplodeHeliEmpty
Warhead@1Dam: SpreadDamage
Damage: 1000

Expand Down
11 changes: 6 additions & 5 deletions mods/ca/weapons/other.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2616,6 +2616,7 @@ JDAM:
Explosions: fuelbomb1, fuelbomb2
ImpactSounds: xplobig4.aud
Warhead@Flames: FireCluster
InvalidTargets: Water
Weapon: BurnFx
RandomClusterCount: 3
Dimensions: 3,3
Expand All @@ -2630,10 +2631,10 @@ JDAM:
Intensity: 1
Multiplier: 0.5,0.5
Warhead@Shrap: FireShrapnel
Weapon: SmallDebris
Amount: 5
Weapon: TinyDebris
Amount: 10
AimChance: 0
ValidTargets: Ground, Water, Infantry, Vehicle
ValidTargets: Ground, Infantry, Vehicle
ThrowWithoutTarget: true

HarvSwap:
Expand Down Expand Up @@ -2728,6 +2729,7 @@ AttachShadowBeacon:

TinyDebris:
Inherits: ^Debris
ValidTargets: Ground, Trees
Projectile: Bullet
Image: dirt
Palette: terrain
Expand Down Expand Up @@ -3044,7 +3046,7 @@ PeacemakerBombs:
Weapon: TinyDebris
Amount: 10
AimChance: 0
ValidTargets: Ground, Water, Infantry, Vehicle
ValidTargets: Ground, Infantry, Vehicle
ThrowWithoutTarget: true

TibSurgeTargeter:
Expand All @@ -3069,7 +3071,6 @@ FloatingDiscLaser:
SecondaryBeamColor: eb39d340
Warhead@1Dam: SpreadDamage
ValidTargets: Ground, Water, Air, AirSmall
InvalidTargets: PowerDrainable, ResourceDrainable
Damage: 13000
Versus:
None: 100
Expand Down
5 changes: 4 additions & 1 deletion mods/ca/weapons/smallcaliber.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,10 @@ Gatt:
Range: 0, 0c64, 0c256, 1c768
Falloff: 100, 70, 30, 10
Warhead@2Eff: CreateEffect
Explosions: piff
ValidTargets: Air, AirSmall, ICBM
ImpactSoundChance: 20
ImpactSounds: sirodefa.aud, sirodefb.aud, sirodefc.aud, sirodefd
ImpactSoundChance: 60

MGatt:
Inherits: ^AACannon
Expand Down Expand Up @@ -457,6 +459,7 @@ PistolTD:

CommissarPistol:
Inherits: Pistol
Report: icivattb.aud, icivatta.aud
Range: 6c0
Warhead@1Dam: SpreadDamage
Damage: 900
Expand Down

0 comments on commit f56e3b0

Please sign in to comment.