Phobos-developers / Phobos

Ares-compatible C&C Red Alert 2: Yuri's Revenge engine extension
GNU Lesser General Public License v3.0
294 stars 89 forks source link

Custom radiation does not read custom InfDeathAnim and versus.armor tags. #1284

Closed silentrzk closed 3 months ago

silentrzk commented 3 months ago

Description

image Everything as the title says. Custom InfDeathAnim and versus.armor tags does not work with the custom radiation warhead. If I remember correctly, it worked on the previous dev build but I can't remember which build was it as I was away for several months and I just came back from modding again and downloaded the latest build, which somehow this bug occurs.

Phobos Version

Dev Build 42

Conditions to reproduce

Just normal INI code.

INI code

[ToxinRadiation]
RadDurationMultiple=1           ; int
RadApplicationDelay=16          ; int
RadApplicationDelay.Building=0  ; int
RadLevelMax=500                 ; int
RadLevelDelay=90                ; int
RadLightDelay=90                ; int
RadLevelFactor=0.2              ; double
RadLightFactor=0.1              ; double
RadTintFactor=1.0               ; double
RadColor=0,255,0                ; RGB
RadSiteWarhead=ToxinSite        ; WarheadType
RadHasOwner=true
RadHasInvoker=true

[ToxinSite]
Verses=120%,120%,120%,35%,20%,20%,0%,0%,0%,100%,100%
Versus.venom=0%
;InfDeath=7
InfDeathAnim=TOXINDIE
Radiation=yes

[BlightBomb]
Damage=180
ROF=10
Range=6
Projectile=FighterBomb
Speed=100
Warhead=BlightBombWH
Report=KirovAttack
RadType=ToxinRadiation
RadLevel=200
Burst=1

Steps to reproduce

  1. Just copy the INI code. Nothing much to reproduce.
  2. ...

Expected behaviour

InfDeathAnim should be the customized InfDeathAnim and the unit with custom armor should not get damaged.

Actual behaviour

InfDeathAnim will still use InfDeath=7 and the unit with custom armor with its armored is equivalent to 0% on custom radiation's warhead will still get damaged instead of not getting damaged at all.

Additional context

No response

Checklist

Starkku commented 3 months ago

You most likely didn't add ToxinSite to [Warheads] list so it is actually using the default radiation Warhead here. Unlikely to be a Phobos bug, check and confirm here.

silentrzk commented 3 months ago

You most likely didn't add ToxinSite to [Warheads] list so it is actually using the default radiation Warhead here. Unlikely to be a Phobos bug, check and confirm here.

Actually, it's there but I noticed it that there is another warhead that shares the same number. Thank you for your reply and I apologize for my carelessness.