Raised This Month: $51 Target: $400
 12% 

[ANY] Spawn Protect Slay (1.2)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Sheepdude
SourceMod Donor
Join Date: Aug 2012
Location: Chicago
Plugin ID:
3378
Plugin Version:
1.2
Plugin Category:
Gameplay
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Provides spawn protection for players, and slays players who attack spawn-protected teammates.
    Old 11-22-2012 , 08:02   [ANY] Spawn Protect Slay (1.2)
    Reply With Quote #1

    Spawn Protect Slay

    Version 1.2

    Table of Contents
    ----------------------------------------------------
    Description
    Commands and Cvars
    Installation
    Dependencies
    Changelog
    Notes
    Download


    Description
    ----------------------------------------------------
    Provides spawn protection for players, and slays
    players who attack spawn-protected teammates.


    Commands and Cvars
    ----------------------------------------------------
    Cvars
    sm_projectile_view_auto_update (Default 1) Automatically update plugin (requires Updater)

    sm_spslay_version Plugin version.
    sm_spslay_enable (Default 1) Enable or disable plugin (1 - enable, 0 - disable)
    sm_spslay_time (Default 10.0) Sets the amount of seconds players will be protected from getting hurt on their respawn.
    sm_spslay_slay (Default 1) Slay players who shoot spawn-protected teammates (1 - slay, 0 - don't slay)
    sm_spslay_removeonfire (Default 0) Removes spawn protection if player fires (1 - remove, 0 - don't remove)

    sm_spslay_changecolor (Default 1) Change color on spawn protected players (1 - custom colors, 0 - don't change)

    sm_spslay_tred (Default 255) Red component of T spawn protect color
    sm_spslay_tgreen (Default 0) Green component of T spawn protect color
    sm_spslay_tblue (Default 0) Blue component of T spawn protect color
    sm_spslay_talpha (Default 128) Alpha component of T spawn protect color

    sm_spslay_ctred (Default 0) Red component of CT spawn protect color
    sm_spslay_ctgreen (Default 0) Green component of CT spawn protect color
    sm_spslay_ctblue (Default 255) Blue component of CT spawn protect color
    sm_spslay_ctalpha (Default 128) Alpha component of CT spawn protect color


    Installation
    ----------------------------------------------------
    If you haven't already, install SDKHooks.
    Place spslay.smx into your /addons/sourcemod/plugins directory.
    Modify settings in /cfg/sourcemod/spslay.cfg. (This will be auto-generated the first time you use the plugin)


    Dependencies
    ----------------------------------------------------
    SDKHooks


    Changelog
    ----------------------------------------------------
    Spoiler
    • 1.2 (5 January 2013)
      -Code overhaul.
      -Added Updater support.
      -Bug fixes: Plugin now works as intended (some convars were not hooked, various changes).
      -Convar names have been changed.


    Notes
    ----------------------------------------------------
    -If you were using version 1.1 or earlier, delete /cfg/sourcemod/spslay.cfg. The convar names have been changed.
    -Credits to Bibby for suggesting the idea.
    -I used Altex's Deathmatch/SpawnProtect plugin as the basis for the code.
    -I've only tested on CS:GO, but the plugin should work for any game.


    Download
    ----------------------------------------------------
    Attached Files
    File Type: sp Get Plugin or Get Source (spslay.sp - 537 views - 8.7 KB)
    File Type: smx spslay.smx (7.7 KB, 386 views)
    __________________

    Last edited by Sheepdude; 01-05-2013 at 15:12.
    Sheepdude is offline
    Marcus_Brown001
    AlliedModders Donor
    Join Date: Nov 2012
    Location: Illinois, United States
    Old 11-29-2012 , 09:33   Re: [CS:GO] Spawn Protect Slay (1.0)
    Reply With Quote #2

    I was looking for a spawn protection plugin this morning, so I uploaded yours to test it out. I only tested it for about 4 minutes and left all the cvars default.

    I tested this on a CS:S server. I spawned a few bots to see how the spawn protection worked and such, and I noticed that only Terrorists were colored. I do not know if the CT were not colored but had protection, but either way. You have a few issues Other than that though, it seems like a nice plugin, and very simple to use.

    A suggestion for your plugin; While I was playing I noticed that you remain protected even if you move around and fire. I would at least make it so if you fire your weapon it takes your protection off. Having it like it is if you have too long of a spawn protection time on a small map then you spawn with godmode and kill as fast as you can. Just my thoughts Overall, nice plugin man!
    Marcus_Brown001 is offline
    Sheepdude
    SourceMod Donor
    Join Date: Aug 2012
    Location: Chicago
    Old 11-29-2012 , 12:24   Re: [CS:GO] Spawn Protect Slay (1.0)
    Reply With Quote #3

    Quote:
    I would at least make it so if you fire your weapon it takes your protection off.
    Hehe this feature already exists. Use sm_sps_removeonfire 1. =)

    Quote:
    Originally Posted by Marcus_Brown001 View Post
    I tested this on a CS:S server. I spawned a few bots to see how the spawn protection worked and such, and I noticed that only Terrorists were colored.
    Are you sure? By default it colors CTs blue and Ts red. The colors definitely work on CS:GO, but I haven't tested on CS:S, although it should be the same. Let me know.
    __________________
    Sheepdude is offline
    Marcus_Brown001
    AlliedModders Donor
    Join Date: Nov 2012
    Location: Illinois, United States
    Old 11-29-2012 , 12:48   Re: [CS:GO] Spawn Protect Slay (1.0)
    Reply With Quote #4

    Oh, ok. I have read like 4 or 5 of these before I got to yours. I guess I over-looked the remove on fire thing. Awesome though.

    I tested it on a local server and turned thirdperson on to see the colors. I was a T along with another bot, and two bots CT. We were colored red and our alphas changed, CTs looked unaltered. I will try it again here in a couple of minutes.

    *Edit* Yeah, tested a second time. I even changed the values in the cfg to match the Ts. The alpha stays at the default 255 as do all of the color values. It looks like there is zero change. I do not know if the spawn protection part actually works either. I will post about it as soon as I have someone else to shoot me

    *Edit 2* I was going to close my local server when I noticed is SHITLOAD of errors. I thought they were my plugins at first, but I read them and this is what they said.
    Code:
    L 11/29/2012 - 13:17:31: [SM]   [0]  Line 159, spslay_csgo.sp::PlayerSpawn()
    L 11/29/2012 - 13:17:53: [SM] Native "GetEntProp" reported: Property "m_bIsControllingBot" not found (entity 5/player)
    L 11/29/2012 - 13:17:53: [SM] Displaying call stack trace for plugin "spslay_csgo.smx":

    Last edited by Marcus_Brown001; 11-29-2012 at 13:49.
    Marcus_Brown001 is offline
    Sheepdude
    SourceMod Donor
    Join Date: Aug 2012
    Location: Chicago
    Old 11-29-2012 , 14:26   Re: [CS:S/CS:GO] Spawn Protect Slay (1.1)
    Reply With Quote #5

    Yep, that makes sense, since you can't control bots in Source.

    To be fair, I -did- call the plugin spslay_csgo. But for you, I've updated it to work with CS:S as well. =)
    __________________
    Sheepdude is offline
    AlfredSpain
    Senior Member
    Join Date: Oct 2010
    Old 01-05-2013 , 04:53   Re: [CS:S/CS:GO] Spawn Protect Slay (1.1)
    Reply With Quote #6

    on CS:GO not work sm_sps_slay "0"
    AlfredSpain is offline
    Sheepdude
    SourceMod Donor
    Join Date: Aug 2012
    Location: Chicago
    Old 01-05-2013 , 15:11   Re: [CS:S/CS:GO] Spawn Protect Slay (1.1)
    Reply With Quote #7

    Quote:
    Originally Posted by AlfredSpain View Post
    on CS:GO not work sm_sps_slay "0"
    Well well well, it's been a while since I've visited this plugin. Apparently I forgot to hook that convar.

    New version
    • 1.2 (5 January 2013)
      -Code overhaul.
      -Added Updater support.
      -Bug fixes: Plugin now works as intended (some convars were not hooked, various changes).
      -Convar names have been changed.
    __________________
    Sheepdude is offline
    TUSK3N1337
    SourceMod Donor
    Join Date: Dec 2013
    Location: Sweden
    Old 08-18-2014 , 08:51   Re: [ANY] Spawn Protect Slay (1.2)
    Reply With Quote #8

    Code:
    L 08/18/2014 - 13:48:46: [SM] Native "IsPlayerAlive" reported: Client 8 is not in game
    L 08/18/2014 - 13:48:46: [SM] Displaying call stack trace for plugin "spslay.smx":
    L 08/18/2014 - 13:48:46: [SM]   [0]  Line 202, spslay.sp::UnSpawnProtectClient()
    L 08/18/2014 - 13:48:46: [SM]   [1]  Line 219, spslay.sp::UnSpawnProtectClientTimer()
    L 08/18/2014 - 13:53:58: [SM] Native "IsPlayerAlive" reported: Client 8 is not in game
    L 08/18/2014 - 13:53:58: [SM] Displaying call stack trace for plugin "spslay.smx":
    L 08/18/2014 - 13:53:58: [SM]   [0]  Line 202, spslay.sp::UnSpawnProtectClient()
    L 08/18/2014 - 13:53:58: [SM]   [1]  Line 219, spslay.sp::UnSpawnProtectClientTimer()
    L 08/18/2014 - 13:57:02: [SM] Native "IsPlayerAlive" reported: Client 11 is not in game
    L 08/18/2014 - 13:57:02: [SM] Displaying call stack trace for plugin "spslay.smx":
    L 08/18/2014 - 13:57:02: [SM]   [0]  Line 202, spslay.sp::UnSpawnProtectClient()
    L 08/18/2014 - 13:57:02: [SM]   [1]  Line 219, spslay.sp::UnSpawnProtectClientTimer()
    L 08/18/2014 - 14:04:02: [SM] Native "IsPlayerAlive" reported: Client 12 is not in game
    L 08/18/2014 - 14:04:02: [SM] Displaying call stack trace for plugin "spslay.smx":
    L 08/18/2014 - 14:04:02: [SM]   [0]  Line 202, spslay.sp::UnSpawnProtectClient()
    L 08/18/2014 - 14:04:02: [SM]   [1]  Line 219, spslay.sp::UnSpawnProtectClientTimer()
    L 08/18/2014 - 14:04:31: [SM] Native "IsPlayerAlive" reported: Client 3 is not in game
    L 08/18/2014 - 14:04:31: [SM] Displaying call stack trace for plugin "spslay.smx":
    L 08/18/2014 - 14:04:31: [SM]   [0]  Line 202, spslay.sp::UnSpawnProtectClient()
    L 08/18/2014 - 14:04:31: [SM]   [1]  Line 219, spslay.sp::UnSpawnProtectClientTimer()
    L 08/18/2014 - 14:07:01: [SM] Native "IsPlayerAlive" reported: Client 5 is not in game
    L 08/18/2014 - 14:07:01: [SM] Displaying call stack trace for plugin "spslay.smx":
    L 08/18/2014 - 14:07:01: [SM]   [0]  Line 202, spslay.sp::UnSpawnProtectClient()
    L 08/18/2014 - 14:07:01: [SM]   [1]  Line 219, spslay.sp::UnSpawnProtectClientTimer()
    L 08/18/2014 - 14:09:46: [SM] Native "IsPlayerAlive" reported: Client 13 is not in game
    L 08/18/2014 - 14:09:46: [SM] Displaying call stack trace for plugin "spslay.smx":
    L 08/18/2014 - 14:09:46: [SM]   [0]  Line 202, spslay.sp::UnSpawnProtectClient()
    L 08/18/2014 - 14:09:46: [SM]   [1]  Line 219, spslay.sp::UnSpawnProtectClientTimer()
    L 08/18/2014 - 14:11:47: [SM] Native "IsPlayerAlive" reported: Client 1 is not in game
    L 08/18/2014 - 14:11:47: [SM] Displaying call stack trace for plugin "spslay.smx":
    L 08/18/2014 - 14:11:47: [SM]   [0]  Line 202, spslay.sp::UnSpawnProtectClient()
    L 08/18/2014 - 14:11:47: [SM]   [1]  Line 219, spslay.sp::UnSpawnProtectClientTimer()
    L 08/18/2014 - 14:24:30: [SM] Native "IsPlayerAlive" reported: Client 12 is not in game
    L 08/18/2014 - 14:24:30: [SM] Displaying call stack trace for plugin "spslay.smx":
    L 08/18/2014 - 14:24:30: [SM]   [0]  Line 202, spslay.sp::UnSpawnProtectClient()
    L 08/18/2014 - 14:24:30: [SM]   [1]  Line 219, spslay.sp::UnSpawnProtectClientTimer()
    L 08/18/2014 - 14:28:47: [SM] Native "IsPlayerAlive" reported: Client 15 is not in game
    L 08/18/2014 - 14:28:47: [SM] Displaying call stack trace for plugin "spslay.smx":
    L 08/18/2014 - 14:28:47: [SM]   [0]  Line 202, spslay.sp::UnSpawnProtectClient()
    L 08/18/2014 - 14:28:47: [SM]   [1]  Line 219, spslay.sp::UnSpawnProtectClientTimer()
    L 08/18/2014 - 14:30:25: [SM] Native "IsPlayerAlive" reported: Client 3 is not in game
    L 08/18/2014 - 14:30:25: [SM] Displaying call stack trace for plugin "spslay.smx":
    L 08/18/2014 - 14:30:25: [SM]   [0]  Line 202, spslay.sp::UnSpawnProtectClient()
    L 08/18/2014 - 14:30:25: [SM]   [1]  Line 219, spslay.sp::UnSpawnProtectClientTimer()
    L 08/18/2014 - 14:32:20: [SM] Native "IsPlayerAlive" reported: Client 8 is not in game
    L 08/18/2014 - 14:32:20: [SM] Displaying call stack trace for plugin "spslay.smx":
    L 08/18/2014 - 14:32:20: [SM]   [0]  Line 202, spslay.sp::UnSpawnProtectClient()
    L 08/18/2014 - 14:32:20: [SM]   [1]  Line 219, spslay.sp::UnSpawnProtectClientTimer()
    L 08/18/2014 - 14:36:06: [SM] Native "IsPlayerAlive" reported: Client 16 is not in game
    L 08/18/2014 - 14:36:06: [SM] Displaying call stack trace for plugin "spslay.smx":
    L 08/18/2014 - 14:36:06: [SM]   [0]  Line 202, spslay.sp::UnSpawnProtectClient()
    L 08/18/2014 - 14:36:06: [SM]   [1]  Line 219, spslay.sp::UnSpawnProtectClientTimer()
    L 08/18/2014 - 14:40:06: [SM] Native "IsPlayerAlive" reported: Client 7 is not in game
    L 08/18/2014 - 14:40:06: [SM] Displaying call stack trace for plugin "spslay.smx":
    L 08/18/2014 - 14:40:06: [SM]   [0]  Line 202, spslay.sp::UnSpawnProtectClient()
    L 08/18/2014 - 14:40:06: [SM]   [1]  Line 219, spslay.sp::UnSpawnProtectClientTimer()
    __________________
    TUSK3N1337 is offline
    Send a message via Skype™ to TUSK3N1337
    Reply



    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 10:43.


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