mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-01-28 06:28:04 +03:00
Move m_rgRewardAccountRules_default to CHalfLifeMultiplay
This commit is contained in:
parent
0fa5e32208
commit
2174205530
@ -676,6 +676,7 @@ private:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
static RewardAccount m_rgRewardAccountRules[RR_END];
|
static RewardAccount m_rgRewardAccountRules[RR_END];
|
||||||
|
static RewardAccount m_rgRewardAccountRules_default[RR_END];
|
||||||
|
|
||||||
CVoiceGameMgr m_VoiceGameMgr;
|
CVoiceGameMgr m_VoiceGameMgr;
|
||||||
float m_flRestartRoundTime; // The global time when the round is supposed to end, if this is not 0 (deprecated name m_fTeamCount)
|
float m_flRestartRoundTime; // The global time when the round is supposed to end, if this is not 0 (deprecated name m_fTeamCount)
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
CCStrikeGameMgrHelper g_GameMgrHelper;
|
CCStrikeGameMgrHelper g_GameMgrHelper;
|
||||||
CHalfLifeMultiplay *g_pMPGameRules = nullptr;
|
CHalfLifeMultiplay *g_pMPGameRules = nullptr;
|
||||||
RewardAccount CHalfLifeMultiplay::m_rgRewardAccountRules[RR_END];
|
RewardAccount CHalfLifeMultiplay::m_rgRewardAccountRules[RR_END];
|
||||||
RewardAccount m_rgRewardAccountRules_default[] = {
|
RewardAccount CHalfLifeMultiplay::m_rgRewardAccountRules_default[] = {
|
||||||
REWARD_CTS_WIN, // RR_CTS_WIN
|
REWARD_CTS_WIN, // RR_CTS_WIN
|
||||||
REWARD_TERRORISTS_WIN, // RR_TERRORISTS_WIN
|
REWARD_TERRORISTS_WIN, // RR_TERRORISTS_WIN
|
||||||
REWARD_TARGET_BOMB, // RR_TARGET_BOMB
|
REWARD_TARGET_BOMB, // RR_TARGET_BOMB
|
||||||
@ -118,7 +118,7 @@ bool CCStrikeGameMgrHelper::CanPlayerHearPlayer(CBasePlayer *pListener, CBasePla
|
|||||||
BOOL bListenerAlive = pListener->IsAlive();
|
BOOL bListenerAlive = pListener->IsAlive();
|
||||||
BOOL bSenderAlive = pSender->IsAlive();
|
BOOL bSenderAlive = pSender->IsAlive();
|
||||||
|
|
||||||
return (bListenerAlive == bSenderAlive || bSenderAlive); // Dead/alive voice chats are separated, but dead can hear alive.
|
return (bListenerAlive == bSenderAlive || bSenderAlive); // Dead/alive voice chats are separated, but dead can hear alive.
|
||||||
}
|
}
|
||||||
|
|
||||||
void Broadcast(const char *sentence)
|
void Broadcast(const char *sentence)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user