Jump to content

Home

using cvars in bg_weapons.c?


Coasterdude

Recommended Posts

Posted

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?

Posted

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.

Archived

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

×
×
  • Create New...