ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

VoiceAttack

From ModEnc
Jump to navigation Jump to search
Tiberian Dawn The Covert Operations Red Alert Counterstrike Aftermath Tiberian Sun Firestorm HyperPatch Red Alert 2 Yuri's Revenge Ares Generals Zero Hour Tiberium Wars Kane's Wrath
Flag: VoiceAttack
File(s): rules(md).ini
Values: Comma-separated list of strings. (Limited to: Sounds)
Default: <none>
Applicable to: TechnoTypes:

AircraftTypes, BuildingTypes, InfantryTypes and VehicleTypes



Specifies any valid sound to play when a unit fires its weapon. This is the most generic sound related to firing weapons and it only applies if none of the more specific flags are set.

In Red Alert 2

Red Alert 2 uses [AudioVisual]VoiceIFVRepair=, if the firing techno is of type [FV] and the selected weapon deals negative damage (like an Engineer in an Infantry Fighting Vehicle), otherwise [TechnoType]VoiceAttack is used.

In Yuri's Revenge

Yuri's Revenge uses this method to select a firing voice:

  1. Find the first matching case, even if the flag is invalid or contains no sounds.
  2. If the selected flag is not valid (undefined or set to <none>), fall back to [TechnoType]VoiceAttack=.
  3. Randomly play a sound from the selected list. If it is not valid either (undefined or set to <none>), play no sound.

Bugs/Side-Effects/Unexpected Limitations

This means a unit will lose its specialized VoicePrimaryWeaponAttack and VoiceSecondaryWeaponAttack voices once it becomes elite, unless VoicePrimaryEliteWeaponAttack and VoiceSecondaryEliteWeaponAttack are defined and valid. In the original game this happens to Boris' airstrike weapon, the Magnetron's building shake attack, Floating Disc's drain/steal, the Boomer's missile attack and Soviet Siege Chopper's artillery cannon attack.

  • This bug has been fixed in Ares 0.2.
    • Phobos Build#48 added VoiceAttack for the WeaponX version, but it broke Ares's fix.
    • However, the next DevBuild version (#49) re-added support.

References

Starting from Phobos Build#48, you can define the attack voice for each weapon of units that use the WeaponX system, in a form similar to the entries mentioned above. Refer to Phobos documentation.

See Also