Raised This Month: $ Target: $400
 0% 

Halftime teamswitch (1.0.11)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
Gemeni
Senior Member
Join Date: Sep 2007
Location: Sweden
Plugin ID:
226
Plugin Version:
1.0.11
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Moves all players to the opposite team at halftime (ie. Half of the map time has passed and round has ended)
    Old 12-06-2007 , 17:32   Halftime teamswitch (1.0.11)
    Reply With Quote #1

    Description:
    Simple plugin the switch all players to the opposite team when half of the map time has passed and the round ended.

    Background:
    Some maps people find to be unbalanced. This plugin tries to make it equal for everyone. All get to play both sides of the map.

    Change log:
    1.0 - First Version
    1.0.1 - Using bool values (Thanks pRED)
    1.0.2 - Added reset of halftime flag to false in OnMapStart just for safety
    1.0.3 - Cleaned up code. Added logging to logfile due to some reported problems. Works fine in the last tests.
    1.0.4 - Adding sounds
    1.0.5 - Switching the score when teams switch
    1.0.6 - Now switch of scores stays
    1.0.7 - Added variable to reset money and weapons at switch
    Added possibility to disable the halftime sound
    Added global forward "gemHalftime" if other scripts want to do something in halftime
    1.0.8 - Added possibility to switch teams based on rounds as well. Either maxrounds or winlimit.
    1.0.9 - Removed unnecessary logmessages, less spam in logs.
    1.0.10 - Fixed bug where nopt all grenades and def kit were removed
    1.1.11 - Fix so it works with new CSS update

    Note:
    1.0.5 switch did not work due to what I think is a bug in sourcemod. Reported the bug, https://bugs.alliedmods.net/show_bug.cgi?id=3722. We'll see what happens.
    In the mean time, version 1.0.6 takes care of displaying the correct scores. Thanks to [MKBI]Relle for pointing out the simple work around

    Install instructions:
    Put the plugin in the standard plugin dir
    Unzip gem_sounds under cstrike/sound
    Alter your pure_server_whitelist.txt (if you are running pure server) and add
    Code:
    sound\gem_sounds\*.*      allow_from_disk
    Variables:
    sm_halftime_sound - The sound that should be played in halftime, gem_sounds/teamswitch.mp3 is default. If set to "" in the config, halftime sound is disabled and no download occurs.

    sm_halftime_money_reset - Can be 0 or 1. 0 means no reset of money or weapons. You keep what you have. 1 means, all wepons and armour are removed, starting with standard pistol and mp_startmoney to by for.

    sm_halftime_teamswitch_type - It can have the following values ...
    timelimit - switch will be done at the end of the round when more than half of mp_timelimit has passed.
    maxrounds - switch will be done at then end of the round when playedRounds >= mp_maxrounds
    winlimit- switch will be done at then end of the round when playedRounds >= mp_winlimit
    Attached Files
    File Type: zip gem_sounds.zip (490.9 KB, 7151 views)
    File Type: sp Get Plugin or Get Source (gem_halftime_teamswap.sp - 10040 views - 8.7 KB)
    __________________
    --- Growing older is mandatory --
    ----- Growing up is optional -----

    Last edited by Gemeni; 06-28-2010 at 17:52.
    Gemeni 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 21:37.


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