Skip to content

DelayedFire bugged animation since a specific commit #1937

@FS-21

Description

@FS-21

Description

Until this commit with SHA f96a3e8 DelayedFiring worked very well with this 2D vehicle (I don't know other cases). Now when firing the unit stay paralized few frames then the weapon is fired and continue the firing animation.

Before that commit:

Image

Since this commit I mentioned:

Image

Phobos Version

Develop branch

Conditions to reproduce

Use latest commit available if you want because it started since commit f96a3e8
Then use a DelayedFire weapon you have animation etc and attack something.

INI code

[CenturionLaserFire]
Damage=85
ROF=135
Range=9
Speed=100
Warhead=FSSuperBlueWH
LaserInnerColor=0,0,255
LaserOuterColor=0,0,255
LaserOuterSpread=0,0,0
LaserDuration=15
Projectile=LLine2
IsLaser=true
IsBigLaser=true
Anim=CBLUELASERMUZZLE
MinimumRange=3

DelayedFire.Duration=19                 ; integer - single or comma-sep. range (game frames)
DelayedFire.SkipInTransport=true       ; boolean
DelayedFire.OpenToppedAnimation=CBLUELASERMUZZLE  ; Animation
DelayedFire.AnimIsAttached=true        ; boolean
DelayedFire.AnimOnTurret=true          ; boolean
DelayedFire.CenterAnimOnFirer=false    ; boolean
DelayedFire.RemoveAnimOnNoDelay=false  ; boolean
DelayedFire.PauseFiringSequence=false  ; boolean
DelayedFire.OnlyOnInitialBurst=false   ; boolean

[LLine2]
Inviso=yes
Image=none
AA=no
AG=yes
SubjectToCliffs=yes
SubjectToElevation=yes
SubjectToWalls=no

[CBLUELASERMUZZLE]
Image=BLUELASERMUZZLE
Rate=460
Report=HeavyLaserSound

Note: BLUELASERMUZZLE has 11 frames.

Steps to reproduce

  1. Set the Delayed fire weapon like in the previous example that worked since the beginning of this logic.
  2. Fire & watch the animation.
    ...

Expected behaviour

The unit does the attack animation and after the specified frames the weapon is fired.

Image

Actual behaviour

Stays paralized and the firing weapon is desyncronized with the animation:

Image

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

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions