-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mining beam weapon #10483
Mining beam weapon #10483
Conversation
idk if it matters if name is null, but just in case
ehe... |
float ex = unit.mineTile.worldx() + Mathf.sin(Time.time + 48, swingScl, swingMag); | ||
float ey = unit.mineTile.worldy() + Mathf.sin(Time.time + 48, swingScl + 2f, swingMag); | ||
|
||
Draw.z(Layer.flyingUnit + 0.1f); | ||
|
||
Draw.color(Color.lightGray, Color.white, 1f - flashScl + Mathf.absin(Time.time, 0.5f, flashScl)); | ||
|
||
Draw.alpha(Renderer.unitLaserOpacity); | ||
Drawf.laser(mineLaserRegion, mineLaserEndRegion, px, py, ex, ey, 0.75f); | ||
Drawf.laser(Core.atlas.find("minelaser"), Core.atlas.find("minelaser-end"), px, py, ex, ey, 0.75f); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this accidental? You've removed the opacity code that you added a setting for, and the proper region usage too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copied code from the old PR
Extracted from #8422.
Gives the mining beam consistency with build beam with:
If your pull request is not translation or serverlist-related, read the list of requirements below and check each box: