Skip to content

Small Bug With Custom Radiation #1232

@ahsy666

Description

@ahsy666

Description

Fixed the bug when units are already dead but still in map (for sinking, crashing, dying animation, etc.), they could die again.

Well I guess it doesn't fixed totally, because the custom radiation could make similar problem.
When you use the code below and use it to attack, you will kill the target at least twice! Double BOUNTY and EXPRIENCE!
Didn't test it in #38.

2025.3.4----B45 still have this too.

gamemd-ares 2024 03 27 - 19 10 40 01~3
gamemd-ares 2024 03 27 - 19 10 40 01~2

Phobos Version

v0.3.0.1,B45

Conditions to reproduce

Just do as the code.

INI code

[RadiationH]
RadDurationMultiple=1              ; integer
RadApplicationDelay=16             ; integer
RadApplicationDelay.Building=0     ; integer
RadLevelMax=500                    ; integer
RadLevelDelay=90                   ; integer
RadLightDelay=90                   ; integer
RadLevelFactor=0.2                 ; floating point value
RadLightFactor=0.1                 ; floating point value
RadTintFactor=1.0                  ; floating point value
RadColor=255,55,0                   ; integer - Red,Green,Blue
RadSiteWarhead=HeatWarhead             ; WarheadType
RadSiteWarhead.Detonate=false      ; boolean
RadHasOwner=true                  ; boolean
RadHasInvoker=true             ;----This is what problem causes

[HeatWarhead]
Verses=100%,100%,75%,100%,75%,50%,25%,20%,20%,100%,100%
Versus.Hero1=75%
Versus.Hero2=50%
PenetratesBunker=yes
InfDeath=4

[WeaponA]
RadType=RadiationH
RadLevel=100
Damage=300
Speed=80
Range=6
ROF=25
Projectile=Cannon
Warhead=XXX
Report=SlyGrenadeLauncher

[XXX]
Verses=100%,100%,80%,100%,100%,80%,100%,125%,50%,100%,100%
CellSpread.MaxAffect=1
CellSpread=1.5
PercentAtMax=.25
Wall=yes
Wood=yes
Rocker=yes
AnimList=MININUKE
InfDeath=4
Conventional=yes

Steps to reproduce

1.Just do as the code.
2.
3.
...

Expected behaviour

NA

Actual behaviour

Extra bounty and exprience.

Additional context

No response

Checklist

  • The issue happens on the latest official version of Phobos and wasn't fixed yet.
  • I agree to elaborate the details if requested and provide thorough testing if the bugfix is implemented.
  • I added a very descriptive title to this issue.
  • I used the GitHub search and read the issue list to find a similar issue and didn't find it.
  • I have attached as much information as possible (screenshots, gifs, videos, debug and exception logs, etc).

Metadata

Metadata

Assignees

No one assigned

    Labels

    ❓Phobos bugSomething isn't working properly

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions