logic_convar
logic_convar is a point entity available
with any version of Mapbase.A powerful entity that can read the specified ConVar’s value. It functions similarly to a logic_branch, except you could also output the value directly. Due to theoretical abuse, players have the option to disable logic_ConVar usage on a map. Use the ‘OnDenied’ output to prevent any issues from players who have disabled logic_ConVar.
KeyValues
- ConVar (SetConVar) <string>
The ConVar to read. Can be serverside or clientside(?)
The ConVar to read. Can be serverside or clientside(?)
- Compare value (SetTestValue) <string>
The value to compare with the ConVar's value during comparisons. This keyvalue supports matchers (<, >, !=, etc.).
The value to compare with the ConVar's value during comparisons. This keyvalue supports matchers (<, >, !=, etc.).
Inputs
- SetConVar
<string>
Sets the ConVar whose variable will be retrieved.
Sets the ConVar whose variable will be retrieved.
- SetTestValue
<string>
Sets the value that will be compared with the ConVar variable during comparisons.
Sets the value that will be compared with the ConVar variable during comparisons.
- GetValue
<void>
Retrieves the ConVar's value, firing OutValue with its value.
Retrieves the ConVar's value, firing OutValue with its value.
- Test
<void>
Compares the ConVar's value with the compare value.
Compares the ConVar's value with the compare value.
Outputs
- OnTrue
<void>
Fired when a comparison is true.
Fired when a comparison is true.
- OnFalse
<void>
Fired when a comparison is false.
Fired when a comparison is false.
- OutValue
<string>
Fired with the GetValue input. Passes the ConVar's current value.
Fired with the GetValue input. Passes the ConVar's current value.
- OnDenied
<void>
Fires when the ConVar is requested and logic_convar is not allowed by the server.
Fires when the ConVar is requested and logic_convar is not allowed by the server.
