Raised This Month: $32 Target: $400
 8% 

[L4D2] Vote difficulty


Post New Thread Reply   
 
Thread Tools Display Modes
Author
kot4404
Senior Member
Join Date: Mar 2013
Plugin ID:
6006
Plugin Version:
2.0
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Gives players option to start vote for difficulty change
    Old 01-28-2018 , 17:18   [L4D2] Vote difficulty
    Reply With Quote #1

    Description:

    This adds !votedifficulty commands that allow you to start F1/F2 vote (thanks to NativeVotes)
    (I have actually seen that too many players don't understand the sourcemod menu votes, especially in l4d2)

    Code:
    Usage: !votedifficulty <difficulty> (easy;normal;hard;impossible)
    Requirements:
    NativeVotes
    [L4D2] Difficulty Override because l4d2 doesn't listen to z_difficulty cvar in gamemodes other than coop ( and this one requires the left4downtown2)

    Changelog:
    • 28.01.2018 - Plugin created
    • 29.01.2018 - Now the command cannot be used from the server console,
      - only survivors can use the command now ( I decided so because the difficulty command has the most impact on the survivor team, infected shouldn't force change how difficult the game is if there are more infected than survivors, but they are counted in the vote)
    • 30.01.2018 - Ren89 uploaded edited version with translation file ( Thanks )
      * vote time now respects the sv_vote_timer_duration cvar
      * cannot start another vote until the first one finishes
    Attached Files
    File Type: txt difficultyvote.phrases.txt (1.2 KB, 656 views)
    File Type: sp Get Plugin or Get Source (difficultyvote.sp - 694 views - 3.9 KB)
    File Type: smx difficultyvote.smx (9.5 KB, 394 views)

    Last edited by kot4404; 01-30-2018 at 14:45. Reason: Update
    kot4404 is offline
    Ren89
    Junior Member
    Join Date: Jan 2012
    Location: Russia
    Old 01-30-2018 , 12:55   Re: [L4D2] Vote difficulty
    Reply With Quote #2

    Nice!
    Good example how to use NativeVotes for custom votes.
    a little changed - some checks and translations
    but I'm not sure about l4d2 gamemods/mutations, where standart diff vote exists
    Attached Files
    File Type: sp Get Plugin or Get Source (difficultyvote.sp - 525 views - 3.9 KB)
    File Type: txt difficultyvote.phrases.txt (1.2 KB, 499 views)
    __________________
    Ren89 is offline
    kot4404
    Senior Member
    Join Date: Mar 2013
    Old 01-30-2018 , 14:34   Re: [L4D2] Vote difficulty
    Reply With Quote #3

    Thanks , it is my first plugin and I don't know much about the translations yet and I could also add additional arguments so the "advanced" and "expert" trigger the vote too but I didn't find it that much important for now.
    I will add your version to the original post if you have no problem with that
    kot4404 is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 11:20.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode