Coasterdude Posted April 6, 2007 Share Posted April 6, 2007 im trying to use a cvar like cvarname.integer in weaponData_t weaponData[WP_NUM_WEAPONS] it said cvarname.integer undefined , so i added extern vmCvar_t cvarname; to bg_weapons.c then I got Initializer not a constant error. Any ideas how I can get a cvar working in bg_weapons.c? Link to comment Share on other sites More sharing options...
ensiform Posted April 6, 2007 Share Posted April 6, 2007 Can't do it dood. Stubert had already tried this back long ago on Red Slushie and posted about this somewhere in an older page of this section. You will have to force them somewhere afterwards instead of using values in there. Link to comment Share on other sites More sharing options...
Coasterdude Posted April 7, 2007 Author Share Posted April 7, 2007 Okay thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.