JBMod / jbmod

Official bug tracker and request tracker for JBMod
https://www.jbmod.com/
14 stars 1 forks source link

Gravity Gun\Cheat cvars do not retain the changes made with sv_cheats 1 #2

Closed 0x5066 closed 1 year ago

0x5066 commented 1 year ago

Describe the bug If one was to make modifications to the Gravity Gun by changing the relevant physcannon_ commands, you need sv_cheats to be enabled, once done, you're able to change the maximum mass, punt force, etc. However, if you disable sv_cheats, the Gravity Gun reverts to it's default state, making the modifications done null.

Changing the Gravity Gun's behavior works in SP, whereas in MP, it does not.

Edit: Every cheat cvar reverts to it's default state when sv_cheats is disabled.

To Reproduce Steps to reproduce the behavior:

  1. Open a Server
  2. Enable sv_cheats
  3. Type impulse 101 (or give weapon_physcannon) in the client's console
  4. Change physcannon_maxforce to some high number.
  5. Punt an object with it.
  6. Disable sv_cheats
  7. Punt an object again, note that it's much weaker

Expected behavior The modifications done should still be preserved if sv_cheats is disabled.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

TEAMJBMOD commented 1 year ago

As far as I know this is normal behavior for cheat cvars in multiplayer. sv_cheats 0 means you're no longer cheating so to set them back to default. I'd be surprised if it worked differently in any other multiplayer Source game.

However physcannon settings shouldn't be cheats so this is fixed in the next release.