Skip to content

Implement player and weapon class restrictions #264

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
krazykaze81 opened this issue Jan 28, 2021 · 0 comments
Open

Implement player and weapon class restrictions #264

krazykaze81 opened this issue Jan 28, 2021 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@krazykaze81
Copy link
Collaborator

krazykaze81 commented Jan 28, 2021

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

@krazykaze81 krazykaze81 added the enhancement New feature or request label Jan 28, 2021
@krazykaze81 krazykaze81 added this to the 1.2 milestone Jan 28, 2021
@krazykaze81 krazykaze81 changed the title Implement class restrictions Implement player class restrictions Jan 28, 2021
@krazykaze81 krazykaze81 changed the title Implement player class restrictions Implement player and weapon class restrictions Feb 2, 2021
@krazykaze81 krazykaze81 modified the milestones: 1.2, 1.3 Feb 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant