Skip to content

LaserZAdjust error affects the drawn position #2217

Description

@DeathFishAtEase

Description

When a weapon with IsHouseColor=false and LaserOuterColor=0,0,0 sets a value like LaserZAdjust=-999, the right endpoint of the laser drawing will be offset in the vertical direction.

Phobos Version

47b4713

Conditions to reproduce

No response

INI code

In rulesmd.ini:

[SOMEWEAPON]
LaserZAdjust=-999
IsLaser=true
LaserInnerColor=0,255,255
LaserOuterColor=0,0,0
IsHouseColor=false

Steps to reproduce

  1. Add or find a weapon that matches the parameters of the INI section shown above;
  2. give this weapon to any unit;
  3. have that unit fire at a distant target.

Expected behaviour

A line segment from the firing position to the target position

Image

Draw normally when LaserOuterColor is not 0,0,0

Actual behaviour

A line segment from the left endpoint to the right endpoint with an offset
image
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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

❓Phobos bugSomething isn't working properly

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions