Two of my mods have pm_shared in c++, with a class and all. Heh.
Anyway, draco:
You need to do this:
In CBasePlayer::Spawn()
g_engfuncs.pfnSetPhysicsKeyValue(edict(), "nojump",
CVAR_GET_FLOAT("pd_nojump"));
then in pmshared:
int disableJumping(void)
{
return atoi(pmove->PM_Info_ValueForKey(pmove->physinfo, "nojump" ));
}
Then you can just check
If (disableJumping())
Return;
Use this same method for all cvars you want to test in pmove.
(you need to do it this way anyway so that the client knows about it
properly too.
-----Original Message-----
From: Jeffrey "botman" Broome [mailto:[EMAIL PROTECTED]
Sent: April 23, 2005 9:52 AM
To: [email protected]
Subject: Re: [hlcoders] (HL1 QUESTION) pm_shared.c and CVAR's?
Deadman Standing wrote:
> Sounds like either your make files or your ide is using the 'C' compiler
for
> files with a .c extension. Just change it so the 'C++' compiler is always
> used to compile 'C' and 'C++' files.
NO! Don't do this. In Half-Life 1, pm_shared.c WAS a 'C' file. You
don't want to rename it to .cpp or the compiler will REALLY complain.
--
Jeffrey "botman" Broome
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders
--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.10.2 - Release Date: 21/04/2005
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.10.2 - Release Date: 21/04/2005
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders