: 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
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 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" )
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:
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
, 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
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
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
>
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
-
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
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
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
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
13 matches
Mail list logo