nzp-team / nzportable

Call of Duty: Zombies demake, powered by various Quake sourceports. https://docs.nzp.gay/
340 stars 23 forks source link

[SERVER] Double Points applies to Teddy Bear Mystery Box Refund #775

Closed flkrz closed 2 weeks ago

flkrz commented 2 weeks ago

Describe the bug When rolling the mystery box, if you get a teddy bear while double points is active, you get a double refund (free money exploit)

To Reproduce Steps to reproduce the behavior:

  1. Collect Double Points power-up
  2. Spin Mystery Box
  3. Get Teddy Bear
  4. Get 950 point refund twice

Expected behavior only one 950 point refund

Screenshots/Footage Was not running screen capture as not expecting edge case type behaviour

Affected Platforms Tested on Windows x64 (FTEQW) NOT tested on any other platform (due to unlikely reproduction requirements)

flkrz commented 2 weeks ago

Tested against build 2.0.0-indev+20240605071856

Peter0x44 commented 2 weeks ago

Does this happen in cod zombies as well?

flkrz commented 2 weeks ago

I've never noticed such behaviour in any official release.

Naievil commented 2 weeks ago

Awesome bug. Super niche but very important. Thanks for the report!

MotoLegacy commented 2 weeks ago

https://github.com/nzp-team/quakec/commit/8810ab563635f868f0633282a93d495ee2471ae7