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

ShrapnelCount

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: ShrapnelCount
File(s): rules(md).ini
Values: Signed integers: All whole numbers from -2147483648 to 2147483647; in rare cases, only from -32768 to 32767. (Limited to: 127)
Default: 0
Applicable to: Projectiles


This flag sets the amount of ShrapnelWeapon shots to fire.

Notes

Apply different rules based on distinct values:

  1. If ShrapnelCount>0, just ShrapnelCount=int.
  2. If ShrapnelCount=0 (the default value), ShrapnelWeapon will assign a corresponding value based on the number of available target objects within the range defined by the sub weapon's Range.
  3. If ShrapnelCount<0, the quantity becomes a dynamic value calculated:
    1. If the firer did not die:
      • Negating it and subtracting the distance (in cells) between the firer and the projectile's detonation point.
        • For example, ShrapnelCount=-8 whould fire -(-8) - distance (in cells) shots
        • If the result is ≤0, no effect will be generated.
    2. If the firer is dead or disappeared before the projectile detonates, the value is fixed at 3.