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

ShrapnelWeapon: Difference between revisions

From ModEnc
Jump to navigation Jump to search
Testid123 (talk | contribs)
mNo edit summary
Testid123 (talk | contribs)
mNo edit summary
Line 29: Line 29:
*If there is <b><u><font style="color:blue">ShrapnelWeapon</font></u></b> but not <b><u>[[ShrapnelCount]]</u></b>  
*If there is <b><u><font style="color:blue">ShrapnelWeapon</font></u></b> but not <b><u>[[ShrapnelCount]]</u></b>  
The effects of <b><u><font style="color:blue">ShrapnelWeapon</font></u></b> occur when attacking <font style="color:green">Trees</font> and <b><u>[[VehicleTypes]]</u></b> of your opponent only. ;Effects caused by <b><u><font style="color:blue">ShrapnelWeapon</font></u></b> have a random number.
The effects of <b><u><font style="color:blue">ShrapnelWeapon</font></u></b> occur when attacking <font style="color:green">Trees</font> and <b><u>[[VehicleTypes]]</u></b> of your opponent only. ;Effects caused by <b><u><font style="color:blue">ShrapnelWeapon</font></u></b> have a random number.
*If any weapon has <b>{{f|AA|yes|Link}}</b> and <b>ShrapnelWeapon=xxx</b> and the weapon attacks units floating in the sky.
Additional effects created by the <b>ShrapnelWeapon</b> section will not work if there is no unit or object (objects that support the <b>ShrapnelWeapon</b> effect such as <font style="color:green">Trees</font> etc.) under the unit that floats in the sky.


{{Automatictypelist}}
{{Automatictypelist}}

Revision as of 06:59, 21 July 2024

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: ShrapnelWeapon
File(s): rules(md).ini
Values: Strings (Names of Weapons)
Default: none
Applicable to: Projectiles


If set, the warhead will fire this weapon upon detonation, from the impact point, if the impact point is not inside a structure. The amount of shots to fire is set by ShrapnelCount=.
This is used for the Prism Tank reflection effect.

Note: Like with AirburstWeapon, this weapon has to be attached to some (potentially dummy) unit, so that the game loads this weapon at startup time. Failing to do so will result in Internal Errors whenever the shrapnel effect is supposed to fire.

Additional effects

Unlike AirburstWeapons, these can have various additional effects.

Bugs/Side-Effects/Unexpected Limitations

The effects of ShrapnelWeapon occur when attacking Trees and VehicleTypes of your opponent only. ;Effects caused by ShrapnelWeapon have a random number.

  • If any weapon has AA=yes and ShrapnelWeapon=xxx and the weapon attacks units floating in the sky.

Additional effects created by the ShrapnelWeapon section will not work if there is no unit or object (objects that support the ShrapnelWeapon effect such as Trees etc.) under the unit that floats in the sky.

Automatic List Inclusion

Objects used as values for this flag are automatically listed under the appropriate internal array. However no harm can be done by listing them manually.