AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] Bonustime Autorespawn (https://forums.alliedmods.net/showthread.php?t=84908)

Milo| 02-02-2009 17:29

[TF2] Bonustime Autorespawn
 
2 Attachment(s)
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

DontWannaName 02-02-2009 17:41

Re: [TF2] Bonustime Autorespawn
 
There is already a plugin that does this. But, it blocks the MVP scoreboard and it ruins the score on the scoreboard.

Chris-_- 02-02-2009 18:02

Re: [TF2] Bonustime Autorespawn
 
Either F##n way, great work :D :P

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

Milo| 02-02-2009 18:59

Re: [TF2] Bonustime Autorespawn
 
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.

Milo| 02-02-2009 19:50

Re: [TF2] Bonustime Autorespawn
 
Quote:

Originally Posted by DontWannaName (Post 754595)
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)

DontWannaName 02-03-2009 16:19

Re: [TF2] Bonustime Autorespawn
 
Ya but so does the other one. So I think they may have the same issues.

Milo| 02-04-2009 14:12

Re: [TF2] Bonustime Autorespawn
 
Quote:

Originally Posted by DontWannaName (Post 755156)
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.

DontWannaName 02-09-2009 23:37

Re: [TF2] Bonustime Autorespawn
 
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.

Milo| 02-10-2009 08:58

Re: [TF2] Bonustime Autorespawn
 
Sure thing, i'll have it up within a few hours.

Milo| 02-10-2009 12:27

Re: [TF2] Bonustime Autorespawn
 
Version 1.3 is up, this includes the feature you requested.


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

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