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

Recoil is at parity #107

Closed
blaberry opened this issue May 14, 2024 · 5 comments · Fixed by #560 or #577
Closed

Recoil is at parity #107

blaberry opened this issue May 14, 2024 · 5 comments · Fixed by #560 or #577
Assignees
Labels
Gunplay Gunplay elements in Neotokyo. Grenades, TTK, etc.
Milestone

Comments

@blaberry
Copy link
Collaborator

No description provided.

@blaberry blaberry added this to the Parity milestone May 14, 2024
@blaberry blaberry added the Gunplay Gunplay elements in Neotokyo. Grenades, TTK, etc. label May 18, 2024
@Agiel Agiel self-assigned this Jul 7, 2024
@Agiel
Copy link
Contributor

Agiel commented Jul 7, 2024

Pseudocode based on the OG binaries:

penaltyMin = 0
penaltyMax = 1 // seems to be true for every gun but not verified

for each shot
    accuracyPenalty = min(penaltyMax, accuracyPenalty + 0.8)

for each frame
    if airborne
        accuracyPenalty += timeDelta * 3

    if speed > 5 && not aiming
        accuracyPenalty += timeDelta * 2

    accuracyPenalty -= timeDelta * 1.2

    accuracyPenalty = clamp(accuracyPenalty, penaltyMin, penaltyMax)

@kassibuss
Copy link
Contributor

@Agiel progress?

@Agiel
Copy link
Contributor

Agiel commented Jul 31, 2024

I suppose I should've made a wip pr, but anyway the branch is here https://github.com/Agiel/neo/tree/spread_parity_table.

It's mostly finished but I broke dry firing so that needs to be fixed before it can be merged.

@Agiel Agiel mentioned this issue Aug 31, 2024
@Agiel Agiel closed this as completed in #560 Sep 8, 2024
@Agiel Agiel reopened this Sep 8, 2024
@Agiel
Copy link
Contributor

Agiel commented Sep 8, 2024

Didn't mean to close this. We have spread parity now, but view kick and mpn/pz recoil aren't at parity.

@Agiel
Copy link
Contributor

Agiel commented Sep 8, 2024

For reference, reverse engineered AddViewKick values

        X Min   X Max   Y Min   Y Max
AA13     0.25    0.5    -0.6    0.6
Jitte   -0.25   -0.5    -0.6    0.6
JitteS  -0.25   -0.5    -0.6    0.6
Knife    0.25    0.5    -0.6    0.6
Milso    0.25    0.5    -0.6    0.6
MX       0.25    0.5    -0.6    0.6
MXS      0.25    0.5    -0.6    0.6
PZ       0.25    0.5    -0.6    0.6
Supa     0.25    0.5    -0.6    0.6
SMAC    -0.25   -0.5    -0.6    0.6
SRM      0.25    0.5    -0.6    0.6
SRMS     0.25    0.5    -0.6    0.6
Tachi    0.25    0.5    -0.6    0.6
ZR68C    0.25    0.5    -0.6    0.6
ZR68S    0.15    0.25   -0.4    0.4

Client side (recoil) values. Hip and ADS are multipliers applied to the X and Y values:

         Hip    ADS    X Min  X Max   Y Min   Y Max
ZR68L    1.0    2.5    0.0    -0.5    -0.5    0.5
SRS      1.0    1.5    0.0    -0.5    -0.5    0.5
PZ       1.0    0.0    -0.25  -0.75   -0.6    0.6
MPN      1.0    1.0    -0.25  -0.5    -0.6    0.6
Kyla     10.5   6.0    0.0    -0.75   -0.5    0.5

@Agiel Agiel mentioned this issue Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Gunplay Gunplay elements in Neotokyo. Grenades, TTK, etc.
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants