SpiritQuaddicted / reQuiem

reQuiem is a custom OpenGL Quake engine for Windows and Linux. It's designed for maximum compatibility with all things Quake - past, present and future. It's fast, reliable, and easy to configure. In short: it fixes what was broken, improves what needed improving, and leaves the rest alone. It was developed by jdhack.
GNU General Public License v2.0
17 stars 2 forks source link

Ammo counter only goes up to 154 #45

Closed Xylemon closed 10 years ago

Xylemon commented 10 years ago

In Qreate, we have a weapon where its ammo is "666". When you run Qreate in reQuiem, the ammo counter only goes up to 154.

neogeographica commented 10 years ago

In the original Quake net protocol, a client's current ammo count is contained in one byte. So what you're seeing here is the value from lower 8 bits of 666, which gives you 154.

The "Fitzquake protocol" supports 16 bits of ammo count, but reQuiem doesn't use this by default. I'm not super familiar with all of reQuiem's protocol support, but on code inspection it looks like it can't act as a Fitzquake protocol server, only as a client. If that's the case then for singleplayer you'd be out of luck if you need that protocol.

Xylemon commented 10 years ago

Ah makes perfect sense, we even saw the same thing in DOSQuake. Gonna close this issue.