by edward850 » Sun Jul 20, 2014 9:26 pm
This isn't a bug with usercvars, but rather one with the ACSVM itself, it seems. Your defined string constants are being destroyed when loaded on top of another script, which means all getcvar is seeing is a NULL string. If you use "cl_camdist" manually instead of CVAR_CAMERADISTANCE, everything works as expected. Can't really say why this is happening, though.
This isn't a bug with usercvars, but rather one with the ACSVM itself, it seems. Your defined string constants are being destroyed when loaded on top of another script, which means all getcvar is seeing is a NULL string. If you use "cl_camdist" manually instead of CVAR_CAMERADISTANCE, everything works as expected. Can't really say why this is happening, though.