Raised This Month: $ Target: $400
 0% 

[TF2] Bonustime Autorespawn


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Milo|
Member
Join Date: Jan 2009
Location: Netherlands
Plugin ID:
750
Plugin Version:
1.4
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    8 
    Plugin Description:
    This plugin forces players on the losing team to respawn during humiliationtime (bonustime)
    Old 02-02-2009 , 18:29   [TF2] Bonustime Autorespawn
    Reply With Quote #1

    Summary

    This plugin was requested on the forum by Chris-_-. At the end of every round in Team Fortress 2, a scorepanel will show the best 3 players, and everyone on the winning team gets a few seconds to beat the crap out of the losing team (who can't do anything back). This time is called the humiliation time. This plugin allows the serveradmin to force losing players (who were dead at the time of the roundend) to respawn or even keep respawning.


    Supported games

    This plugin is very dependent on specific TF2 events and thus will only function on:
    • Team Fortress 2

    Commands and CVars:
    • sm_bonustime_autorespawn <0/1/2>
    • sm_bonustime_spawndelay <1 to 10>
    • bonustimerespawn_version - Shows the version of this plugin.

    Installation:
    1. Copy tf2_bonustime_autorespawn.smx to the Sourcemod plugins directory (default: <gamedir>/addons/sourcemod/plugins/)
    2. Change the map on your server (or restart the server) to force the plugin to load.
    3. A configfile is automaticly created (<gamedir>/cfg/sourcemod/tf2_bonustime_autorespawn.cfg)
    4. If you want you can now change the settings. Preferably in the config file since that way it will be remembered, but you can do it with rcon or in the server console too. The changes will take effect the very first time the round ends.

    Usage:


    If the sm_bonustime_autorespawn is set to 0, the plugin has no effect whatsoever.

    If you set sm_bonustime_autorespawn to 1. Every dead player on the losing team will respawn once the round ends and the humiliationtime begins.

    If you set sm_bonustime_autorespawn to 2 (default). Every dead player on the losing team will respawn once the round ends and the humiliationtime begins. During the humiliationtime, losing players who get killed will near-instantly respawn again. Basicly this will turn the spawnarea of the losing team into a huge massacre because there's no shortage of free kills.

    The duration of the humiliationtime can be set using TF2's own mp_bonusroundtime command.

    By default the time between someone being respawned by the plugin is 1 second. This can be changed using the sm_bonustime_spawndelay setting. Values are in seconds, the minimum is 1 and the maximum is 10.


    Version history
    • Version 1.4
      • Fixed bad code path introduced in 1.3 (tnx to Antithasys)
    • Version 1.3
      • Added sm_bonustime_spawndelay command (Requested by DontWannaName)
      • Improved timerhandling (thanks to Chris-_-)
      • Changed compilerversion to 1.1 for web compilations
      • Changed default value for sm_bonustime_autorespawn to 2 instead of 0. This will only affect new installations where no configfile was present.
    • Version 1.2
      • The plugin will not autorespawn people when the team lost because of a stalemate.
    • Version 1.1
      • Fixed problem where players were not being respawned
    • Version 1.0 (initial release)
      • Initial version
      • Tested in Team Fortress 2
    Attached Files
    File Type: smx tf2_bonustime_autorespawn.smx (3.7 KB, 1329 views)
    File Type: sp Get Plugin or Get Source (tf2_bonustime_autorespawn.sp - 2097 views - 5.8 KB)

    Last edited by Milo|; 02-15-2009 at 14:06.
    Milo| is offline
    DontWannaName
    Veteran Member
    Join Date: Jun 2007
    Location: VALVe Land, WA
    Old 02-02-2009 , 18:41   Re: [TF2] Bonustime Autorespawn
    Reply With Quote #2

    There is already a plugin that does this. But, it blocks the MVP scoreboard and it ruins the score on the scoreboard.
    __________________

    DontWannaName is offline
    Chris-_-
    SourceMod Donor
    Join Date: Oct 2008
    Old 02-02-2009 , 19:02   Re: [TF2] Bonustime Autorespawn
    Reply With Quote #3

    Either F##n way, great work

    EDIT: Might just add noclip to the players who wins when "sm_bonustime_autorespawn 2" xD

    Last edited by Chris-_-; 02-02-2009 at 19:08.
    Chris-_- is offline
    Milo|
    Member
    Join Date: Jan 2009
    Location: Netherlands
    Old 02-02-2009 , 19:59   Re: [TF2] Bonustime Autorespawn
    Reply With Quote #4

    Seems there is a small error in the plugin, i'm on it atm, expect a fix within the hour.

    Edit: The problem should now be fixed. Should anyone have downloaded the plugin before, please upgrade to version 1.1.

    Last edited by Milo|; 02-02-2009 at 20:45.
    Milo| is offline
    Milo|
    Member
    Join Date: Jan 2009
    Location: Netherlands
    Old 02-02-2009 , 20:50   Re: [TF2] Bonustime Autorespawn
    Reply With Quote #5

    Quote:
    Originally Posted by DontWannaName View Post
    There is already a plugin that does this. But, it blocks the MVP scoreboard and it ruins the score on the scoreboard.
    That sounds pretty vile

    Basicly all this plugin does (during the humiliationtime) is respawn players from the losing team a second after they die.

    relatively simple (although that didnt stop me from bugging it, hence the 1.1 release ;p)
    Milo| is offline
    DontWannaName
    Veteran Member
    Join Date: Jun 2007
    Location: VALVe Land, WA
    Old 02-03-2009 , 17:19   Re: [TF2] Bonustime Autorespawn
    Reply With Quote #6

    Ya but so does the other one. So I think they may have the same issues.
    __________________

    DontWannaName is offline
    Milo|
    Member
    Join Date: Jan 2009
    Location: Netherlands
    Old 02-04-2009 , 15:12   Re: [TF2] Bonustime Autorespawn
    Reply With Quote #7

    Quote:
    Originally Posted by DontWannaName View Post
    So I think they may have the same issues.
    Unlikely, i haven't looked at the other plugin but this one only uses the MVP event to start timers and call the RespawnPlayer function. It shouldn't have any effect on the MVP panel itself or the scoreboard.

    The problem with version 1.0 was simply a mistake by me where, while preparing for release, i stripped out a bit more than just debugging functionality. Thanks to Chris-_- for spotting the bug, that issue is now resolved.

    I just released version 1.2 which honors the fact that sometimes everybody loses (a stalemate). I gave it a few testdrives and didn't run into any issues so you can consider this one ready for use.
    Milo| is offline
    DontWannaName
    Veteran Member
    Join Date: Jun 2007
    Location: VALVe Land, WA
    Old 02-10-2009 , 00:37   Re: [TF2] Bonustime Autorespawn
    Reply With Quote #8

    Can you add the delayed respawn feature or tell me where to edit the source, I cant seem to find it out of the code, you have two > < symbols which confuses me.
    __________________

    DontWannaName is offline
    Milo|
    Member
    Join Date: Jan 2009
    Location: Netherlands
    Old 02-10-2009 , 09:58   Re: [TF2] Bonustime Autorespawn
    Reply With Quote #9

    Sure thing, i'll have it up within a few hours.
    Milo| is offline
    Milo|
    Member
    Join Date: Jan 2009
    Location: Netherlands
    Old 02-10-2009 , 13:27   Re: [TF2] Bonustime Autorespawn
    Reply With Quote #10

    Version 1.3 is up, this includes the feature you requested.
    Milo| 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 13:22.


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