Coasterdude Posted April 6, 2007 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?
ensiform Posted April 6, 2007 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.