Raised This Month: $51 Target: $400
 12% 

[Dev + CS:S/GO+DoD:S] Teams Management Interface (Updated 1.2.3@invulbug)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Plugin ID:
2896
Plugin Version:
1.2.3
Plugin Category:
Technical/Development
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    3 
    Plugin Description:
    Interface for managing teams (scrambling/swapping and switching players only at the moment)
    Old 04-10-2012 , 00:31   [Dev + CS:S/GO+DoD:S] Teams Management Interface (Updated 1.2.3@invulbug)
    Reply With Quote #1

    Teams Management Interface

    v. 1.2.3

    Forewords : I define Teams Management as the action of moving 1 or more players from one or both teams to another. All the ones initiated by this interface are either between round end and round start or instantly (tested under CS:S, CS:GO and DoD:S only).

    I made this interface partly because Sourcemod has lacked since a while of the option "transfer on round end" that MAP had.

    Also see 2nd post for a list of plugins using this interface plugin.

    Features :
    • Centralize different Teams Management requests from different plugins.
    • Provides Natives to request a Teams Management. For exemple : to scramble the teams or to move someone to a team; or even to prevent/cancel the ones made by other plugins, by overriding them by another usual request, or a cancel request.
    • Provides Forwards to inform plugins when a Teams Management is accepted, canceled or executed.
    • --------------------
    • Only one "global" Teams Management can be executed at a time (global = affecting all or a lot of players).
    • Between the end of a round and the beginning of the following, that "global" Teams Management is executed, followed by any "singular" Teams Management (player going to team X).
    • During the time between Teams Management and Round Start, no damage except from bomb can be taken (unless Teams Management are instant). This is to prevent people killing each other because the skin of a team won't represent the real one for that short moment.

    Known bugs :
    • None.

    CVars :
    • teamsmanagementinterfaceversion: Gives version -_-'
    • ----------
    • tmi_sound : Allow the interface to play a sound when teams are scrambled if the calling plugin doesn't. 0 = disabled, 1 = enabled. Def. 1.
    • ----------
    • tmi_fade : Allow the interface to fade-in players screens when teams are managed if the calling plugin doesn't. 0 = disabled, 1 = enabled. Def. 1.
    • tmi_fade_duration : Duration of the fade-in. Best values are around 250-1000. Def. 500.
    • ----------
    • tmi_delay : Time in seconds before round start when team will be scrambled. Default 0.1 (0.25 under CSGO).
    • tmi_blockdmg : If damage is blocked between the moment people are changing teams and round start. 0=no, 1=yes (default).

    --------------

    Any suggestions/comments on the code or the plugin are welcomed and appreciated.

    Changelog :
    • 1.0.0 Initial release. (10-04-2012)
    • 1.0.1 Corrected bug preventing to manually transfer more than one player per round. Also changed a bit the comments in the include file. (11-04-2012)
    • 1.0.2 Corrected bug where Teams Management would be carried over Draw Rounds (could be disastrous gameplay-wise; i.e. terrorists at CTs' spawn with CT's skin :$) (12-04-2012)
    • 1.0.3 Corrected crappy scrambling when a team has a fixed amount of players (i.e. 2vALL). (01-07-2012)
    • 1.0.4 Changed the way the end-game-team-managing-prevention works so it is more robust (KillTimer apparently brought some rare bug, having TIMER_FLAG_NO_MAPCHANGE flag concurence the "cs_win_panel_match" event sometimes...). Thanks to KyleS. (12-07-2012)
    • 1.1.0 (07-10-2012)
      • Added DOD:S support.
      • Added the possibility of instant teams management (rather than only on round end).
      • Made invulnerability more late (I really thought it was made more late than that :$).
    • 1.2.0 (27-12-2012)
      • Added CS:GO support.
      • Added the possibility to swap teams (i.e. CT <-> T => T <-> CT). See actionId == 4.
      • Now uses good fade color under DoD:S (Green/Red, rather than Red/Blue).
      • Fixed package using the 'cstrike' folder, as this is multi-mod.
    • 1.2.1 (23-01-2013)
      • Added support for protobuf. This means compatibility with the recent CSGO update.
      • Modified attachment structure (directly in mod folder now).
      • See notes as for why two versions are attached.
    • 1.2.2 (31-01-2013)
      • Changes tmi_delay default under CSGO to 0.25.
      • This should prevent a bug where everyone was invulnerable (under CSGO). Thanks to PsyGaming for reporting.
    • 1.2.3 (01-02-2013)
      • Bug where players were all invulnerable should now be fixed in all mods. (was still possible in CS:S by toying with round restart)

    Todo list :
    • Add team balance. (veeerrrry low priority)

    Notes :
    • SDKHooks are required to compile (and run).
    • Extract TeamsManagementInterface.zip in your server folder (sound/misc/ folder put aside, no folder should be created).
    • Since my .inc is heavily commented I won't paste it here.
    • Use 1.2.3 if you have mm:source 1.10.0-hg816 or later AND sourcemod 1.5.0-hg3755 or later for CSS/CSGO/DODS compatibility.
    • Use 1.2.0 if you are on SM stable branch (won't work on CSGO).
    Attached Files
    File Type: zip TeamsManagementInterface - 1.2.0.zip (122.6 KB, 466 views)
    File Type: zip TeamsManagementInterface - 1.2.3.zip (124.0 KB, 1362 views)
    __________________
    My plugins :
    Red Maze
    Afk Bomb
    RAWR (per player/rounds Awp Restrict.)
    Kill Assist
    Be Medic

    You can also Donate if you appreciate my work

    Last edited by RedSword; 02-01-2013 at 00:05. Reason: 1.2.3; see changelog; 218dl
    RedSword is offline
     



    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 17:03.


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