Jump to content

Home

using cvars in bg_weapons.c?


Coasterdude

Recommended Posts

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

Archived

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

×
×
  • Create New...