>    Because the CVAR I am dealing with must be used by a weapon, it has to
>be accessible in a weapon file shared between the server and the client. My
>main problem here is the CVAR_GET_FLOAT function used on the server is not
>accesible by the client. The equivalent client-side function
>(gEngfuncs.pfnGetCvarFloat) can't be used in a weapons file because the
>weapons file is shared between the server and the client.

Which suggests that you might want to create a function, int GlobalCvarGetFloat(char 
*cvarname), which returns the value of the cvar using either gEngfuncs.pfnGetCvarFloat 
or CVAR_GET_FLOAT anywhere those functions are available in the client and server DLLs 
respectively - thus existing identically in both DLLs - and then use extern int 
GlobalCvarGetFloat(char *cvarname); to get it available in your shotgun code file. 
Then, GlobalCvarGetFloat("mp_aquashotgun") should return the value you want, whether 
serverside or nay.

Toodle pip.

-randomnine-


----------
Personalise your email address at http://another.com
THINK: your slogan or email address on a gorgeous mousemat
CLICK HERE http://another-shop.com

Reply via email to