Jump to content

ShrapnelWeapon: Difference between revisions

From ModEnc²
en>Testid123
mNo edit summary
en>Testid123
mNo edit summary
Line 9: Line 9:
|rp=yes
|rp=yes
}}
}}
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 <tt>[[ShrapnelCount]]=</tt>. <br />
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 <tt>[[ShrapnelCount]]=</tt>. <br />
This is used for the Prism Tank reflection effect.
This is used for the Prism Tank reflection effect.
Line 21: Line 20:
** [[IsLaser|It can be a laser]]
** [[IsLaser|It can be a laser]]
** [[IsElectricBolt|It can be an electric bolt]]
** [[IsElectricBolt|It can be an electric bolt]]
**[[MinDebris]]
**[[MaxDebris]]
**[[DebrisTypes]]
**[[DebrisMaximums]]
**[[Wood]]
**[[Wall]]
**[[WallAbsoluteDestroyer]]
**[[Rocker]]
**[[Particle]]
**[[ShakeXlo]]
**[[ShakeXhi]]
**[[ShakeYlo]]
**[[ShakeYhi]]
**[[AnimList]]
**[[EMEffect]]
**[[Sonic]]
**[[ElectricAssault]]
**[[IvanBomb]]
**[[IsLocomotor]]
**[[Psychedelic]]
**[[MindControl]] (Can be used if there is {{f|MindControl|yes|link}} on the warhead [[Primary]],[[ElitePrimary]],[[Weapon1]],[[EliteWeapon1]]).
**[[Airstrike]]
**[[ShrapnelWeapon]]
**[[ShrapnelCount]]
**[[AirburstWeapon]]
**[[Cluster]]
**[[Acceleration]]
**[[Level]]
**[[Dropping]]
**[[Vertical]]
**[[DetonationAltitude]]
**[[FirersPalette]]
** Projectiles which burst into additional shrapnel stages.  
** Projectiles which burst into additional shrapnel stages.  
* '''What it CANNOT have:'''  
* '''What it CANNOT have:'''  
Line 29: Line 60:
** [[IsRailgun]]
** [[IsRailgun]]
** [[IsMagBeam]]
** [[IsMagBeam]]
**[[Anim]]
**[[Burst]]
**[[UseSparkParticles]]
**[[AttachedParticleSystem]]
**[[Report]]
**[[Parasite]]
**[[DirectRocker]]
**[[Spawner]]
**[[Suicide]]
**[[FireOnce]] (Depends on adding this tag to [[Primary]],[[ElitePrimary]],[[Weapon1]],[[EliteWeapon1]] only).
**[[DrainWeapon]]
**[[MakesDisguise]]
** Projectiles which burst into airburst weapons (Needs to be confirmed).
** Projectiles which burst into airburst weapons (Needs to be confirmed).
{{Bugs}}
{{Bugs}}

Revision as of 11:00, 2 February 2025

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
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.