Add it to that classes save restore.  Look towards the top of player.cpp,
there should be:

// Global Savedata for player
TYPEDESCRIPTION CBasePlayer::m_playerSaveData[] =
{

In there a bunch of DEFINE_FIELDS:

DEFINE_FIELD( Class, Variable, Type ),


----- Original Message -----
From: "Jeff Thornhill" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 10, 2002 2:56 PM
Subject: [hlcoders] Saving Variables


> I've got a variable defind in player.h, in
>
> class CBasePlayer : public CBaseMonster
>
> Any idea how I'd get the game to save that variable when I save/load ?
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to