rtcwmp-com / rtcwPro

RtcwPro - Competition Mod for Return to Castle Wolfenstein
http://rtcwpro.com
GNU General Public License v3.0
26 stars 6 forks source link

Implement player and weapon class restrictions #264

Open krazykaze81 opened 3 years ago

krazykaze81 commented 3 years ago

A group of CVARs used to limit the number of each class on a team; default is -1 (no limit).

g_maxTeamLF g_maxTeamMedic g_maxTeamEngineer g_tmaxTeamSoldier

This issue will also revamp the weapon restrictions to work the same as classes.

g_maxTeamPF g_maxTeamSniper g_maxTeamVenom g_maxTeamFlamer

Current Weapon issue as follows:

RtCWpro 1.1 bug noticed 13/01/21: Accidentally went PF when I mashed my spawn binds and it allowed me to spawn PF even though our team already had one. Not seeing this in the open bugs list. Server it occurred on: connect hyperion-gaming.net:17700;password charizard

Joep was the other team's (Axis) PF, he killed me that spawn with it and he didn't change all round, so there were 3x PFs active in total in the game. Notice I actually pressed the correct class at seemingly the exact second I spawned. Maybe I accidentally tricked the weapon restriction by doing this at the last second? I doubt anyone will intentionally exploit it but if there’s any optimisations you can make to narrow the window further that’s not a bad thing.

Video https://clips.twitch.tv/AntediluvianAnnoyingEyeballOSfrog