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

Difference between revisions of "Warhead"

From ModEnc
Jump to: navigation, search
m (And I forgot to remove the cleanup template...)
(Appendix - Listing Applicable INI flags)
Line 45: Line 45:
 
Warheads can also spawn particles, shake the screen, destroy tiberium and have special tags which releate to the immunetoxxxx tags
 
Warheads can also spawn particles, shake the screen, destroy tiberium and have special tags which releate to the immunetoxxxx tags
  
 +
== Applicable INI Flags ==
 +
 +
{{Applicable INI Flags}}
 +
 +
{{:AbstractTypes}}
 +
<onlyinclude>
 +
{{Applicable INI Flags Header|WarheadType}}
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|CellSpread}}  || float || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|CellInset}}  || float || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|PercentAtMax}}  || float || 1.0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|CausesDelayKill}}  || boolean || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|DelayKillFrames}}  || int || 5 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|DelayKillAtMax}}  || float || 1.0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|CombatLightSize}}  || float || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|Particle}}  || ParticleSystem || 0 || +
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|Conventional}}  || boolean || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|Wall}}  || boolean || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|WallAbsoluteDestroyer}}  || boolean || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|PenetratesBunker}}  || boolean || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|Wood}}  || boolean || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|Tiberium}}  || boolean || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|Sparky}}  || boolean || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|Sonic}}  || boolean || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|Rocker}}  || boolean || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|DirectRocker}}  || boolean || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|Fire}}  || boolean || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|Bright}}  || boolean || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|CLDisableRed}}  || boolean || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|CLDisableGreen}}  || boolean || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|CLDisableBlue}}  || boolean || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|AnimList}}  || vector<Animation> || {} || +
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|InfDeath}}  || int || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|Deform}}  || float || 0.0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|DeformThreshold}}  || int || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|EMEffect}}  || boolean || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|MindControl}}  || boolean || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|Poison}}  || boolean || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|IvanBomb}}  || boolean || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|ElectricAssault}}  || boolean || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|Parasite}}  || boolean || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|Temporal}}  || boolean || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|IsLocomotor}}  || boolean || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|Locomotor}}  || CLSID || Teleport ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|Airstrike}}  || boolean || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|Psychedelic}}  || boolean || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|BombDisarm}}  || boolean || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|Paralyzes}}  || boolean || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|Culling}}  || boolean || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|MakesDisguise}}  || boolean || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|NukeMaker}}  || boolean || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|ProneDamage}}  || float || 1.0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|Radiation}}  || boolean || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|PsychicDamage}}  || boolean || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|AffectsAllies}}  || boolean || 1 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|Bullets}}  || boolean || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|Veinhole}}  || boolean || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|ShakeXlo}}  || int || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|ShakeXhi}}  || int || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|ShakeYlo}}  || int || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|ShakeYhi}}  || int || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|MaxDebris}}  || int || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|MinDebris}}  || int || 0 ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|DebrisTypes}}  || vector<VoxelAnimation> || {} || +
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|DebrisMaximums}}  || vector<int> || {} ||
 +
|-
 +
| {{Ini|Rules}} || Object's ID || {{TTL|Verses}}  || float[11] || {1.0} ||
 +
|}
 +
</onlyinclude>
  
 
{{WeaponsRelated}}
 
{{WeaponsRelated}}

Revision as of 14:41, 13 April 2008

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: Warhead
File(s): Rules(md).ini, Art(md).ini
Values: strings (Names of Warheads)
Special Values: Special (see below)
Default: null
Applicable to: Weapons, VoxelAnims


As a Flag

In all rules(md).ini-based C&Cs, Warhead defines a Warhead that this weapon/debris should use to deal damage upon impact.

In Red Alert, it is also a flag in the [Maximums] section, defining the maximum amount of Warhead types that can co-exist at the same time. Note: In this case, the value is an integer, not a string.

In art(md).ini, Warhead can be attached to an animation, which, as long as it has a valid Damage tag, defines which armour types the animation can damage. Other tags do not work correctly with Animation warheads, including CellSpread and EMEffect

As an Object

A warhead controls most of the weapon impact behaviour, including the damage multiplier for certain armor types, the spread of the damage, the graphics of the impact, and a lot of special case functionality.

See Warhead Flags for a list of flags applicable to a Warhead.

Special

Note: this section is applicable to RA2/YR only.

Warhead=Special is a really special case. It is used for spawner weapons (weapons which instead of firing spawn certain AircraftTypes to attack the target). (See Spawns.)

Notes

Warheads are the rock, scissors, paper of RA2 weapons.

The warhead in its most basic form is a multipler to the damage of a weapon. 100% is the default and means that the weapons total damage equals: Damage= x1.0. If a warhead is only 25% effective then total damage equals: Damage x0.25. % settings can be higher the 100%.

