Jump to content

Any way for admins to access/adjust cvars during runtime?


kanaverum

Recommended Posts

Working on some mods lately -really starting to dig into cvars and feel kind of dumb for not noticing them before.

 

I had this expectation that I'd be able to read/adjust cvars with admin commands (turn on a flag for an event, etc.), but... am I blind, or are there no admin commands for making these kinds of adjustments?

Edited by kanaverum
submitted topic by mistake while writing it (see edit history)
Link to comment
Share on other sites

For now, we created buffs as 'admin triggers' that simply change state of a global cvar (one to enable and another to disable).

 

The downside is that this has to target a player who's currently logged in, which we should be able to do with server-side scripting and parsing the output of the admin `listplayers` (lp) command.

 

Not having to do this extra step would be awesome, but this is our current path forward if there really is no other way to impact cvar without requiring the admin to log in.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...