You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used the GitHub search to find a similar issue and didn't find it.
I have attached as much information as possible (screenshots, videos, links, etc).
Description
Allow warheads to be directly specified for tiberium types such as [Vinifera] and make the game use all of the warhead's AnimList= animations, regardless of the tiberium's Power= value.
This will be necessary to prevent #898 from causing issues.
The tiberium_damage patch of ts-patches is a work-around to allow tiberium types that are supposed to do a lot of damage to infantry that walk over it to still have working chain-reaction explosions.
The issue becomes immediately apparent when the hardcoded Power= value is removed for the Vinifera tiberium type because it's supposed to behave like it has Power=100 when infantry walk over it, while still behaving like it had Power=17 when exploding in a chain-reaction.
When tiberium explodes in a chain-reaction, it displays specific animations from the C4Warhead's AnimList and the higher the Power= value of the tiberium type is, the higher the indexes of the displayed C4Warhead AnimList items need to be and if no animations with an index that's high enough are listed, no explosion will be shown at all.
This means that when Vinifera's Power value is no longer hardcoded and it has Power=100 in order to deal the appropriate amount of damage to infantry that walk over it, the number of animations that need to be specified for the C4Warhead's AnimList= key needs to be so high that the string becomes too long for the game to read (and even if the game would read it, most of the listed animations would be redundant and it'd become a nightmare to track which explosions are actually used).
So as a work-around to the problem mentioned above, the tiberium_damage patch multiplies the damage that's inflicted on infantry that walk over tiberium by 5 so that the Vinifera tiberium type can be given Power=20 in order to deal the same damage as it previously did with Power=100 (and this also solves the same issue for when mods need other tiberium types to deal a lot of damage to infantry while also being able to explode).
The text was updated successfully, but these errors were encountered:
First Check
Description
Allow warheads to be directly specified for tiberium types such as
[Vinifera]
and make the game use all of the warhead'sAnimList=
animations, regardless of the tiberium'sPower=
value.Proposed Code (optional)
Additional Context
This will be necessary to prevent #898 from causing issues.
The tiberium_damage patch of ts-patches is a work-around to allow tiberium types that are supposed to do a lot of damage to infantry that walk over it to still have working chain-reaction explosions.
The issue becomes immediately apparent when the hardcoded Power= value is removed for the Vinifera tiberium type because it's supposed to behave like it has Power=100 when infantry walk over it, while still behaving like it had Power=17 when exploding in a chain-reaction.
When tiberium explodes in a chain-reaction, it displays specific animations from the C4Warhead's AnimList and the higher the Power= value of the tiberium type is, the higher the indexes of the displayed C4Warhead AnimList items need to be and if no animations with an index that's high enough are listed, no explosion will be shown at all.
This means that when Vinifera's Power value is no longer hardcoded and it has Power=100 in order to deal the appropriate amount of damage to infantry that walk over it, the number of animations that need to be specified for the C4Warhead's AnimList= key needs to be so high that the string becomes too long for the game to read (and even if the game would read it, most of the listed animations would be redundant and it'd become a nightmare to track which explosions are actually used).
So as a work-around to the problem mentioned above, the tiberium_damage patch multiplies the damage that's inflicted on infantry that walk over tiberium by 5 so that the Vinifera tiberium type can be given Power=20 in order to deal the same damage as it previously did with Power=100 (and this also solves the same issue for when mods need other tiberium types to deal a lot of damage to infantry while also being able to explode).
The text was updated successfully, but these errors were encountered: