FF Diff Viewer

Comparing 2006 Base SDK to Fortress Forever 2.46

cl_dll/cdll_client_int.cpp

85868788899091
#include "tier2/tier2.h" #include "avi/iavi.h" #include "hltvcamera.h" // memdbgon must be the last include file in a .cpp file!!! #include "tier0/memdbgon.h"
85868788899091929394959697
#include "tier2/tier2.h" #include "avi/iavi.h" #include "hltvcamera.h" #include "ff_vieweffects.h" #include "G15.h" // BEG: Added by Mulchman for team menu at level start up #include // END: Added by Mulchman for team menu at level start up // memdbgon must be the last include file in a .cpp file!!! #include "tier0/memdbgon.h"
159160161162163164
class CViewRender; extern CViewRender g_DefaultViewRender; extern void StopAllRumbleEffects( void ); static C_BaseEntityClassList *s_pClassLists = NULL;
165166167168169170171172
class CViewRender; extern CViewRender g_DefaultViewRender; extern ConVar sv_motd_enable; extern void StopAllRumbleEffects( void ); static C_BaseEntityClassList *s_pClassLists = NULL;
210211212213214215
bool g_bLevelInitialized; bool g_bTextMode = false; //----------------------------------------------------------------------------- // Purpose: interface for gameui to modify voice bans //-----------------------------------------------------------------------------
218219220221222223224225226227228229230
bool g_bLevelInitialized; bool g_bTextMode = false; // --> Mirv: For the hud hints loading/saving & effects control extern void HudHintLoad(const char *pMapName); extern void HudHintSave(); extern void ClearAllowedEffects(); // <-- Mirv //----------------------------------------------------------------------------- // Purpose: interface for gameui to modify voice bans //-----------------------------------------------------------------------------
653654655656657658
if (!Initializer::InitializeAllObjects()) return false; if (!ParticleMgr()->Init(MAX_TOTAL_PARTICLES, materials)) return false;
668669670671672673674675676677678679680681682683684685
if (!Initializer::InitializeAllObjects()) return false; // --> Mirv: Default value for cl_updaterate up to 33 ConVar *cl_updaterate = cvar->FindVar("cl_updaterate"); ConVar *cl_cmdrate = cvar->FindVar("cl_cmdrate"); cl_updaterate->SetValue(66); cl_cmdrate->SetValue(66); // Turn off r_dynamic until our wrapper sets it // ConVar *r_dynamic = cvar->FindVar("r_dynamic"); // r_dynamic->SetValue(0); // <-- Mirv // there are lots of dlight options now, so nevermind -- Jon if (!ParticleMgr()->Init(MAX_TOTAL_PARTICLES, materials)) return false;
705706707708709710
view->Init(); vieweffects->Init(); C_BaseTempEntity::PrecacheTempEnts();
732733734735736737738
view->Init(); vieweffects->Init(); ffvieweffects->Init(); // |-- Mirv C_BaseTempEntity::PrecacheTempEnts();
736737738739740741
ClientWorldFactoryInit(); return true; }
764765766767768769770771
ClientWorldFactoryInit(); G15::Initialize(); return true; }
745746747748749750
//----------------------------------------------------------------------------- void CHLClient::Shutdown( void ) { ClientWorldFactoryShutdown(); g_pGameSaveRestoreBlockSet->RemoveBlockHandler( GetViewEffectsRestoreBlockHandler() );
775776777778779780781782
//----------------------------------------------------------------------------- void CHLClient::Shutdown( void ) { G15::Shutdown(); ClientWorldFactoryShutdown(); g_pGameSaveRestoreBlockSet->RemoveBlockHandler( GetViewEffectsRestoreBlockHandler() );
828829830831832833
// I don't think this is necessary any longer, but I will leave it until // I can check into this further. C_BaseTempEntity::CheckDynamicTempEnts(); } //-----------------------------------------------------------------------------
860861862863864865866867
// I don't think this is necessary any longer, but I will leave it until // I can check into this further. C_BaseTempEntity::CheckDynamicTempEnts(); G15::Update(); } //-----------------------------------------------------------------------------
1051105210531054105510561057
input->LevelInit(); vieweffects->LevelInit(); // Tell mode manager that map is changing modemanager->LevelInit( pMapName );
10851086108710881089109010911092109310941095109610971098
input->LevelInit(); vieweffects->LevelInit(); ffvieweffects->LevelInit(); // |-- Mirv // --> Mirv: Initialise hud hints & clear effect data HudHintLoad(pMapName); ClearAllowedEffects(); // <-- Mirv // Tell mode manager that map is changing modemanager->LevelInit( pMapName );
109911001101110211031104
IGameSystem::LevelInitPostEntityAllSystems(); C_PhysPropClientside::RecreateAll(); internalCenterPrint->Clear(); }
11401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165
IGameSystem::LevelInitPostEntityAllSystems(); C_PhysPropClientside::RecreateAll(); internalCenterPrint->Clear(); if (!engine->IsHLTV()) { // BEG: Added by Mulchman for team menu // Show the team menu selection every time we start a level gViewPortInterface->ShowPanel( PANEL_TEAM, true ); } // Show the class menu selection every time we start a level //gViewPortInterface->ShowPanel( PANEL_CLASS, true ); if (!engine->IsHLTV() || (engine->IsHLTV() && !engine->IsPlayingDemo())) { if (sv_motd_enable.GetBool()) gViewPortInterface->ShowPanel( PANEL_INFO, true ); // Pop the info panel back up above the team change menu // --> Mirv: Don't show this panel anymore //IViewPortPanel *pPanel = gViewPortInterface->FindPanelByName( PANEL_INFO ); //if( pPanel ) // pPanel->ShowPanel( true ); // <-- Mirv } }
114611471148114911501151
gHUD.LevelShutdown(); internalCenterPrint->Clear(); #ifndef _XBOX messagechars->Clear();
12071208120912101211121212131214121512161217121812191220122112221223
gHUD.LevelShutdown(); // --> Mirv: Initialise hud hints HudHintSave(); // <-- Mirv //-- Added by L0ki -- // Hide these panels so the game doesnt crash on us gViewPortInterface->ShowPanel( PANEL_INFO, false ); gViewPortInterface->ShowPanel( PANEL_TEAM, false ); gViewPortInterface->ShowPanel( PANEL_CLASS, false ); gViewPortInterface->ShowPanel( PANEL_MAP, false ); internalCenterPrint->Clear(); #ifndef _XBOX messagechars->Clear();
174217431744
VPROF("RenderViewEx"); view->RenderViewEx( setup, nClearFlags, whatToDraw ); }
1814181518161817181818191820182118221823182418251826
VPROF("RenderViewEx"); view->RenderViewEx( setup, nClearFlags, whatToDraw ); } // Wrapper CVAR for an archiveable r_dynamic void FF_Dynamic_Callback(ConVar *var, char const *pOldString) { ConVar *c = cvar->FindVar("r_dynamic"); if (c) c->SetValue(var->GetString()); } ConVar r_dynamic_ff("r_dynamic_ff", "1", FCVAR_ARCHIVE, "", FF_Dynamic_Callback);