示例#1
0
CMaterialEffectsCVars::~CMaterialEffectsCVars()
{
	assert (s_pThis != 0);
	s_pThis = 0;

	IConsole *pConsole = gEnv->pConsole;

	pConsole->RemoveCommand("mfx_Reload");
	pConsole->RemoveCommand("mfx_ReloadHUDEffects");
	
	pConsole->UnregisterVariable("mfx_ParticleImpactThresh", true);
	pConsole->UnregisterVariable("mfx_SoundImpactThresh", true);
	pConsole->UnregisterVariable("mfx_RaisedSoundImpactThresh", true);
	pConsole->UnregisterVariable("mfx_Debug", true);
	pConsole->UnregisterVariable("mfx_DebugVisual", true);
	pConsole->UnregisterVariable("mfx_DebugVisualFilter", true);
	pConsole->UnregisterVariable("mfx_Enable", true);
	pConsole->UnregisterVariable("mfx_pfx_minScale", true);
	pConsole->UnregisterVariable("mfx_pfx_maxScale", true);
	pConsole->UnregisterVariable("mfx_pfx_maxDist", true);
	pConsole->UnregisterVariable("mfx_Timeout", true);
	pConsole->UnregisterVariable("mfx_EnableFGEffects", true);
	pConsole->UnregisterVariable("mfx_EnableAttachedEffects", true);
	pConsole->UnregisterVariable("mfx_SerializeFGEffects", true);
}
示例#2
0
CFeatureTestMgr::~CFeatureTestMgr()
{
	IConsole* pConsole = GetISystem()->GetIConsole();

	if (pConsole)
	{
		pConsole->RemoveCommand("ft_map_runAll");
		pConsole->RemoveCommand("ft_map_forceRun");
	}
}
SForceFeedbackSystemCVars::~SForceFeedbackSystemCVars()
{
	IConsole *pConsole = gEnv->pConsole;

	if (pConsole)
	{
		pConsole->UnregisterVariable("ffs_debug", true);

		pConsole->RemoveCommand("ffs_PlayEffect");
		pConsole->RemoveCommand("ffs_StopAllEffects");
		pConsole->RemoveCommand("ffs_Reload");
	}
}
示例#4
0
//------------------------------------------------------------------------
CVehicleCVars::~CVehicleCVars()
{
	assert (s_pThis != 0);
	s_pThis = 0;

	IConsole *pConsole = gEnv->pConsole;

	pConsole->RemoveCommand("v_tpvDist");
	pConsole->RemoveCommand("v_tpvHeight");
	pConsole->RemoveCommand("v_reload_system");  
	pConsole->RemoveCommand("v_exit_player");

#if ENABLE_VEHICLE_DEBUG
	pConsole->UnregisterVariable("v_debugVehicle", true);  	
	pConsole->UnregisterVariable("v_draw_components", true);
	pConsole->UnregisterVariable("v_draw_helpers", true);
  pConsole->UnregisterVariable("v_draw_seats", true);
	pConsole->UnregisterVariable("v_draw_tm", true);  
	pConsole->UnregisterVariable("v_draw_passengers", true);
	pConsole->UnregisterVariable("v_debugdraw", true);
	pConsole->UnregisterVariable("v_debug_mem", true);

	pConsole->UnregisterVariable("v_debugView", true);  
#endif
   
	pConsole->UnregisterVariable("v_lights", true);
	pConsole->UnregisterVariable("v_lights_enable_always", true);    
	pConsole->UnregisterVariable("v_autoDisable", true);
	pConsole->UnregisterVariable("v_set_passenger_tm", true);
	pConsole->UnregisterVariable("v_disable_hull", true);  
	pConsole->UnregisterVariable("v_treadUpdateTime", true);    
	pConsole->UnregisterVariable("v_transitionAnimations", true);
	pConsole->UnregisterVariable("v_ragdollPassengers", true);
	pConsole->UnregisterVariable("v_goliathMode", true);  
  
	pConsole->UnregisterVariable("v_slipSlopeFront", true);
	pConsole->UnregisterVariable("v_slipSlopeRear", true);  
	pConsole->UnregisterVariable("v_slipFrictionModFront", true);
	pConsole->UnregisterVariable("v_slipFrictionModRear", true);

  pConsole->UnregisterVariable("v_vehicle_quality", true);
  pConsole->UnregisterVariable("v_driverControlledMountedGuns", true);
	
	pConsole->UnregisterVariable("v_debugSuspensionIK", true);  
}
示例#5
0
//------------------------------------------------------------------------
void SCVars::ReleaseCVars()
{
	IConsole *pConsole = gEnv->pConsole;

	pConsole->UnregisterVariable("mono_exceptionsTriggerMessageBoxes", true);
	pConsole->UnregisterVariable("mono_exceptionsTriggerFatalErrors", true);

	pConsole->UnregisterVariable("mono_realtimeScripting", true);

#ifndef RELEASE
	pConsole->UnregisterVariable("mono_realtimeScriptingDebug", true);
#endif

	pConsole->UnregisterVariable("mono_realtimeScriptingDetectChanges", true);
	pConsole->RemoveCommand("mono_reload");

	pConsole->UnregisterVariable("mono_softBreakpoints", true);

	pConsole->UnregisterVariable("mono_scriptDirectory", true);
}
//-------------------------------------------------------------------------
CGameRulesStandardState::~CGameRulesStandardState()
{
	IConsole *pConsole = gEnv->pConsole;
	pConsole->RemoveCommand("g_setgamestate");
	CMenuRender3DModelMgr::Release(true);
}