Monthly Target: $400 Donations: $147
 36% 

L4D Friendly Fire damage remover


Post New Thread Reply   
 
Thread Tools Display Modes
Author
r5053
SourceMod Donor
Join Date: May 2007
Location: Germany
Plugin ID:
648
Plugin Version:
1.3.0
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    23 
    Plugin Description:
    readds the health after a team attack (default only inside the spawnzone)
    Old 11-26-2008 , 18:03   L4D Friendly Fire damage remover
    Reply With Quote #1

    The Plugin readds the health after a team attack in L4D.
    (default only inside the spawnzone)

    requires SM 1.2

    Changelog:

    1.0.1
    *checks now "IsClientInGame"
    1.1.0
    +added Cvar "l4dtk_blockonlyinspawn" default value 1
    1.2.0
    *fixed the errors in the logfile
    1.3.0
    +added Silentmode
    cvar: sm_nota_silent (1=No Chat Message, 0 = Chat Messages)
    Attached Files
    File Type: sp Get Plugin or Get Source (nota.sp - 12313 views - 2.4 KB)
    File Type: smx nota.smx (2.8 KB, 2279 views)
    __________________
    Visit HLPortal.de (this is not my Page)



    Last edited by r5053; 02-05-2009 at 02:51.
    r5053 is offline
    Send a message via ICQ to r5053 Send a message via Skype™ to r5053
    msleeper
    Veteran Member
    Join Date: May 2008
    Location: Atlanta, Jawjuh
    Old 11-26-2008 , 18:09   Re: L4D Friendly Fire damage remover
    Reply With Quote #2

    Friendly Fire is what makes L4D fun.
    __________________
    msleeper is offline
    Lebson506th
    Veteran Member
    Join Date: Jul 2008
    Old 11-26-2008 , 18:14   Re: L4D Friendly Fire damage remover
    Reply With Quote #3

    Then don't use it.
    __________________
    My Plugins
    Spray Tracer by Nican, maintained by me
    Simple TK Manager
    DoD:S Admin Weapons

    Links
    Resistance and Liberation (A HL2 Multiplayer Modification)
    Lebson506th is offline
    abelp
    Senior Member
    Join Date: May 2008
    Old 11-26-2008 , 19:20   Re: L4D Friendly Fire damage remover
    Reply With Quote #4

    Thanks...
    abelp is offline
    Sammy-ROCK!
    Senior Member
    Join Date: Jun 2008
    Location: Near Mrs.Lag
    Old 11-26-2008 , 19:53   Re: L4D Friendly Fire damage remover
    Reply With Quote #5

    Sorry but you could make it better.

    public Action:Event_player_hurt(Handle:event, const String:name[], bool:dontBroadcast)
    { //Why save results if we are using only once? "new" declarations actualy spend cpu so we better not waste xD
    if (GetClientTeam(GetClientOfUserId(GetEventInt( event, "userid"))) == GetClientTeam(GetClientOfUserId(GetEventInt(e vent, "attacker"))))
    {
    return Plugin_Handled; //Simply cancels the event so in any case that shot never happened
    }
    return Plugin_Continue;
    }

    For more info check http://wiki.alliedmods.net/Events_(SourceMod_Scripting)
    It explains events workout for sourcemod.
    Sammy-ROCK! is offline
    Sammy-ROCK!
    Senior Member
    Join Date: Jun 2008
    Location: Near Mrs.Lag
    Old 11-26-2008 , 20:14   Re: L4D Friendly Fire damage remover
    Reply With Quote #6

    Good news just found out "friendly_fire" event for l4d. Hook it in pre mode and always return Plugin_Handled.

    File: ModEvents.res
    Directory: Steam\steamapps\common\left 4 dead\left4dead\resource
    Line: 875
    Text:
    "friendly_fire"
    {
    "attacker" "short" // player who fired the weapon
    "victim" "short" // player who got shot
    "guilty" "short" // player who was at fault
    "type" "long" // damage type
    }
    Sammy-ROCK! is offline
    SAMURAI16
    BANNED
    Join Date: Sep 2006
    Old 11-27-2008 , 00:18   Re: L4D Friendly Fire damage remover
    Reply With Quote #7

    @Sammy-ROCK : return Plugin_Handled in a event will block the event not the action. For example in player_hurt event, return Plugin_Handled will not block weapon shooting
    SAMURAI16 is offline
    Send a message via MSN to SAMURAI16
    CrimsonGT
    Veteran Member
    Join Date: Oct 2007
    Location: Gainesville, FL
    Old 11-27-2008 , 01:49   Re: L4D Friendly Fire damage remover
    Reply With Quote #8

    I wont mind these plugins once valve fixes the matchmaking system, but at the moment, im going to be one pissed off son of a bitch if I join a server with this on it.
    CrimsonGT is offline
    r5053
    SourceMod Donor
    Join Date: May 2007
    Location: Germany
    Old 11-27-2008 , 03:19   Re: L4D Friendly Fire damage remover
    Reply With Quote #9

    @Sammy-ROCK!

    thanks for your try to help,
    but this isn't my first sourcemod plugin, and i'm not new in handeling events, maybe you know the N1G Ranking plugins.

    -Raphael
    __________________
    Visit HLPortal.de (this is not my Page)


    r5053 is offline
    Send a message via ICQ to r5053 Send a message via Skype™ to r5053
    r5053
    SourceMod Donor
    Join Date: May 2007
    Location: Germany
    Old 11-27-2008 , 03:20   Re: L4D Friendly Fire damage remover
    Reply With Quote #10

    Quote:
    Originally Posted by CrimsonGT View Post
    I wont mind these plugins once valve fixes the matchmaking system, but at the moment, im going to be one pissed off son of a bitch if I join a server with this on it.
    yep that's true, matchmaking is good, but you should be able to select the server with a serverbrowser in the matchmaking lobby.
    __________________
    Visit HLPortal.de (this is not my Page)


    r5053 is offline
    Send a message via ICQ to r5053 Send a message via Skype™ to r5053
    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:35.


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