Raised This Month: $159 Target: $400
 39% 

TF2 Fast Respawn 1.2 (Updated 08/19/09)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Plugin ID:
459
Plugin Version:
1.2
Plugin Category:
Gameplay
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    27 
    Plugin Description:
    Fast Respawn for TF2.
    Unapprover:
    Reason for Unapproving:
    Needs to set correct server tags to comply with Valve's rules.
    Old 07-08-2008 , 18:58   TF2 Fast Respawn 1.2 (Updated 08/19/09)
    Reply With Quote #1

    Yet another fast respawn plugin. I didn't like WoZeR's plugin, because in my opinion it has a lot of unnecessary code. It also manually respawns people, which is only necessary if you want to break TF2's respawn waves, and literally have them respawn after x seconds. I used Stripper: Source for a while, but for some reason it makes map changes take way longer, up to 30 seconds longer for large maps.

    So I made this plugin, combining those 2 methods. It hooks several outputs that usually change the respawn times, and then overwrites them with the ones set in the plugin. Tested on several maps, including pl_goldrush and tc_hydro (which don't abide by mp_respawnwavetime). Note that it uses the default TF2 respawn system, and the actual respawn time is double what you set the cvars to.

    sm_fastrespawn_enabled (0/1, def 1)
    Enable/disable fast respawn for TF2.

    sm_fastrespawn_blu (def 10.0)
    Respawn time for Blu team in TF2.

    sm_fastrespawn_red (def 10.0)
    Respawn time for Red team in TF2.

    Changelog
    • 1.2
      • Remove entity output hooks and replaced them with a simple player death hook, it will execute a lot more but for some reason the entity outputs were very unreliable. The player death hook seems to work fine to me.
    • 1.1
      • Simplified the plugin, fixed bugs.
    • 1.0
      • Initial release.
    Attached Files
    File Type: sp Get Plugin or Get Source (fastrespawn.sp - 12810 views - 1.7 KB)
    __________________

    Last edited by DJ Tsunami; 06-11-2011 at 13:02.
    DJ Tsunami is offline
    Cooltad
    Veteran Member
    Join Date: Apr 2008
    Old 07-08-2008 , 19:08   Re: TF2 Fast Respawn
    Reply With Quote #2

    So how is this better than the other respawn system plugin?
    __________________
    Please, give me some rep if you found what I posted useful. :]
    Cooltad is offline
    DJ Tsunami
    DJ Post Spammer
    Join Date: Feb 2008
    Old 07-08-2008 , 20:39   Re: TF2 Fast Respawn
    Reply With Quote #3

    Well, as I explained WoZeR's plugin manually respawns people, therefore it has to notify people when they respawn through a hint message, and the time shown at the top of the screen won't be entirely accurate. My plugin just uses TF2's built in respawn waves (meaning the time you set will be the max time it'll take for you to respawn, it can be shorter), so it doesn't have to manually respawn people. The drawback of that of course is that people won't respawn exactly x seconds after they die.
    __________________
    DJ Tsunami is offline
    Cooltad
    Veteran Member
    Join Date: Apr 2008
    Old 07-08-2008 , 20:44   Re: TF2 Fast Respawn
    Reply With Quote #4

    Quote:
    Originally Posted by DJ Tsunami View Post
    Well, as I explained WoZeR's plugin manually respawns people, therefore it has to notify people when they respawn through a hint message, and the time shown at the top of the screen won't be entirely accurate. My plugin just uses TF2's built in respawn waves (meaning the time you set will be the max time it'll take for you to respawn, it can be shorter), so it doesn't have to manually respawn people. The drawback of that of course is that people won't respawn exactly x seconds after they die.
    Well I just edit his plugin and remove the hint message. But his doesn't work and crashes my server and so does yours since the newest tf2 update. =/
    __________________
    Please, give me some rep if you found what I posted useful. :]
    Cooltad is offline
    DJ Tsunami
    DJ Post Spammer
    Join Date: Feb 2008
    Old 07-08-2008 , 20:50   Re: TF2 Fast Respawn
    Reply With Quote #5

    My plugin works fine on our TF2 Linux server, so.
    __________________
    DJ Tsunami is offline
    Cooltad
    Veteran Member
    Join Date: Apr 2008
    Old 07-09-2008 , 01:44   Re: TF2 Fast Respawn
    Reply With Quote #6

    Yours is good form people who want the kill cam and such. Good job! b^_^b
    __________________
    Please, give me some rep if you found what I posted useful. :]
    Cooltad is offline
    Jokerz99
    Senior Member
    Join Date: Apr 2008
    Old 07-09-2008 , 01:44   Re: TF2 Fast Respawn
    Reply With Quote #7

    have you noted the cpu usage of your plugin vs WoZeR?
    __________________
    Jokerz99 is offline
    DJ Tsunami
    DJ Post Spammer
    Join Date: Feb 2008
    Old 07-09-2008 , 11:36   Re: TF2 Fast Respawn
    Reply With Quote #8

    I have not looked at the cpu usage (I only have access to the cpu usage shown in the rcon stats command), but it would be ridiculous if my plugin added any cpu usage. All it does is set 2 variables several times per map.
    __________________
    DJ Tsunami is offline
    WoZeR
    Donor
    Join Date: Nov 2007
    Old 07-09-2008 , 17:21   Re: TF2 Fast Respawn
    Reply With Quote #9

    Quote:
    Originally Posted by DJ Tsunami View Post
    Well, as I explained WoZeR's plugin manually respawns people, therefore it has to notify people when they respawn through a hint message, and the time shown at the top of the screen won't be entirely accurate. My plugin just uses TF2's built in respawn waves (meaning the time you set will be the max time it'll take for you to respawn, it can be shorter), so it doesn't have to manually respawn people. The drawback of that of course is that people won't respawn exactly x seconds after they die.
    My plugin actually doesn't need to use a hint message. The spawntimer in the hud is closely accurate to spawn time. I placed the hint message there to let players know that there is a custom spawn time being applied on the map.

    However, You are going to have some problems with your plugin.

    1) You will not be able to have instant respawn since the in game spawn system doesn't allow you to spawn until about 6 seconds have passed.

    2) You will never have 100% accurate respawn times. For an example, if you decide you want the blue team to spawn at exactly 10 seconds it will not work. The in game spawn engine tacks on a couple of seconds about 6 to 7 to the current set spawn time. So if you set a 10 second spawn it will be 16 seconds.

    3) Also, the tf_gamerules respawn wave values will get reset randomly during a match. So, if the server cvar for mp_respawnwavetimes is set to 10 it will default tf_gamerules back to 10 seconds breaking the spawn time.

    Next, my plugin works perfectly fine. The reason the plugin breaks is when a TF2 update comes out and you are using an outdated version of sourcemod that doesn't support that release of TF2. In other words, if the plugin doesn't work go update your sourcemod before posting it's broke. Updating SM has been the fix every single time.

    Since my plugin can support instant spawn you will not have a kill cam if spawn time is lower than 4 to 6 seconds. Kill cams work perfectly fine if you set the respawn time higher than that. That is by design of the plugin to force you to spawn at the exact time the server admin wants their players spawning.

    Also, I really doub't my plugin is CPU intensive since it is based on events and is not polling anything. So technically if you have 32 players on your server and no one has died then the plugin should be barely using any cpu usage. The only time the plugin does anything is when a player dies.


    WITHOUT RESPAWN PLUGIN RUNNING



    WITH RESPAWN PLUGIN RUNNING

    Last edited by WoZeR; 07-09-2008 at 17:40.
    WoZeR is offline
    DJ Tsunami
    DJ Post Spammer
    Join Date: Feb 2008
    Old 07-09-2008 , 18:19   Re: TF2 Fast Respawn
    Reply With Quote #10

    Wow, that's a lot of text WoZeR Excuse me if I missed something, I'm kind of tired

    1) setting my cvars to 0 worked fine for me, I respawn right after the death cam. You can disable the death cam in TF2 by setting spec_freeze_time to -1 (default is indeed 4). You're right that this is not exactly instant, but it's damn close.

    2) If you mean that you can't have every player respawn exactly 10 seconds after they died, I know that, because TF2 uses respawn waves. I can't reproduce anything of what you're saying about the 6 added seconds, that's why I thought it was weird that you had it in your plugin.

    3) I think the respawn time is only reset when one of those outputs are fired. I hooked them all and set my respawn times again when they fire, and I have yet to see that go wrong or hear a complaint.

    I can see why your plugin would break with a TF2 update, because it uses offsets that might change between updates. Mine however doesn't use any of that, so I doubt mine would ever break.

    Last but not least, that's a sexy wallpaper you have there. Do you know where I could find that in 1680x1050?
    __________________
    DJ Tsunami 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 23:21.


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