cortex-command-community / Cortex-Command-Community-Project-Source

[ARCHIVED] Cortex Command - Open Source under GNU AGPL v3 (no game data included)
https://cortex-command-community.github.io/
GNU Affero General Public License v3.0
201 stars 41 forks source link

The Browncoat Update - ReloadStartOffset that delays removing the magazine of a gun when reloading #551

Open pawnishoovy opened 1 year ago

pawnishoovy commented 1 year ago

ReloadStartOffset in MS. Sort of like the ReloadStart equivalent of ReloadEndOffset. It does not at all change the behaviour of ReloadTime even if the magazine is already removed, but it delays the sound being played and the magazine being removed.

This will make reloads feel a little better and improve the firing sounds of single-shot/low-magazine weapons because ReloadStart won't be constantly playing over their firing sound.

This should be capped to ReloadTime - 1 so it can't wig out if it's larger than ReloadTime.

Some scripts may depend on the Magazine being immediately gone when reloading so they should be looked out for and fixed.

pawnishoovy commented 1 year ago

On second thought, maybe ReloadStartDelay is a better name for the feature described above, while ReloadStartOffset would act exactly as ReloadEndOffset does and play the sound early...