mirror of
https://github.com/celisej567/cool-source-archive.git
synced 2026-09-04 15:33:19 +03:00
59 lines
1.2 KiB
C++
59 lines
1.2 KiB
C++
#include "cbase.h"
|
|
#include "singleplay_gamerules.h"
|
|
#include "ammodef.h"
|
|
|
|
#ifdef GAME_DLL
|
|
#include "voice_gamemgr.h"
|
|
#endif
|
|
|
|
#ifdef CLIENT_DLL
|
|
#define CSkeletonGameRules C_SkeletonGameRules
|
|
#endif
|
|
|
|
class CSkeletonGameRules : public CSingleplayRules
|
|
{
|
|
DECLARE_CLASS( CSkeletonGameRules, CSingleplayRules);
|
|
public:
|
|
|
|
#ifndef CLIENT_DLL
|
|
virtual void PlayerThink(CBasePlayer* pPlayer)
|
|
{
|
|
|
|
}
|
|
#endif
|
|
};
|
|
|
|
REGISTER_GAMERULES_CLASS( CSkeletonGameRules );
|
|
|
|
void InitBodyQue() { }
|
|
|
|
CAmmoDef* GetAmmoDef()
|
|
{
|
|
static CAmmoDef ammo;
|
|
|
|
static bool bInitialising = true;
|
|
if ( bInitialising )
|
|
{
|
|
ammo.AddAmmoType("pistol",DMG_BULLET,TRACER_RAIL,200,200,180,30,0);
|
|
bInitialising = false;
|
|
}
|
|
|
|
return &ammo;
|
|
}
|
|
|
|
#ifdef GAME_DLL
|
|
|
|
// This being required here is a bug. It should be in shared\BaseGrenade_shared.cpp
|
|
ConVar sk_plr_dmg_grenade( "sk_plr_dmg_grenade","0");
|
|
|
|
class CVoiceGameMgrHelper : public IVoiceGameMgrHelper
|
|
{
|
|
public:
|
|
virtual bool CanPlayerHearPlayer( CBasePlayer* pListener, CBasePlayer* pTalker, bool &bProximity ) { return true; }
|
|
};
|
|
|
|
CVoiceGameMgrHelper g_VoiceGameMgrHelper;
|
|
IVoiceGameMgrHelper* g_pVoiceGameMgrHelper = &g_VoiceGameMgrHelper;
|
|
|
|
#endif // #ifdef GAME_DLL
|