Рандомная смена оружия в режиме gun master в battlefield 3 и battlefield 4

Slawter

Support team
5 Сен 2014
22.525
879
К сожалению я не могу сделать, просто нет времени, я не за виндовс.
 

Slawter

Support team
5 Сен 2014
22.525
879
Вы запишите видео начав все делать заново, и я посмотрю что вы делаете не так.
 

Slawter

Support team
5 Сен 2014
22.525
879
Лимит вроде вставили правильно, теперь покажите мне следующее на видео:

1) вот поставьте сервер на играющей схватке команд,
2) установите через прокон следующей картой мастер оружия
3) завершите раунд через прокон

и посмотрим сменится ли предустановка
 
Лимит вроде вставили правильно, теперь покажите мне следующее на видео:

1) вот поставьте сервер на играющей схватке команд,
2) установите через прокон следующей картой мастер оружия
3) завершите раунд через прокон

и посмотрим сменится ли предустановка
Пробывал но тупанул и не нажал на запись, пресет так и не изменился (тыже про настройку в стартап файле имел виду)
 

Slawter

Support team
5 Сен 2014
22.525
879
Я не знаю что у вас там, я записал видео, все работает.
Как загрузится скину сюда
 
The delay is to ensure that xVoteMap and/or UMM both have a chance to do what they need to do before this limit sets the weapons preset, so yes, setting it to 40 will help make sure it work as intended.
If you are just selecting the next map before the end of a round, that should be fine as long as UMM doesn't change that. However, if you're actually referring to manually ending a round, then it won't work because no OnRoundOver event is triggered in such a case.
 

Softail

Customer
9 Янв 2019
314
6
55
та же проблема - пресеты не переключаются
int iDelay = 40 не помогает
в чате есть сообщение, что следующий пресет другой, но в итоге прежний
 
та же проблема - пресеты не переключаются
int iDelay = 40 не помогает
в чате есть сообщение, что следующий пресет другой, но в итоге прежний
Код:
Thread gmrnd = new Thread(
    new ThreadStart(
        delegate
        {
            try
            {
                int iDelay = 60;
                int lastPreset = 0;
                bool ensureNight = true;
                bool allowStandard = true;
                bool allowClassic = true;
                bool allowPistol = true;
                bool allowDLC = true;
                bool allowTroll = true;
                bool allowNight = true;
                bool showChat = true;
                bool showYell = false;
                bool showProcon = true;
                if (iDelay > 0)
                {
                    Thread.Sleep(iDelay * 1000);
                }
                if (server.NextGamemode == "GunMaster0" || server.NextGamemode == "GunMaster1")
                {
                    bool bGetting = true;
                    int nextPreset = 0;
                    int maxPreset = 6;
                    Random rnd = new Random();
                    String lastKey = "_LASTGM_";
                    String[] presets = { "Standard",
                                         "Classic",
                                         "Pistol",
                                         "DLC",
                                         "Troll",
                                         "Night" };
                    String msg = "Следующее оружие GunMaster: ";
                    if (server.Data.issetInt(lastKey)) lastPreset = server.Data.getInt(lastKey);
                    nextPreset = rnd.Next(maxPreset);
                    if (ensureNight && server.NextMapFileName == "XP5_Night_01")
                    {
                        nextPreset = 5;
                    }
                    else
                    {
                        while (bGetting)
                        {
                            nextPreset = rnd.Next(maxPreset);
                            if (!allowStandard && nextPreset == 0) nextPreset = lastPreset;
                            if (!allowClassic && nextPreset == 1) nextPreset = lastPreset;
                            if (!allowPistol && nextPreset == 2) nextPreset = lastPreset;
                            if (!allowDLC && nextPreset == 3) nextPreset = lastPreset;
                            if (!allowTroll && nextPreset == 4) nextPreset = lastPreset;
                            if (!allowNight && nextPreset == 5) nextPreset = lastPreset;
                            if (nextPreset != lastPreset) bGetting = false;
                        }
                    }
                    plugin.ServerCommand("vars.gunMasterWeaponsPreset", nextPreset.ToString());
                    if (showChat) plugin.SendGlobalMessage(msg + presets[nextPreset]);
                    if (showYell) plugin.SendGlobalYell("\n" + msg + presets[nextPreset], 8);
                    if (showProcon) plugin.PRoConChat(msg + "^b^1" + presets[nextPreset] + "^0^n.");
                    server.Data.setInt(lastKey, nextPreset);
                }
            }
            catch (Exception e)
            {
                plugin.ConsoleException(e.ToString());
            }
        }
    )
);

gmrnd.Name = "GMPresetRandomizer";
gmrnd.Start();

return false;
Вот рабочий код при использовании xVoteMap и/или UMM!!!
 
  • Like
Реакции: Slawter
та же проблема - пресеты не переключаются
int iDelay = 40 не помогает
в чате есть сообщение, что следующий пресет другой, но в итоге прежний
Если не решится проблем, заходит ТС3 che.go-ts.ru! Всё подробно раскажу, чтоб заработало!
 
  • Like
Реакции: Slawter

Softail

Customer
9 Янв 2019
314
6
55
vars.gunMasterWeaponsPreset 0
эта строка есть в настройке сервера, но в проконе этой строки нет, правильно ли это?
xVoteMap и/или UMM не использую