eukara / freecs

Clean-room Counter-Strike 1.5 in QuakeC, using Nuclide SDK. Previously known as OpenCS! (2016)
https://www.frag-net.com/projects.html
ISC License
195 stars 16 forks source link

Recoil rework v2 #34

Closed mikota closed 1 year ago

mikota commented 1 year ago

As mentioned on Matrix, these are some changes to the recoil that I never got to sending.

Aside from small tweaks which almost all weapons received, there are two important changes:

  1. Recoil direction randomization: instead of a fixed probability of the horizontal recoil changing direction, a new field is introduced, cs_rec_reverse_chance acting as the probability of the hor. recoil reversing. It gets decremented with every shot fired, until a recoil direction reverse happens, when it is reset back to a high value.
  2. A re-balancing of the punchangle recoil vs bullet recoil to the rifles. The "felt" recoil, i.e. the recoil applied to punchangle has been reduced, while the recoil applied to the bullet trajectory has been made stronger.

Both of these changes were made to resolve changes discrepancies between the feel of the FreeCS recoil and original 1.5/1.6 recoil patterns.

The guns_* cvars have also been renamed to fcs_guns_* to follow FreeCS conventions.

eukara commented 1 year ago

It's great! Been testing it and it's been really solid. Thank you so much for this PR!