Jump to content

Suicide: Difference between revisions

From ModEnc²
m 28 revisions imported
No edit summary
Line 11: Line 11:
==In [[TeamTypes]]==
==In [[TeamTypes]]==
{{f|Suicide}} entry in TeamTypes pertains to response to an attack. Depending on the script action being executed, its effect differs. It can be set to yes/no. Check {{f|Aggressive|link}} for details.
{{f|Suicide}} entry in TeamTypes pertains to response to an attack. Depending on the script action being executed, its effect differs. It can be set to yes/no. Check {{f|Aggressive|link}} for details.
==In [[Weapons]] ({{ts}} and {{fs}})===
{{i}}Tiberian Sun and Firestorm doesn't support suicide weapons.
This flag got backported from YR into Vinifera. For more information, check out the official [[https://vinifera.readthedocs.io/en/latest/New-Features-and-Enhancements.html#suicide Vinifera documentation].


==In [[Weapons]] ({{ra2}} and {{yr}})==
==In [[Weapons]] ({{ra2}} and {{yr}})==

Revision as of 19:31, 5 April 2025

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: Suicide
File(s): ai(md).ini, maps
Values: Boolean values: yes or no, true or false, 1 or 0
Applicable to: TeamTypes, Weapons


In TeamTypes

Suicide entry in TeamTypes pertains to response to an attack. Depending on the script action being executed, its effect differs. It can be set to yes/no. Check Aggressive for details.

In Weapons (Tiberian Sun and Firestorm)=

Tiberian Sun and Firestorm doesn't support suicide weapons. This flag got backported from YR into Vinifera. For more information, check out the official [Vinifera documentation.

In Weapons (Red Alert 2 and Yuri's Revenge)

Causes the unit firing this weapon to die immediately instead of actually invoking the normal effects of the weapon. Additional logic is activated by also setting Explodes=yes. Used on the Demo Truck and Crazy Ivan/Terrorist IFVs. If such a weapon is fired by an AircraftType, it will cause an Internal Error (EIP 00417D05). If the weapon is fired as DeathWeapon, it does not cause problems with AircraftTypes.

Notes

  • An object that is destroyed by firing a weapon with Suicide=yes will not leave any survivors (see Crewed).
  • Suicide uses the same warhead as any warhead in the tag section. C4Warhead.

Bugs/Side-Effects/Unexpected Limitations