RE: [hlcoders] Server/Client CVAR Problems

2001-12-28 Thread Dynerman David M
: Re: [hlcoders] Server/Client CVAR Problems   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, 20

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

Re: [hlcoders] Server/Client CVAR Problems

2001-12-28 Thread Varlock
    Can I bring this topic up again? I still haven't found a solution. Here's a summary:       I'd like to be able to access server side CVAR's on the client side. The normal way to access CVAR's on the server (such as mp_aquashotgun) would be like so   if( CVAR_GET_FLOAT( "mp_aquashotgun" )

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:

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

Re: [hlcoders] Server/Client CVAR Problems

2001-12-22 Thread Varlock
, function 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_en

Re: [hlcoders] Server/Client CVAR Problems

2001-12-22 Thread omega
t; <[EMAIL 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 s

Re: [hlcoders] Server/Client CVAR Problems

2001-12-21 Thread Varlock
cture 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 &g

Re: [hlcoders] Server/Client CVAR Problems

2001-12-21 Thread omega
> To: <[EMAIL PROTECTED]> 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_d

Re: [hlcoders] Server/Client CVAR Problems

2001-12-21 Thread Varlock
- From: "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, e

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 *TEXT VERSION*

2001-12-21 Thread Varlock
Whoops. I meant to send in plain text but forgot before I pressed the send key. 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 s

[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, I define my CVAR in game.cpp like so:   cvar_t mp_a