Skip to content
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

Feature: support custom punishment options #15

Open
NotSomething0 opened this issue Jan 4, 2023 · 0 comments
Open

Feature: support custom punishment options #15

NotSomething0 opened this issue Jan 4, 2023 · 0 comments

Comments

@NotSomething0
Copy link
Owner

NotSomething0 commented Jan 4, 2023

Certain punishments may be determined by the user to be more or less harmful than one another, so we should allow users to specify punishments options, something like the following could work in the config file.

set vac:internal:punishment_options {
  "event": "kick",
  "explosion": "412214124",
  "chat": "log"
}

Currently we send a punishment type via a hard coded number as seen in sv_events but this seems like a much better option. This should abstract VPlayer with a new function aptly named "punish" this can then route the punishment to the appropriate function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant