kanaverum Posted March 25, 2021 Share Posted March 25, 2021 (edited) 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 March 25, 2021 by kanaverum submitted topic by mistake while writing it (see edit history) Link to comment Share on other sites More sharing options...
kanaverum Posted March 28, 2021 Author Share Posted March 28, 2021 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 More sharing options...
convergent Posted March 29, 2021 Share Posted March 29, 2021 You can modify cvars with items, see my cvar club snippet in my previous posts. If you want to access a particular enitiy's cvars and they are available to you, there is some prefix to add to the cvar name, unsure of the syntaxes. Hope that helps! 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now