Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • Need help?

    Create a topic in the appropriate section
    Don't write everything in the chat!
  • Take a look at the marketplace

    There you can buy
    everything related to game servers
  • Don't want a ban?

    Please read our rules
    Don't disturb the order!
  • Sell or buy?

    Use services of the guarantor
    We will make your deal safe

Recommended Posts

Привет.
Сейчас я расскажу как добавить беруши на сервер ARMA 3 Altis Life.

 

1. Заходим в "core/functions" и создаем файл "fn_fadeSound.sqf".

/*
	File: fn_fadeSound.sqf
	Auhtor: Michael Francis
	
	Description:
	Fades out sound.
*/
life_fadeSound = !life_fadeSound;

if (life_fadeSound) then 
{
	1 fadeSound 0.1; // Faded to 10%
	titleText ["Вы вставили беруши.", "PLAIN"];
}
else
{
	1 fadeSound 1; // Returned to 100%
	titleText ["Вы вытащили беруши.", "PLAIN"];
};

2. Открываем "core/configuration.sqf" и находим строку "life_hunger = 100;". Ниже нее вставляем:

life_fadeSound = false;

3. Открываем "core/functions/keyHandler.sqf" и вставляем:

//Shift+P = Faded Sound
case 25:
{
    if(_shift) then
    {
        [] call life_fnc_fadeSound;
        _handled = true;
    };
};

4. Открываем файл "Functions.h" и находим "class Functions". В этот класс добавляем строку:

class fadeSound {}; 

Готово. Теперь при нажатии комбинации клавиш "Shift+P" уровень звука будет уменьшаться.

 

Ссылка на оригинал : http://www.altisliferpg.com/topic/8181-tutorial-ear-plugs/

 

Share this post


Link to post
Share on other sites



Похожее встречал на епоче армы3, не подскажите как переделать?

Share this post


Link to post
Share on other sites

Похожее встречал на епоче армы3, не подскажите как переделать?

Хоть я с а3 и не связан, но думаю принцип не сильно и отличается.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

By using this site, you automaticly agree to our Guidelines and Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.