Skip to content
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

Clamp spark effect so ammo powerup doesn't cause issues #66

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

legokidlogan
Copy link
Member

No description provided.

@legokidlogan legokidlogan added the bug Something isn't working label Jun 7, 2024
@legokidlogan legokidlogan self-assigned this Jun 7, 2024
@@ -419,8 +420,8 @@ if SERVER then

local eff = EffectData()
eff:SetOrigin( dmgPos )
eff:SetMagnitude( 2.5 * damageFrac )
eff:SetScale( 1.75 * damageFrac )
eff:SetMagnitude( 2.5 * damageFracClamped ) -- Clamp the effect scale, as high-magntitude sparks can prevent future sparks from rendering
Copy link
Member

@brandonsturgeon brandonsturgeon Jun 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this comment would be better up by the damageFracClamped definition.

Also, still not a fan of trailing comments that are more than a few words🥲

@legokidlogan legokidlogan merged commit 30bf16e into main Jun 28, 2024
1 check passed
@legokidlogan legokidlogan deleted the patch/clamp-ion-cannon-effects branch June 28, 2024 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants