mirror of
https://github.com/nillerusr/source-engine.git
synced 2025-04-20 09:57:48 +00:00
game: implement tf_is_mann_vs_machive_mode and tf_allow_training_achivements cvars
This commit is contained in:
parent
3204f9b055
commit
5dc95ac026
@ -42,6 +42,7 @@
|
|||||||
#include "AI_ResponseSystem.h"
|
#include "AI_ResponseSystem.h"
|
||||||
#include "hl2orange.spa.h"
|
#include "hl2orange.spa.h"
|
||||||
#include "hltvdirector.h"
|
#include "hltvdirector.h"
|
||||||
|
#include "multiplay_gamerules.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// memdbgon must be the last include file in a .cpp file!!!
|
// memdbgon must be the last include file in a .cpp file!!!
|
||||||
@ -2841,12 +2842,23 @@ bool CTFGameRules::IsBirthday( void )
|
|||||||
return ( m_iBirthdayMode == BIRTHDAY_ON );
|
return ( m_iBirthdayMode == BIRTHDAY_ON );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ConVar tf_is_mann_vs_machine_mode( "tf_is_mann_vs_machine_mode", "0", FCVAR_REPLICATED );
|
||||||
|
ConVar tf_allow_training_achievements( "tf_allow_training_achievements", "0", FCVAR_REPLICATED );
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// Purpose: FIXME: stub
|
// Purpose: FIXME: stub
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
bool CTFGameRules::IsMannVsMachineMode( void )
|
bool CTFGameRules::IsMannVsMachineMode( void )
|
||||||
{
|
{
|
||||||
return false;
|
return tf_is_mann_vs_machine_mode.GetInt() ? true : false;
|
||||||
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
// Purpose: FIXME: stub
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
bool CTFGameRules::AllowTrainingAchievements( void )
|
||||||
|
{
|
||||||
|
return tf_allow_training_achievements.GetInt() ? true : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@ -19,6 +19,8 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
extern ConVar tf_is_mann_vs_machine_mode;
|
||||||
|
extern ConVar tf_allow_training_achievements;
|
||||||
|
|
||||||
#include "teamplayroundbased_gamerules.h"
|
#include "teamplayroundbased_gamerules.h"
|
||||||
#include "convar.h"
|
#include "convar.h"
|
||||||
@ -108,6 +110,7 @@ public:
|
|||||||
virtual const unsigned char *GetEncryptionKey( void ) { return (unsigned char *)"E2NcUkG2"; }
|
virtual const unsigned char *GetEncryptionKey( void ) { return (unsigned char *)"E2NcUkG2"; }
|
||||||
|
|
||||||
bool IsMannVsMachineMode( void ); // FIXME: stub
|
bool IsMannVsMachineMode( void ); // FIXME: stub
|
||||||
|
bool AllowTrainingAchievements( void ); // FIXME: stub
|
||||||
|
|
||||||
#ifdef GAME_DLL
|
#ifdef GAME_DLL
|
||||||
public:
|
public:
|
||||||
|
Loading…
Reference in New Issue
Block a user