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

Arc Cannon charge effect fixes #862

Merged
merged 12 commits into from
Nov 24, 2024

Conversation

NachosChipeados
Copy link
Contributor

@NachosChipeados NachosChipeados commented Sep 3, 2024

Fixes the Arc Cannon's charge effect disappearing if you tried fanning it while using the "capacitor" mod, by making the effect turn off when its not charging. This is also how it worked in Titanfall 1.

Oddly enough, theres code thats seemingly supposed to do this in _arc_cannon.nut but it doesn't seem to work properly.

Before:

Titanfall.2.2024-09-02.19-51-43.mp4

After:

Titanfall.2.2024-09-02.19-53-34.mp4

How to test:

  1. Equip the Arc Cannon with the capacitor attachment (give mp_weapon_arc_cannon capacitor)
  2. Start charging it up.

Without this pr, if you stop charging the weapon, the effect wouldn't turn off. This also means that if you tried fanning it like you would with the charge rifle, the effect would eventually run for too long and disappear.

With this pr, the effect turns off when not charging as expected.

Edit: Also adds an extra unused charge effect. See below

@GeckoEidechse
Copy link
Member

cc @Masterliberty @ASpoonPlaysGames (as you are the only other people that edited the file outside of the Respawn original)

@NachosChipeados
Copy link
Contributor Author

Extra footage of the effect not going away properly:
https://github.com/user-attachments/assets/aff807e4-1701-4e05-9963-962f5063a603

@NachosChipeados
Copy link
Contributor Author

While i was looking at TFO's _arc_cannon.nut i also found that the weapon used an extra charging effect that still exists in Titanfall 2, but is not used by northstars arc cannon weapon script.

Should i include it in this pr as well (since i'd essentially just be modyfing the same file again, and the effect also gets somewhat affected by the capacitor bug) or should i make another pr for it?
Screenshot 2024-09-02 221544

Titanfall.2.2024-09-02.22-18-10.mp4

@GeckoEidechse
Copy link
Member

Should i include it in this pr as well (since i'd essentially just be modyfing the same file again, and the effect also gets somewhat affected by the capacitor bug) or should i make another pr for it?

If the changes belong together feel free to put them in the same PR. If they can be separately tested, making separate PRs is preferred as smaller changes tend to get merged faster (and you get higher contribution stats as well hehe :P)

@NachosChipeados
Copy link
Contributor Author

NachosChipeados commented Sep 3, 2024

Hmm, i think im gonna include it in this one. Seems fitting since they're both charge effect related changes

@NachosChipeados NachosChipeados changed the title Fix Arc Cannon charge effect disappearing Arc Cannon charge effect fixes Sep 3, 2024
@NachosChipeados
Copy link
Contributor Author

Heres how the extra effect looks like without the capacitor bug fix:
https://github.com/user-attachments/assets/a7b21942-a1c1-48ea-ba20-63eca6cb909a

It doesn't disappear but it still looks off without it

@NachosChipeados
Copy link
Contributor Author

bump, since i noticed that this doesn't have any labels

@GeckoEidechse GeckoEidechse added needs testing Changes from the PR still need to be tested needs code review Changes from PR still need to be reviewed in code labels Oct 1, 2024
@GeckoEidechse
Copy link
Member

Good catch, added them now, thanks <3

Copy link
Contributor

@Zanieon Zanieon left a comment

Choose a reason for hiding this comment

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

Code is very simple actually, i'm personally in favor of merging without testing.

@GeckoEidechse GeckoEidechse merged commit a422da8 into R2Northstar:main Nov 24, 2024
3 checks passed
@NachosChipeados NachosChipeados deleted the arc_cannon_fix branch November 24, 2024 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs code review Changes from PR still need to be reviewed in code needs testing Changes from the PR still need to be tested
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

3 participants