Shard
14th May 2004, 21:57
Here they are, for v1.4:
ConPrint
//Globals
typedef void (*type_codConPrint) ( LPSTR lpText, ... );
type_codConPrint codConPrint = (type_codConPrint)0x004369F0;
//Example
codConPrint("7*4563 = %d\n", 7 * 4563);
//This will print to the console: "7*4563 = 31941"
NOTE: You can also use colours
NOTE: Add '\n' at the end to go to the next line
SetCvar
//Globals
typedef void (*type_codSetCvar) ( LPSTR lpCvar, LPSTR lpValue );
type_codSetCvar codSetCvar = (type_codSetCvar)0x0043A920;
//Example
codSetCvar("cg_thirdperson", "1");
//This will set cg_thirdperson to 1
NOTE: The value has to be a string.
NOTE: Cannot change cheat/write protected Cvars
BTW, I haven't tested these so could someone say if they work or not?
ConPrint
//Globals
typedef void (*type_codConPrint) ( LPSTR lpText, ... );
type_codConPrint codConPrint = (type_codConPrint)0x004369F0;
//Example
codConPrint("7*4563 = %d\n", 7 * 4563);
//This will print to the console: "7*4563 = 31941"
NOTE: You can also use colours
NOTE: Add '\n' at the end to go to the next line
SetCvar
//Globals
typedef void (*type_codSetCvar) ( LPSTR lpCvar, LPSTR lpValue );
type_codSetCvar codSetCvar = (type_codSetCvar)0x0043A920;
//Example
codSetCvar("cg_thirdperson", "1");
//This will set cg_thirdperson to 1
NOTE: The value has to be a string.
NOTE: Cannot change cheat/write protected Cvars
BTW, I haven't tested these so could someone say if they work or not?