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
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
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
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
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
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
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
: 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
]
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
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
10 matches
Mail list logo