Raised This Month: $146 Target: $400
 36% 

[ZPS] Infection Protection


Post New Thread Reply   
 
Thread Tools Display Modes
Author
will2tango
Member
Join Date: Nov 2009
Location: England
Plugin ID:
1323
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Zombie Panic!
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    Protection for Infected Survivors
    Old 12-11-2009 , 13:52   [ZPS] Infection Protection
    Reply With Quote #1

    This is my first plugin, feel free to poke at it! Any improvements that can be made please let me know.

    Overview:
    Infection Protection is a plugin that hinders Zombies from trying to kill Infected Survivors. It is basically modified spawn protection that is triggered when a survivor is hurt and infected. With the option of slapping the bad zombie as punishment. Survivors will still take damage from the initial attack but be protected for a short time afterwards. As the Carrier has caused the Infection i have included an option to allow him to still damage his victim if enabled.

    CVARs:
    sm_infection_protection_ver - current version
    sm_infection_protection - Infected Survivor Protection Time in Seconds. (default=10, 0=disabled)
    sm_infection_protection_punishment - Punish Bad Zombies with a Slap for trying to kill Infected Survivors, set damage. (default=50, 0=disabled)
    sm_infection_protection_carrier - Allow Carrier to Kill Infected Survivors. (default=Yes, 1=Yes 0=No)

    Comments:
    This plugin was created to prevent the frustration of infecting a Survivor and allowing him to live in the hopes that when he turned he would take out afew more pesky survivors out for you, only to have another Zombie finish him off, destroying your evil plan.

    Thanks to:
    Sammy-ROCK for his various helpful posts on scripting, and (Pills Cure) plugin, for the infection check.
    X@IDER for Advanced Commands (spawn protection)
    Mike + R_Hehl for (eloStats)
    Ferret (Last Man Standing) I could not crack that until i read your code.
    I have learnt alot from those plugins and will continue to use them for reference.

    Change Log:
    1.0 - Initial Release
    1.1 - Added Check for Zombie Health before Punishment
    1.2 - Added Last Survivor Check, to prevent creating a Frustrating Invincible Last Survivor

    Enjoy!
    Attached Files
    File Type: sp Get Plugin or Get Source (infectionprotection.sp - 1465 views - 4.1 KB)

    Last edited by will2tango; 08-31-2010 at 09:37.
    will2tango is offline
    Chaos Llama
    Senior Member
    Join Date: Jul 2006
    Old 12-21-2009 , 16:06   Re: [ZPS] Infection Protection
    Reply With Quote #2

    Awesome plugin. I hate it when zombies attack the infected. I love seeing a human turn into zombie and kill all his previous teammates.

    I installed the plugin on my server:

    =GU= 24/7 Asy|Bio|Cin [HP Regen/Glow/Contest: Win $50!]
    209.44.122.38:27015
    Chaos Llama is offline
    will2tango
    Member
    Join Date: Nov 2009
    Location: England
    Old 01-12-2010 , 15:58   Re: [ZPS] Infection Protection
    Reply With Quote #3

    Thanks for your support Chaos Llama,
    This plugin made alot of our players happy.
    Ive updated the code with a Bad Zombie HP check to make sure he can take it before he gets punished, and a Last Survivor Check to prevent the last Invincible Survivor dragging the round out

    I just need to test it then i will upload. Thanks
    will2tango is offline
    PAL-18
    AlliedModders Donor
    Join Date: Jul 2010
    Old 07-31-2011 , 09:05   Re: [ZPS] Infection Protection
    Reply With Quote #4

    This plugin doesnt work anymore.

    I get the following error on plugin load:

    [SM] Native "GetConVarFlags" reported: Invalid convar handle 0 (error 4)
    09:03:13 [SM] Displaying call stack trace for plugin "zpsinfectionlite.smx":
    09:03:13 [SM] [0] Line 28, xxx\xxx\sourcemod\scripting\zpsinfectionlite. sp::OnPluginStart()

    I'm using sourcemod versoin 1.4.0 Build 3310

    Any chance for a fix?
    PAL-18 is offline
    will2tango
    Member
    Join Date: Nov 2009
    Location: England
    Old 08-01-2011 , 06:42   Re: [ZPS] Infection Protection
    Reply With Quote #5

    Hi Pal-18,
    Im afraid that error isnt from this plugin, this one would give errors for "infectionprotection.smx" not "zpsinfectionlite.smx" But to be safe could you try disabling your "zpsinfectionlite.smx" plugin form me and make sure the infection protection works OK for you.

    What does the "zpsinfectionlite.smx" plugin do for you? and where did you come across it? From that error I would imagine its just a simple coding conversion/error, and probably fixed by the author by now, have a look in your scripting folder for a file called zpsinfectionlite.sp and open it in notepad, there should be an author name near the top under "public Plugin:myinfo" which should help us track him down. If not I may know where you can get your hands on an alternative if it does what i think it does
    Thanks Pal-18, hope this helps
    __________________
    will2tango is offline
    PAL-18
    AlliedModders Donor
    Join Date: Jul 2010
    Old 08-01-2011 , 13:23   Re: [ZPS] Infection Protection
    Reply With Quote #6

    Oops, sorry - i didnt notice it was a different plugin. Posting things on forums when your still half a sleep produces unexpected results.

    Last edited by PAL-18; 08-01-2011 at 13:35.
    PAL-18 is offline
    will2tango
    Member
    Join Date: Nov 2009
    Location: England
    Old 08-02-2011 , 05:43   Re: [ZPS] Infection Protection
    Reply With Quote #7

    Hahaha no worries If you cant track down the athour of that plugin or cant get it working give me a shout, I may have or know of something similar for you. Failing all that we might be able to fix it for you
    __________________
    will2tango is offline
    niask1
    Junior Member
    Join Date: Dec 2010
    Location: Kaluga, Russia
    Old 05-16-2012 , 06:20   Re: [ZPS] Infection Protection
    Reply With Quote #8

    Hello. I have the following error running this plugin:
    Code:
    L 05/16/2012 - 13:57:24: [SM] Native "IsFakeClient" reported: Client index 0 is invalid
    L 05/16/2012 - 13:57:24: [SM] Displaying call stack trace for plugin "infectionprotection.smx":
    L 05/16/2012 - 13:57:24: [SM]   [0]  Line 39, /home/groups/alliedmodders/forums/files/6/3/9/6/9/58001.attach::PlayerHurt()
    Is it possible to fix it?
    niask1 is offline
    BloodyBlade
    Senior Member
    Join Date: Feb 2018
    Old 05-02-2020 , 08:18   Re: [ZPS] Infection Protection
    Reply With Quote #9

    Quote:
    Originally Posted by niask1 View Post
    Hello. I have the following error running this plugin:
    Code:
    L 05/16/2012 - 13:57:24: [SM] Native "IsFakeClient" reported: Client index 0 is invalid
    L 05/16/2012 - 13:57:24: [SM] Displaying call stack trace for plugin "infectionprotection.smx":
    L 05/16/2012 - 13:57:24: [SM]   [0]  Line 39, /home/groups/alliedmodders/forums/files/6/3/9/6/9/58001.attach::PlayerHurt()
    Is it possible to fix it?
    Attached Files
    File Type: sp Get Plugin or Get Source (infectionprotection.sp - 412 views - 4.1 KB)
    BloodyBlade 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 04:46.


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