Warheads can also spawn particles, shake the screen, destroy tiberium and have special tags which releate to the immunetoxxxx tags

Applicable INI Flags

These tables show all INI flags applicable1 to Warhead. The flags are grouped by the internal classes the flags are inherited from, and then listed in the order they are read in by the game. You can re-sort the rows by column values by clicking the arrow icons in the column headings. Each flag can be clicked to visit its page for detailed information.

Please note that this section is accurate only for Yuri's Revenge. All other C&C games use different sets of flags.

1 "Applicable" in this context means "read from the INI files". Certain flags listed here don't have any effect ingame , but they are read and in certain cases cause a crash if not present. Again, refer to each flag's individual page for detailed information.


AbstractTypes
INI File Section Key Value Type Default Value Adds to list
Rules(md).ini Object's ID Name string(48 symbols) ID
Rules(md).ini Object's ID UIName string(31 symbol) ""


WarheadType
INI File Section Key Value Type Default Value Adds to list
Rules(md).ini Object's ID Template:TTL float 0
Rules(md).ini Object's ID Template:TTL float 0
Rules(md).ini Object's ID Template:TTL float 1.0
Rules(md).ini Object's ID Template:TTL boolean 0
Rules(md).ini Object's ID Template:TTL int 5
Rules(md).ini Object's ID Template:TTL float 1.0
Rules(md).ini Object's ID Template:TTL float 0
Rules(md).ini Object's ID Template:TTL ParticleSystem 0 +
Rules(md).ini Object's ID Template:TTL boolean 0
Rules(md).ini Object's ID Template:TTL boolean 0
Rules(md).ini Object's ID Template:TTL boolean 0
Rules(md).ini Object's ID Template:TTL boolean 0
Rules(md).ini Object's ID Template:TTL boolean 0
Rules(md).ini Object's ID Template:TTL boolean 0
Rules(md).ini Object's ID Template:TTL boolean 0
Rules(md).ini Object's ID Template:TTL boolean 0
Rules(md).ini Object's ID Template:TTL boolean 0
Rules(md).ini Object's ID Template:TTL boolean 0
Rules(md).ini Object's ID Template:TTL boolean 0
Rules(md).ini Object's ID Template:TTL boolean 0
Rules(md).ini Object's ID Template:TTL boolean 0
Rules(md).ini Object's ID Template:TTL boolean 0
Rules(md).ini Object's ID Template:TTL boolean 0
Rules(md).ini Object's ID Template:TTL vector<Animation> {} +
Rules(md).ini Object's ID Template:TTL int 0
Rules(md).ini Object's ID Template:TTL float 0.0
Rules(md).ini Object's ID Template:TTL int 0
Rules(md).ini Object's ID Template:TTL boolean 0
Rules(md).ini Object's ID Template:TTL boolean 0
Rules(md).ini Object's ID Template:TTL boolean 0
Rules(md).ini Object's ID Template:TTL boolean 0
Rules(md).ini Object's ID Template:TTL boolean 0
Rules(md).ini Object's ID Template:TTL boolean 0
Rules(md).ini Object's ID Template:TTL boolean 0
Rules(md).ini Object's ID Template:TTL boolean 0
Rules(md).ini Object's ID Template:TTL CLSID Teleport
Rules(md).ini Object's ID Template:TTL boolean 0
Rules(md).ini Object's ID Template:TTL boolean 0
Rules(md).ini Object's ID Template:TTL boolean 0
Rules(md).ini Object's ID Template:TTL boolean 0
Rules(md).ini Object's ID Template:TTL boolean 0
Rules(md).ini Object's ID Template:TTL boolean 0
Rules(md).ini Object's ID Template:TTL boolean 0
Rules(md).ini Object's ID Template:TTL float 1.0
Rules(md).ini Object's ID Template:TTL boolean 0
Rules(md).ini Object's ID Template:TTL boolean 0
Rules(md).ini Object's ID Template:TTL boolean 1
Rules(md).ini Object's ID Template:TTL boolean 0
Rules(md).ini Object's ID Template:TTL boolean 0
Rules(md).ini Object's ID Template:TTL int 0
Rules(md).ini Object's ID Template:TTL int 0
Rules(md).ini Object's ID Template:TTL int 0
Rules(md).ini Object's ID Template:TTL int 0
Rules(md).ini Object's ID Template:TTL int 0
Rules(md).ini Object's ID Template:TTL int 0
Rules(md).ini Object's ID Template:TTL vector<VoxelAnimation> {} +
Rules(md).ini Object's ID Template:TTL vector<int> {}
Rules(md).ini Object's ID Template:TTL float[11] {1.0}


Weapon c4.png Armament System related Flags on ModEnc