Monthly Target: $400 Donations: $147
 36% 

[CS:S/CS:GO/DoD:S/TF2] Player Respawn


Post New Thread Reply   
 
Thread Tools Display Modes
Author
bobbobagan
SourceMod Donor
Join Date: May 2007
Location: New Zealand
Plugin ID:
1270
Plugin Version:
1.6
Plugin Category:
Admin Commands
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    282 
    Plugin Description:
    Respawn dead players back to their spawns
    Old 11-08-2009 , 12:11   [CS:S/CS:GO/DoD:S/TF2] Player Respawn
    Reply With Quote #1

    Player Respawn

    SUMMARY
    I couldn't find a decent respawn plugin with admin menu support, so I decided to write one myself.

    Requirements:
    - Requires SourceMod v1.1 or greater
    - Slay admin flag is required - F (or root - Z)

    Cvars:
    sm_respawn_version = 1.6 (can not be changed)
    sm_auto_respawn - Automatically respawn dead players (Default 0)
    sm_auto_respawn_time - Amount of seconds to delay the respawn by (Default 0 seconds)

    Cmds:
    sm_respawn <name | #userid> (also appears under player commands in the admin menu)

    Installation:
    - respawn.smx into /addons/sourcemod/plugins
    - respawn.phrases.txt into /addons/sourcemod/translations
    - plugin.respawn.txt into /addons/sourcemod/gamedata - Only required for DoD:S

    Changelog:
    1.0:
    - Initial release
    1.1:
    - Admin Menu only shows dead players to respawn
    - sm_respawn will only respawn dead players now
    - Fixed a few lines of text that weren't translatable
    1.2
    - Added support for TF2
    - Added support for DoD:S (Thanks Andersso and his DoD:S respawn timer plugin)
    - Added logging support
    1.3
    - Added support for CS:GO
    - Renamed plugin.instantrespawn.txt to plugin.respawn.txt (only required for DoD:S)
    1.4
    - Fixed plugin reporting that a client in spectate was respawned when using sm_respawn against that player
    - Added automatic respawning
    1.5
    - Fixed automatic respawning
    - Fixed not being able to use sm_respawn @all if a player was in spectate
    1.6
    - Fixed respawning when DeadRinger was activated in TF2
    - Added sv_tags support

    Known issues:
    - You can respawn spectators using the menu, as SourceMod thinks they are dead. I am not actually sure how to fix this, if you know how feel free to show me.

    To do:
    - Nothing! If you know the respawn function for your game, let me know and I will add support for it!

    Please provide extra translations if you can!

    PLEASE NOTE:
    This plugin may generate an error in your SM error logs. I am powerless to stop this, as it is due to the TF2 natives. It may only happen in non-TF2 games. If you do not want the error then comment out the part for TF2 and recompile the plugin, otherwise just live with it. It is not a damaging error and will not effect anything else, the plugin still functions normally.
    Attached Files
    File Type: txt respawn.phrases.txt (314 Bytes, 11290 views)
    File Type: txt plugin.respawn.txt (249 Bytes, 6157 views)
    File Type: sp Get Plugin or Get Source (respawn.sp - 7110 views - 10.1 KB)
    __________________

    Last edited by bobbobagan; 01-08-2015 at 03:36. Reason: Updated to v1.5
    bobbobagan is offline
    Send a message via Skype™ to bobbobagan
    thetwistedpanda
    Good Little Panda
    Join Date: Sep 2008
    Old 11-08-2009 , 13:31   Re: [CS:S] Player Respawn
    Reply With Quote #2

    You may want to add error checking to your plugin. Check to see if they're a valid entity, if they're dead, and if they're on the T/CT team. Otherwise you can end up with spectators playing on the unassigned team; stupid admins can respawn player's mid-round, and a few other nasty bugs.
    __________________
    thetwistedpanda is offline
    bobbobagan
    SourceMod Donor
    Join Date: May 2007
    Location: New Zealand
    Old 11-09-2009 , 04:44   Re: [CS:S] Player Respawn
    Reply With Quote #3

    Updated to v1.1 I fixed the things you mentioned Panda ;)
    __________________
    bobbobagan is offline
    Send a message via Skype™ to bobbobagan
    wrox
    Member
    Join Date: Nov 2009
    Location: /root
    Old 11-12-2009 , 06:28   Re: [CS:S] Player Respawn
    Reply With Quote #4

    Just what I looked for our jail when nasty people freekill so we can respawn the victims. Thanks!
    wrox is offline
    bobbobagan
    SourceMod Donor
    Join Date: May 2007
    Location: New Zealand
    Old 11-16-2009 , 01:34   Re: [CS:S] Player Respawn
    Reply With Quote #5

    Some how I managed to upload a wrong version of v1.1 that wasn't showing a player had been respawned in chat. I think I have uploaded the correct version now *sigh*
    __________________
    bobbobagan is offline
    Send a message via Skype™ to bobbobagan
    pimpinjuice
    Veteran Member
    Join Date: May 2006
    Old 12-15-2009 , 00:28   Re: [CS:S] Player Respawn
    Reply With Quote #6

    Approved @ 196 lines.
    Good job.
    __________________
    pimpinjuice is offline
    Send a message via AIM to pimpinjuice
    dataviruset
    SourceMod Donor
    Join Date: Feb 2009
    Location: Beijing, China
    Old 01-01-2010 , 12:40   Re: [CS:S] Player Respawn
    Reply With Quote #7

    Very nice, the old M3Respawn here could also respawn spectators (not that good in my opinion...)
    dataviruset is offline
    bobbobagan
    SourceMod Donor
    Join Date: May 2007
    Location: New Zealand
    Old 05-31-2010 , 07:23   Re: [CS:S/DoD/TF2] Player Respawn
    Reply With Quote #8

    Updated to v1.2 See changelog for more.
    __________________
    bobbobagan is offline
    Send a message via Skype™ to bobbobagan
    turk89
    Member
    Join Date: Jul 2010
    Old 07-26-2010 , 14:44   Re: [CS:S/DoD/TF2] Player Respawn
    Reply With Quote #9

    When I am running this plugin on my Dedicated Server (CS:S) which is only using Metamod + Sourcemod, then I get this error log:
    Code:
    L 07/26/2010 - 19:43:18: SourceMod error session started
    L 07/26/2010 - 19:43:18: Info (map "de_dust2") (file "errors_20100726.log")
    L 07/26/2010 - 19:43:18: [SM] Unable to load extension "game.tf2.ext": Cannot Load TF2 Extension on mods other than TF2
    What is up?
    turk89 is offline
    dataviruset
    SourceMod Donor
    Join Date: Feb 2009
    Location: Beijing, China
    Old 07-26-2010 , 14:48   Re: [CS:S/DoD/TF2] Player Respawn
    Reply With Quote #10

    Quote:
    Originally Posted by turk89 View Post
    When I am running this plugin on my Dedicated Server (CS:S) which is only using Metamod + Sourcemod, then I get this error log:
    Code:
    L 07/26/2010 - 19:43:18: SourceMod error session started
    L 07/26/2010 - 19:43:18: Info (map "de_dust2") (file "errors_20100726.log")
    L 07/26/2010 - 19:43:18: [SM] Unable to load extension "game.tf2.ext": Cannot Load TF2 Extension on mods other than TF2
    What is up?
    I think you downloaded the wrong version of this plugin (TF2), because you're running CS:S.

    As mentioned in the first post...
    PLEASE NOTE: Even though the plugin compiles on the forum, there is a bug within the tf2.inc file included with SourceMod (partially fixed in the next SM release). Please use the attached .smx for CS:S or DoD:S otherwise you will get an error when loading. You can either compile using "get plugin" or download the attached .smx for TF2.
    dataviruset 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 02:39.


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