Перейти к содержимому


Фотография

Скрипт, замедляющий игру во время просмотра меню команд


  • Авторизуйтесь для ответа в теме
В этой теме нет ответов

#1 OFFLINE   Ibragim

Ibragim

    Сержант

  • Пользователи
  • 161 сообщений

Отправлено 21 February 2021 - 11:49

PC_loop_allow_acc_factor = 
	{		
		params ["_percent"];
		
		while {isServer} do 
			{				
				waitUntil 
					{
						sleep 0.1;
						
						commandingMenu in ["RscMainMenu","RscMoveHigh","#WATCH","#WATCH0","RscWatchDir","RscWatchMoreDir","#GET_IN","RscStatus","RscCallSupport","#ACTION","RscCombatMode","RscFormations","RscTeam","RscSelectTeam","RscReply","#User:BIS_Menu_GroupCommunication","#CUSTOM_RADIO","RscRadio","RscGroupRootMenu","#User:BIS_fnc_addCommMenuItem_menu","RscMenuReply","RscMenuTeam","RscMenuFormations","RscMenuSelectTeam","RscMenuTeam","RscMenuCombatMode","RscMenuStatus","RscMenuEngage","#WATCH22","RscMenuMove"];
					};
				
				setAccTime (0.01 * _percent);
				
				waitUntil 
					{
						sleep 0.1;
						
						!(commandingMenu in ["RscMainMenu","RscMoveHigh","#WATCH","#WATCH0","RscWatchDir","RscWatchMoreDir","#GET_IN","RscStatus","RscCallSupport","#ACTION","RscCombatMode","RscFormations","RscTeam","RscSelectTeam","RscReply","#User:BIS_Menu_GroupCommunication","#CUSTOM_RADIO","RscRadio","RscGroupRootMenu","#User:BIS_fnc_addCommMenuItem_menu","RscMenuReply","RscMenuTeam","RscMenuFormations","RscMenuSelectTeam","RscMenuTeam","RscMenuCombatMode","RscMenuStatus","RscMenuEngage","#WATCH22","RscMenuMove"]);
					};
				
				setAccTime 1;								
			};		
	};

[20] spawn PC_loop_allow_acc_factor; // 20 - сколько процентов от реальной скорости времени должно остаться.

  • 1




Яндекс.Метрика