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

[Any] Temporary Friendly-Fire Mitigation


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Skyy
AlliedModders Donor
Join Date: Jan 2010
Location: Toronto, Canada
Plugin ID:
3375
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    On new client connections, and for all connections on new map loads, friendly-fire can be mitigated for a temporary amount of time.
    Old 11-20-2012 , 12:09   [Any] Temporary Friendly-Fire Mitigation
    Reply With Quote #1

    This plugin was requested by id5473 @ https://forums.alliedmods.net/showthread.php?t=201282

    Description:
    This plugin will allow server admins to temporarily mitigate the effects of friendly fire for a set amount of time after a new player joins the server (mid-game) as well as when all players load on a new map.
    SDKHooks is required.

    tmff_mitigation_time: (Default 60) The cvar.

    Update: corrected a typo in code.
    Attached Files
    File Type: smx tmff.smx (2.9 KB, 164 views)
    File Type: sp Get Plugin or Get Source (tmff.sp - 247 views - 1.8 KB)

    Last edited by Skyy; 11-20-2012 at 17:55.
    Skyy is offline
    id5473
    Member
    Join Date: Mar 2012
    Old 11-22-2012 , 16:39   Re: [Any] Temporary Friendly-Fire Mitigation
    Reply With Quote #2

    while it does what it is supposed to... it also makes you completely invulnerable to witches and common infected indefinitely. :O
    id5473 is offline
    Skyy
    AlliedModders Donor
    Join Date: Jan 2010
    Location: Toronto, Canada
    Old 11-22-2012 , 17:49   Re: [Any] Temporary Friendly-Fire Mitigation
    Reply With Quote #3

    No, I just tested this on my server, and commons and witches were definitely hurting me.

    Last edited by Skyy; 11-22-2012 at 17:51.
    Skyy is offline
    id5473
    Member
    Join Date: Mar 2012
    Old 11-22-2012 , 17:55   Re: [Any] Temporary Friendly-Fire Mitigation
    Reply With Quote #4

    we'll test it again tomorrow to really determine the steps to reproduce it.. happened to all of us.
    fall dmg, witches and commons did no dmg (we were able to just jump down the building instead of calling elevator). specials and ff did dmg.. was hard rain map 2 when we actively noticed it..

    i'll report back when i've gathered more info.
    id5473 is offline
    thetwistedpanda
    Good Little Panda
    Join Date: Sep 2008
    Old 11-22-2012 , 18:30   Re: [Any] Temporary Friendly-Fire Mitigation
    Reply With Quote #5

    I ran through the code as well; what you're describing isn't possible with this plugin .
    __________________
    thetwistedpanda is offline
    Mr. Zero
    Veteran Member
    Join Date: Jun 2009
    Location: Denmark
    Old 11-23-2012 , 02:11   Re: [Any] Temporary Friendly-Fire Mitigation
    Reply With Quote #6

    Some suggested changes.

    Other than that, it looks good.
    Attached Files
    File Type: sp Get Plugin or Get Source (tmff.sp - 387 views - 2.7 KB)

    Last edited by Mr. Zero; 11-23-2012 at 02:12.
    Mr. Zero is offline
    id5473
    Member
    Join Date: Mar 2012
    Old 11-23-2012 , 16:04   Re: [Any] Temporary Friendly-Fire Mitigation
    Reply With Quote #7

    the latest version made specials and survivors invulnerable right after the start of the camp.
    id5473 is offline
    Skyy
    AlliedModders Donor
    Join Date: Jan 2010
    Location: Toronto, Canada
    Old 11-23-2012 , 16:10   Re: [Any] Temporary Friendly-Fire Mitigation
    Reply With Quote #8

    As twistedpanda has said, this plugin cannot do what you're claiming it does. The Hook only changes damage to 0 if the perpetrator is a survivor and the victim is a survivor. You need to check the other plugins that you're running.
    Skyy is offline
    id5473
    Member
    Join Date: Mar 2012
    Old 11-23-2012 , 18:12   Re: [Any] Temporary Friendly-Fire Mitigation
    Reply With Quote #9

    it is definitely this plugin because everything works normal as soon as I unload it (via sm plugins unload)

    Are you 100% sure the OnTakeDamage function doesn't return a true by mistake when taking dmg from pretty much any source? (ledge hang dmg does go thru)

    I can even pm you the server IP.. if you want to check it yourself.

    my Plugin list on the server.

    Quote:
    [SM] Listing 38 plugins:
    01 "Fun Commands" (1.4.3) by AlliedModders LLC
    02 "Admin File Reader" (1.4.3) by AlliedModders LLC
    03 "[ANY] Cvar Configs Updater" (1.1) by SilverShot
    04 "Basic Comm Control" (1.4.3) by AlliedModders LLC
    05 "[L4D2] Custom admin commands" (1.0.9) by honorcode23
    06 "Anti-Flood" (1.4.3) by AlliedModders LLC
    07 "[L4D & L4D2] Bot Sniper Rifle AI Fix" (1.1) by sereky
    08 "Fun Votes" (1.4.3) by AlliedModders LLC
    09 "Vocalize Fatigue 2" (2.1.0) by Mr. Zero
    10 "Cheats" (1.1) by FaTony
    11 "[L4D2] Replace Magnums" (1.0.1) by chinagreenelvis, McFlurry
    12 "Basic Ban Commands" (1.4.3) by AlliedModders LLC
    13 "[L4D & L4D2] Fire Glow" (1.0) by SilverShot
    14 "BuiltinVotes Revote" (1.0) by Powerlord
    15 "Vocalize Chat Triggers" (1.0) by Mr. Zero
    16 "Chainsaw Refuelling" (1.6) by DJ_WEST
    17 "[L4D2] Time Contoller" (1.0) by McFlurry
    18 "L4D2 Pause" (0.2.1) by pvtschlag
    19 "[L4D & L4D2] Vote Mode" (1.0) by SilverShot
    20 "Basic Commands" (1.4.3) by AlliedModders LLC
    21 "Admin Help" (1.4.3) by AlliedModders LLC
    22 "Admin Menu" (1.4.3) by AlliedModders LLC
    23 "[L4D2] Fireworks Party" (1.6) by SilverShot
    24 "Player Commands" (1.4.3) by AlliedModders LLC
    25 "[L4D2] Weather Control" (1.5) by SilverShot
    26 "L4D2 Block Healing" (1.1.2) by Buster "Mr. Zero" Nielsen
    27 "[L4D & L4D2] Flare Package" (2.2) by SilverShot
    28 "[L4D & L4D2] Plane Crash" (1.4) by SilverShot
    29 "Stuck Zombie Melee Fix" (1.0.4) by AtomicStryker
    30 "Client Preferences" (1.4.3) by AlliedModders LLC
    31 "[L4D & L4D2] Gear Transfer" (1.5.9) by SilverShot
    32 "Basic Chat" (1.4.3) by AlliedModders LLC
    33 "L4D Survivor AI Pounced Fix" (1.0.4) by AtomicStryker
    34 "[L4D2] F-18 Airstrike" (1.0) by SilverShot
    35 "[L4D & L4D2] Infected Glow" (1.3) by SilverShot
    36 Disabled: "Nextmap" (1.4.3) by AlliedModders LLC
    37 "Temporary Mitigation Friendly Fire" (1.0) by Sky
    38 "[L4D & L4D2] Glare" (1.0) by SilverShot
    but again.. this has never occurred prior using this plugin and the behaviour stops as soon as I unload it.
    Using Mr zeros altered version btw.

    Last edited by id5473; 11-23-2012 at 18:52. Reason: .
    id5473 is offline
    eric0279
    AlliedModders Donor
    Join Date: May 2007
    Old 11-24-2012 , 00:09   Re: [Any] Temporary Friendly-Fire Mitigation
    Reply With Quote #10

    I confirm that prevents the plugin to kill infecte...
    eric0279 is offline
    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 09:49.


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