Valkyrie icon indicating copy to clipboard operation
Valkyrie copied to clipboard

Feature: support custom punishment options

Open NotSomething0 opened this issue 3 years ago • 0 comments

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.

NotSomething0 avatar Jan 04 '23 19:01 NotSomething0