Page 3 of 15 FirstFirst 1234513 ... LastLast
Results 21 to 30 of 143
  1. #21
    Procon Addict
    Join Date
    Dec 2013
    Location
    Sydney, Australia
    Posts
    502
    Quote Originally Posted by moacco07 View Post
    Btw is there anyway to alter the number of kills to advance to next weapon. Default is 2.
    No there's no way of changing that.

  2. #22
    Hello Mate

    Thank you for offering this nice tool. Unfortunately, I have a problem, that it is not working properly. It displays the new gun master mode on chat, but does not switch to this mode...
    Can this be due to provider or insane limits settings? I mean, the plugin is running if the server message is posted. Or do I have to tweak on the settings specially, to be able to run this plugin?
    I put your coded adapted to my needs here, did I miss something?

    Code:
    // BF4 Gunmaster Random Presets - Limit 1 of 1
    // v2.0 - OnRoundOver - first_check
    //
    
    if (server.NextGamemode != "GunMaster0") return false;
    
    int lastPreset = 0;
    bool allowTroll = false;
    bool showChat = true;
    bool showYell = false;
    bool showProcon = false;
    int nextPreset = 0;
    int maxPreset = 5;
    Random rnd = new Random();
    String lastKey = "_LASTGM_";
    String[] presets = { "Standard",
                         "Classic",
                         "Pistol",
                         "DLC",
                         "Troll" };
    String msg = "Next GunMaster preset will be: ";
    
    if (!allowTroll) maxPreset = 4;
    if (server.Data.issetInt(lastKey)) lastPreset = server.Data.getInt(lastKey);
    nextPreset = rnd.Next(maxPreset);
    while (nextPreset == lastPreset)
    {
        nextPreset = rnd.Next(maxPreset);
    }
    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);
    
    return false;
    Thank you already for your help

  3. #23
    Procon Addict
    Join Date
    Dec 2013
    Location
    Sydney, Australia
    Posts
    502
    Quote Originally Posted by Suprgau View Post
    Hello Mate

    Thank you for offering this nice tool. Unfortunately, I have a problem, that it is not working properly. It displays the new gun master mode on chat, but does not switch to this mode...
    Can this be due to provider or insane limits settings? I mean, the plugin is running if the server message is posted. Or do I have to tweak on the settings specially, to be able to run this plugin?
    I put your coded adapted to my needs here, did I miss something?

    Thank you already for your help
    If I'm understanding you correctly, this will not set your server to Gunmaster mode, it will only randomly select a Gunmaster weapons preset after each round.
    To have your server run Gunmaster, you will need add (or replace) maps with Gunmaster0 gamemode to your maplist. The available maps with this mode are (format here is: Mapname Gamemode Rounds):
    Code:
    MP_Abandoned GunMaster0 1
    MP_Damage GunMaster0 1
    MP_Flooded GunMaster0 1
    MP_Journey GunMaster0 1
    MP_Naval GunMaster0 1
    MP_Prison GunMaster0 1
    MP_Resort GunMaster0 1
    MP_Siege GunMaster0 1
    MP_TheDish GunMaster0 1
    MP_Tremors GunMaster0 1
    You can also add vars.gunMasterWeaponsPreset [0 - 4] to startup.txt, e.g. vars.gunMasterWeaponsPreset 0
    The vars values are as follows:
    Code:
    0 = Standard
    1 = Classic
    2 = Pistol
    3 = DLC
    4 = Troll

  4. #24
    Quote Originally Posted by LCARSx64 View Post
    This limit will randomly select and set a different Gunmaster presets after each round whilst ensuring that the next preset is not the same as the previous one.

    Options:
    • If you added vars.gunMasterWeaponsPreset to your startup.txt, change the value highlighted in red to the same value as your startup.txt, otherwise leave this set to 0.
    • If you do not wish to use the Troll preset, change the value highlighted in green to false.
    • To display the next preset to all players via in-game chat, set the value highlighted in blue to true.
    • To display the next preset to all players via in-game yell, set the value highlighted in orange to true.
    • To display the next preset in Procon chat, set the value highlighted in purple to true.


    BF4 Gunmaster Random Presets

    Create a new limit to evaluate OnRoundOver. Set action to None.

    Set first_check to this Code:
    Code:
    // BF4 Gunmaster Random Presets - Limit 1 of 1
    // v2.0 - OnRoundOver - first_check
    //
    
    int lastPreset = 0;
    bool allowTroll = true;
    bool showChat = false;
    bool showYell = false;
    bool showProcon = false;
    int nextPreset = 0;
    int maxPreset = 5;
    Random rnd = new Random();
    String lastKey = "_LASTGM_";
    String[] presets = { "Standard",
                         "Classic",
                         "Pistol",
                         "DLC",
                         "Troll" };
    String msg = "Next GunMaster preset will be: ";
    
    if (!allowTroll) maxPreset = 4;
    if (server.Data.issetInt(lastKey)) lastPreset = server.Data.getInt(lastKey);
    nextPreset = rnd.Next(maxPreset);
    while (nextPreset == lastPreset)
    {
        nextPreset = rnd.Next(maxPreset);
    }
    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);
    
    return false;

    End of post.
    How can I deactivate the Pistol mode like Troll mode and leave the Classic, DLC and standard modes does active?
    Because of the
    bool allowPistol = false;
    command has no effect on Pistol Mode, could not deactivete it.
    Last edited by Barack_palinka; 31-05-2015 at 13:19.

  5. #25
    Procon Addict
    Join Date
    Dec 2013
    Location
    Sydney, Australia
    Posts
    502
    Quote Originally Posted by Barack_palinka View Post
    How can I deactivate the Pistol mode like Troll mode and leave the Classic, DLC and standard modes does active?
    Because of the
    bool allowPistol = false;
    command has no effect on Pistol Mode, could not deactivete it.
    Find this line in the code:
    Code:
    while (nextPreset == lastPreset)
    Change it to:
    Code:
    while (nextPreset == lastPreset || nextPreset == 2)

  6. #26
    No, I understood that this plugin won't set my map rotation to gunmaster. I set the map rotation up correctly, we are playing gun master. The problem is, that it seems to be stuck on one gunmaster mode/day (random) and then will not proceed to another.

  7. #27
    Procon Addict
    Join Date
    Dec 2013
    Location
    Sydney, Australia
    Posts
    502
    Quote Originally Posted by Suprgau View Post
    No, I understood that this plugin won't set my map rotation to gunmaster. I set the map rotation up correctly, we are playing gun master. The problem is, that it seems to be stuck on one gunmaster mode/day (random) and then will not proceed to another.
    So you mean that the preset isn't changing on the next round?
    Also when you say that the next preset is displayed in chat, are you referring to in-game chat or Procon chat?

  8. #28
    Quote Originally Posted by LCARSx64 View Post
    So you mean that the preset isn't changing on the next round?
    Also when you say that the next preset is displayed in chat, are you referring to in-game chat or Procon chat?
    Ingame chat...

  9. #29
    Is anyone running this on a mixed mode server? I am running mixed mode with a few other modes and when gunmaster comes up it is the same preset every time. Anyone else have this happen?

  10. #30
    Procon Addict
    Join Date
    Dec 2013
    Location
    Sydney, Australia
    Posts
    502
    Quote Originally Posted by Suprgau View Post
    Ingame chat...
    Hmmm, that seems rather odd.
    I don't really see it being a provider issue. Is your server Official or Ranked?
    Is it a mixed mode server or just gunmaster?

    Can you please try the following:

    Disable this limit.
    During a round, go to the Console tab in Procon and make sure the second minor Console tab is selected (see image)> Procon_Console.png
    In the text box at the bottom, enter: vars.gunMasterWeaponsPreset 1
    Then click send, wait for the next round to begin and tell me if you have a different weapons preset.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •