Page 1 of 1

ConVar Value Type Restriction

Posted: Wed Nov 07, 2018 11:01 pm
by decompile
Hey,

Is there currently a way to restrict the value of a ConVar to a specific value type?

Currently I'm using a server_cvar Hook to check for valid FLOAT value and cache it meanwhile. Something like "type:float" woulda be hella cool, without needing to store it under a seperate variable.

Re: ConVar Value Type Restriction

Posted: Sun Nov 11, 2018 3:51 pm
by Ayuto
decompile wrote:Is there currently a way to restrict the value of a ConVar to a specific value type?

No, not yet.