Re: [hlcoders] Server/Client CVAR Problems

2001-12-28 Thread Cortex
You could try #ifdef CLIENT_DLL extern ... gEngFuncs" #endif I don't know if it helps... - Original Message - From: Varlock To: [EMAIL PROTECTED] Sent: Saturday, December 29, 2001 3:20 AM Subject: Re: [hlcoders] Server/Client CVAR Problems Can I

Re: [hlcoders] Server/Client CVAR Problems

2001-12-22 Thread omega
PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, December 22, 2001 1:50 AM Subject: Re: [hlcoders] Server/Client CVAR Problems I should have described the problem a bit better. I did do that, which means it compiles fine on the server side of things. But as soon as I compile it on the client

Re: [hlcoders] Server/Client CVAR Problems

2001-12-22 Thread Varlock
pointer). - Original Message - From: omega [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, December 22, 2001 6:15 AM Subject: Re: [hlcoders] Server/Client CVAR Problems well, you could always try: #ifdef CLIENT_DLL extern cl_enginefunc_t gEngfuncs; #endif

Re: [hlcoders] Server/Client CVAR Problems

2001-12-22 Thread Biggs
I am morpheus. - Original Message - From: Varlock [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, December 22, 2001 1:07 PM Subject: Re: [hlcoders] Server/Client CVAR Problems The only problem with doing that is that later on in the file I actually have to use gEngfuncs

Re: [hlcoders] Server/Client CVAR Problems

2001-12-22 Thread Nathan Taylor
qwaw? - Original Message - From: Biggs Sent: Saturday, December 22, 2001 1:31 PM To: [EMAIL PROTECTED] Subject: Re: [hlcoders] Server/Client CVAR Problems I am morpheus.- Original Message -From: "Varlock" [EMAIL PROTECTED]To: [EMAIL PROTECTED]Sent: Saturday, December

[hlcoders] Server/Client CVAR Problems

2001-12-21 Thread Varlock
I've got a bit of a problem. I'd like to add a new CVAR to Half-Life called "mp_aquashotgun". If it's 0, you can't fire the shotgun under water (like normal). If it's anything else (ie. 1), then you CAN shoot the shotgun underwater. So, Idefine my CVAR in game.cpp like so: cvar_t

Re: [hlcoders] Server/Client CVAR Problems

2001-12-21 Thread Reedbeta
Simple. On the client, just use gEngfuncs.pfnGetCvarFloat(mp_aquashotgun). This is, in fact, exactly what the CVAR_GET_FLOAT macro does on the server, so you could do something like this: #ifdef CLIENT_DLL #define CVAR_GET_FLOAT(s) (gEngfuncs.pfnGetCvarFloat(s)) #endif and then use your

Re: [hlcoders] Server/Client CVAR Problems

2001-12-21 Thread Varlock
: Reedbeta [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, December 21, 2001 8:40 PM Subject: Re: [hlcoders] Server/Client CVAR Problems Simple. On the client, just use gEngfuncs.pfnGetCvarFloat(mp_aquashotgun). This is, in fact, exactly what the CVAR_GET_FLOAT macro does on the server, so

Re: [hlcoders] Server/Client CVAR Problems

2001-12-21 Thread omega
] Sent: Saturday, December 22, 2001 1:25 AM Subject: Re: [hlcoders] Server/Client CVAR Problems Unfortunately, I can't use gEngfuncs in shotgun.cpp or crossbow.cpp because it isn't defined. If I try to include the correct header (hud.h or cl_dll.h), then I get a whole bunch of errors. Any ideas

Re: [hlcoders] Server/Client CVAR Problems

2001-12-21 Thread Varlock
definition alone, but I haven't had much luck. - Varlock - Original Message - From: omega [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, December 21, 2001 10:47 PM Subject: Re: [hlcoders] Server/Client CVAR Problems #ifdef CLIENT_DLL #include header #endif -omega Blackened