Jump to content

Home

custom cvar not recognized


Coasterdude

Recommended Posts

Okay I put this in cg_main.c

vmCvar_t	cwm_ViewDmgBlob;

and this in cg_local.h

extern  vmCvar_t		cwm_ViewDmgBlob;

and this also in cg_main.c

{ &cwm_ViewDmgBlob, "cwm_ViewDmgBlob", "1", CVAR_ARCHIVE },

 

But ingame it says "unknown command cwm_ViewDmgBlob" and its not listed. But it still works. Any idea how I can make it 'known'.

Link to comment
Share on other sites

Shouldn't need to be, and using trap_AddCommand would be bad because then it would treat it as a command, not a CVar.

 

Did you try cwm_ and press tab?

 

I think maybe try cleaning source and recompiling and make sure your dlls are being used.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...