Jump to content

ShrapnelCount: Difference between revisions

From ModEnc²
en>DCoder
No edit summary
 
m 5 revisions imported
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{DeeZireInclusion}}<br />
{{Flag
Specifies the number of times that the ShrapnelWeapon= will fire from the point of impact of the original weapon. Positive numbers specify exactly how many are fired, whilst using a negative number means that the number of shrapnel weapons fired is based on the Range= of the original weapon - for example, ShrapnelCount=-10 would fire (10 - ( Range= value in cells of original weapon)) further weapons.
|name=ShrapnelCount
|files={{Categ|Rules(md).ini}}
|values={{Values|integer|127}}
|default=0
|types={{Categ|Projectile|Projectiles}}
|ra2=yes
|yr=yes
|rp=yes
}}
This flag sets the amount of {{f|ShrapnelWeapon|link}} shots to fire.<br>
Positive numbers are processed literally.<br>
Negative mean "subtract the parent weapon's {{f|Range|link}} from the absolute value of this", for example, {{tt|ShrapnelCount}}={{tt|-8}} would fire {{tt|8 - parent weapon's {{f|Range|link}}}} shots.<br>
If set to {{tt|0}} (the default value), {{f|ShrapnelWeapon|link}} will assign a corresponding value based on the number of available target objects within the range defined by the sub weapon's {{f|Range|link}}.

Latest revision as of 21:04, 31 March 2025

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
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.
Positive numbers are processed literally.
Negative mean "subtract the parent weapon's Range from the absolute value of this", for example, ShrapnelCount=-8 would fire 8 - parent weapon's Range shots.
If set to 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.