ok the server side cvar works fine… but when I try to pass it over to the client it returns a 0 not the value in which the cvar holds
cg_main.c
{ &ds_axisNumCO, "", "0", 0 }, // communicated by systeminfo
cg_servercmds.c CG_ParseServerinfo
trap_Cvar_Set("ds_axisNumCO",Info_ValueForKey(info,"d_axisNumCO"));
ds_axisNumCO.integer = atoi( Info_ValueForKey(info,"d_axisNumCO") );
I later use it with CG_Text_Paint_Ext to print out the number to the client
s = va( "%i", ds_axisNumCO.integer);
CG_Text_Paint_Ext( 630, 140, 0.15f, 0.15f, colorGreen, s, 0, 0, ITEM_TEXTSTYLE_SHADOWED, &cgs.media.limboFont1 );
which I know this part of the code works… its just that the trap_ cvar isnt working
IVe done this before and it worked… true it was a qboolean last time and not an intenger value like this time… but it still trapped the cvar… but for some reason I cant get this one to trap and I followed what I did last time
anyone got a clue as to why this cvar isnt trapping in the client cvar?
