make player multiplayer in .. multiplayer

change inheritence of CHL2_Player to CBaseMultplayerPlayer instead of
CBasePlayer in multiplayer.
This commit is contained in:
tonysergi 2013-12-06 12:39:09 +09:00
parent 052c5c39b4
commit 43bde69dbd

View file

@ -15,6 +15,14 @@
#include "simtimer.h"
#include "soundenvelope.h"
// In HL2MP we need to inherit from BaseMultiplayerPlayer!
#if defined ( HL2MP )
#include "basemultiplayerplayer.h"
#define BASEPLAYERCLASS CBaseMultiplayerPlayer
#else
#define BASEPLAYERCLASS CBasePlayer
#endif
class CAI_Squad;
class CPropCombineBall;
@ -75,10 +83,10 @@ public:
//=============================================================================
// >> HL2_PLAYER
//=============================================================================
class CHL2_Player : public CBasePlayer
class CHL2_Player : public BASEPLAYERCLASS
{
public:
DECLARE_CLASS( CHL2_Player, CBasePlayer );
DECLARE_CLASS( CHL2_Player, BASEPLAYERCLASS );
CHL2_Player();
~CHL2_Player( void );