Functions
cvars.inc
| Function | Type | Description |
|---|---|---|
| bind_pcvar_float | native | Binds a cvar's float value to a global variable. The variable will then always contain the current cvar value as it is automatically kept up to date. |
| bind_pcvar_num | native | Binds a cvar's integer value to a global variable. The variable will then always contain the current cvar value as it is automatically kept up to date. |
| bind_pcvar_string | native | Binds a cvar's string value to a global array. The array will then always contain the current cvar value as it is automatically kept up to date. |
| create_cvar | native | Creates a new cvar for the engine. |
| cvar_exists | native | Returns if a cvar is registered on the server. |
| disable_cvar_hook | native | Disables a cvar hook, stopping it from being called. |
| enable_cvar_hook | native | Enables a cvar hook, restoring it to being called. |
| get_cvar_flags | native | Returns flags of a cvar. The cvar is accessed by name. |
| get_cvar_float | native | Returns a floating value from a cvar. The cvar is accessed by name. |
| get_cvar_num | native | Returns an integer value from a cvar. The cvar is accessed by name. |
| get_cvar_pointer | native | Returns the cvar pointer of the specified cvar. |
| get_cvar_string | native | Gets a string value from a cvar. The cvar is accessed by name. |
| get_pcvar_bool | native | Returns an boolean value from a cvar via direct pointer access. |
| get_pcvar_bounds | native | Retrieves the specified value boundary of a cvar. |
| get_pcvar_flags | native | Returns flags of a cvar via direct pointer access. |
| get_pcvar_float | native | Returns a float value from a cvar via direct pointer access. |
| get_pcvar_num | native | Returns an integer value from a cvar via direct pointer access. |
| get_pcvar_string | native | Returns a string value from a cvar via direct pointer access. |
| get_plugins_cvar | native | Retrieves information about a plugin-registered cvar via iterative access. |
| get_plugins_cvarsnum | native | Returns the number of plugin-registered cvars. |
| hook_cvar_change | native | Creates a hook for when a cvar's value is changed. |
| query_client_cvar | native | Dispatches a client cvar query, allowing the plugin to query for its value on the client. |
| register_cvar | native | Registers a new cvar for the engine. |
| remove_cvar_flags | native | Removes specified flags from a cvar. The cvar is accessed by name. |
| set_cvar_flags | native | Sets specified flags to a cvar. The cvar is accessed by name. |
| set_cvar_float | native | Sets a cvar to a given float value. The cvar is accessed by name. |
| set_cvar_num | native | Sets a cvar to a given integer value. The cvar is accessed by name. |
| set_cvar_string | native | Sets a cvar to a given string value. The cvar is accessed by name. |
| set_pcvar_bool | native | Sets a boolean value to a cvar via direct pointer access. |
| set_pcvar_bounds | native | Sets the specified boundary of a cvar. |
| set_pcvar_flags | native | Sets specified flags to a cvar via direct pointer access. |
| set_pcvar_float | native | Sets a float value to a cvar via direct pointer access. |
| set_pcvar_num | native | Sets an integer value to a cvar via direct pointer access. |
| set_pcvar_string | native | Sets a string value to a cvar via direct pointer access. |