NeotokyoRebuild / neo

NEOTOKYO Rebuild - Source SDK 2013 mod of NEOTOKYO
https://neotokyorebuild.github.io/
Other
15 stars 12 forks source link

Recoil is at parity #107

Open blaberry opened 3 months ago

Agiel commented 2 months ago

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 commented 1 month ago

@Agiel progress?

Agiel commented 1 month ago

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.