Thanks @@redsaurus. Is this a recent implementation into OpenJK? How long have we had this working? The reason I'm asking is because while I can set a CVAR from ICARUS, I can't seem to be able to retrieve one. My game crashes when trying to get a value from a CVAR. I've created this simple script to test it, but yeah... I'm getting this quite curious behaviour -- unless I'm doing something wrong and I'm not aware of it: declare( STRING, "playergen" );
if ( get(STRING, "cvar_sex") = "m" )
{
set( "cvar_sex", get(STRING, "playergen") );
free( "playergen" );
}
else
{
set( "playergen", get(STRING, "cvar_sex") );
set( "cvar_sex", "m" );
}
Setting any CVAR works fine, but while getting the value from any, the game crashes and throws me to the desktop. Not sure what the issue could be... Edit: This is the line that's crashing it:
set( "playergen", get(STRING, "cvar_sex") );