Raptor007 / aq2-tng

Action Quake 2: The Next Generation. Raptor007's sandbox for testing changes. When verified stable, this code is pushed to the official aq2-tng repo:
https://github.com/aq2-tng/aq2-tng/tree/bots
4 stars 2 forks source link

dmweapon gives free weapon even if allweapon is 0 #64

Closed dynamic0 closed 6 years ago

dynamic0 commented 6 years ago

In Deathmatchmode, even if allweapon is 0, and player should only have pistol and knife, the Player can get any weapon he wants at spawn by selecting it with the command 'dmweapon'. Also when playing with Bots, the Bots will get to use the weapon you have selected with dmweapon.

aq2

Raptor007 commented 6 years ago

I think it's working as intended; dmweapon is a server cvar that selects a weapon to spawn all deathmatch players with. If you're the host, you have access to this variable.

The allweapon variable gives every player all the weapons when they spawn. You wouldn't need to use dmweapon in that case.

dynamic0 commented 6 years ago

Okay. I thought this might be the case since dmweapon isn't accessible on public servers.

Though I would like that there would be a clientside command to choose the weapon at spawn when allweapon is 1.

This issue however can be scrapped.