Raised This Month: $319 Target: $400
 79%   Almost there!

[L4D & L4D2] Unscramble (Rotoblin Standalone)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
disawar1
AlliedModders Donor
Join Date: Aug 2011
Location: Russian
Plugin ID:
7323
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    5 
    Plugin Description:
    Puts players on the right team after map/campaign change and provides dev API.
    Old 10-05-2020 , 04:05   [L4D & L4D2] Unscramble (Rotoblin Standalone)
    Reply With Quote #1

    Rotoblin 2

    Rotoblin 2 (Roto2/R2 CompMod)
    The competitive mod developed in 2012 for Left 4 Dead 1.

    Rotoblin 2 Standalone:
    The Standalone format provides a standalone version of some Roto2 modules. The r2compmod plugin is not reqired and shouldn't be used with standalone plugins! Left 4 Dead 2 is fully supported by standalone plugins. Have fun!

    Rotoblin 2 URL:
    Roto2 main repository
    Roto2 plugins description
    Roto2 configs table
    Left 4 Downtown Extension
    Competitive L4D1 plugins
    l4d_direct

    Rotoblin 2 Team (Roles and Contribution)
    @raziEiL [disawar1]: Programming, reverse engineering, level design, mapping, stripper.
    @Alma: Idea to make a map modification, mapping.
    Electr0: Providing a tool for mapping, mapping.
    @Scratchy (RU: Царапка): Localization, plugins ideas, testing

    Unscramble

    Unscramble Standalone:
    Puts players on the right team after map/campaign change and provides developer API.
    Events triggering the unscramble feature:
    • Map change due second round ends.
    • Map change by sourcemod command.

    Features:
    • Move players to the teams they were.
    • Spec stays spec.
    • No sdk calls, no gamedata, no dependencies.
    • Flexible configs.
    • Supports both left 4 dead games.

    Third-party Plugins Compatibility:
    You need to turn off plugins features with similar functions by convars or unloads such plugins.
    Plugins that blocks jointeam command may conflict with unscramble (All players will be moved to spectator after map change).
    Plugins that provides menu or commands to change team will break unscramble feature. Use Unscramble API to temporarily blocks such commands.

    Сonsole Variables:
    PHP Code:
    // R2CompMod Unscramble Standalone plugin version.
    rotoblin_unscramble_version "1.0"
    // 0=Off, 1=Prints a notification to chat when unscramble is completed (lets spectators know when they can join a team)/
    rotoblin_unscramble_notify "1.0"
    // 0=Off, 1=Allows spectator/infected players to join the survivor team even if the survivor bot is dead (through M button).
    rotoblin_choosemenu_unlocker "1"
    // 0=Off, 1=Prevents calling votes until unscramble completes.
    rotoblin_unscramble_novotes "1"
    // Maximum attempts to try to move player to the team he were.
    rotoblin_unscramble_attempts "3"
    // Unscramble max processing time after map changed. When the time expires the teams changes will be unlocked.
    rotoblin_unscramble_time "45"
    // 0=Off, 1=Enables unscramble feature (Puts players on the right team after map/campaign change).
    rotoblin_allow_unscramble "1" 
    Admin Commands:
    PHP Code:
    // Force to store players team data.
    sm_keepteams
    // Force to puts players on the right team.
    sm_unscramble_start
    // Aborts unscramble process. 
    sm_unscramble_abort 
    API unscramble.inc:
    Example of using API to make l4d2_bwa_teamspanel plugin compatible.

    PHP Code:
    /**
     * @brief Called whenever unscramble process is completed.
     *
     * @noreturn
     */
    forward void R2comp_OnUnscrambleEnd();

    /**
     * Force to store players team data.
     *
     * @noreturn
     */
    native void R2comp_UnscrambleKeep();

    /**
     * Force to start unscramble process (Puts players on the right team).
     * @note To make unscramble process works you need call R2comp_UnscrambleKeep first.
     *
     * @noreturn
     */
    native void R2comp_UnscrambleStart();

    /**
     * Force to abort unscramble process.
     *
     * @param fireOnUnscrambleEnd    Whether or not R2comp_OnUnscrambleEnd forward should be fired.
     *
     * @noreturn
     */
    native void R2comp_AbortUnscramble(bool fireOnUnscrambleEnd true);

    /**
     * Returns whether or not unscramble process is completed.
     *
     * @return            If true then unscramble is completed, false means unscramble is processing and team changes is locked.
     */
    native bool R2comp_IsUnscrambled(); 
    Required Files:
    rotoblin.phrases.txt
    l4d_lib.inc

    Source Code:
    r2comp_unscramble.sp
    unscramble.inc


    Changelog:
    v 1.0 (05-Oct-2020)
    - Standalone version.

    somewhere in 2012-13
    - Developed as roto2 module.
    Attached Files
    File Type: smx r2comp_unscramble.smx (11.1 KB, 88 views)
    __________________

    Last edited by disawar1; 10-05-2020 at 04:26.
    disawar1 is offline
    JLmelenchon
    Senior Member
    Join Date: Mar 2019
    Old 09-10-2021 , 02:10   Re: [L4D & L4D2] Unscramble (Rotoblin Standalone)
    Reply With Quote #2

    Basically what i must change in this plugin to make it compatible ?
    https://forums.alliedmods.net/showth...02#post2719702
    JLmelenchon is offline
    HarryPotter
    Veteran Member
    Join Date: Sep 2017
    Location: TW
    Old 09-10-2021 , 05:20   Re: [L4D & L4D2] Unscramble (Rotoblin Standalone)
    Reply With Quote #3

    Quote:
    Originally Posted by JLmelenchon View Post
    Basically what i must change in this plugin to make it compatible ?
    https://forums.alliedmods.net/showth...02#post2719702
    I did not understand, this plugin puts players on the right team after map/campaign change.

    How is it related to AFK and Join Team Commands?
    __________________
    HarryPotter is offline
    JLmelenchon
    Senior Member
    Join Date: Mar 2019
    Old 09-10-2021 , 15:32   Re: [L4D & L4D2] Unscramble (Rotoblin Standalone)
    Reply With Quote #4

    "Plugins that blocks jointeam command may conflict with unscramble (All players will be moved to spectator after map change).
    Plugins that provides menu or commands to change team will break unscramble feature. Use Unscramble API to temporarily blocks such commands."

    AFK and Join Team Commands does that.

    Last edited by JLmelenchon; 09-10-2021 at 15:33.
    JLmelenchon is offline
    HarryPotter
    Veteran Member
    Join Date: Sep 2017
    Location: TW
    Old 09-11-2021 , 02:45   Re: [L4D & L4D2] Unscramble (Rotoblin Standalone)
    Reply With Quote #5

    Quote:
    Originally Posted by JLmelenchon View Post
    "Plugins that blocks jointeam command may conflict with unscramble (All players will be moved to spectator after map change).
    Plugins that provides menu or commands to change team will break unscramble feature. Use Unscramble API to temporarily blocks such commands."

    AFK and Join Team Commands does that.
    Made a update for this, enjoy!
    __________________
    HarryPotter 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:50.


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