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

[L4D] Damage


Post New Thread Reply   
 
Thread Tools Display Modes
Author
voiderest
Junior Member
Join Date: Jan 2009
Plugin ID:
754
Plugin Version:
1.0
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allows you turn damage on/off for infected and friendly fire
    Old 02-04-2009 , 19:17   [L4D] Damage
    Reply With Quote #1

    Allows you turn damage on/off for infected and friendly fire. Should be useful if you are trying to make a "gamemode" or "mod."

    l4d_damage_head_only
    1: Head damage only, this will override the other damage settings related to infected.

    l4d_damage_shove
    Damage done to players for shove.

    l4d_damage_melee
    0: Melee does no damage.

    l4d_damage_chest, l4d_damage_stomach, l4d_damage_arm, l4d_damage_leg
    0: Remove damage to X.

    l4d_damage_ff
    -10.0 to 10.0 dmg factor for victim.

    -1 heals 100% of the damage and 1 leaves 100% of the damage.

    l4d_damage_ffa
    -10.0 to 10.0 dmg factor for attacker.

    Fire and blast damage will still work on the infected no matter where they are hit. Also when the headshot only mode is on it will tell players to aim for the head in a hint. It does it when people connect or on the cvar changed to 1. Pic below if the in-game hint.

    Fire and blast damage is not reversed in friendly fire because dumb people will find a way to catch your pipe bombs and jump into walls of fire.



    Change Log:
    0.9.1
    - Added AutoExecConfig
    0.9.2
    - It works on the M4 and Hunting Rifle now
    0.9.5
    - Added player shove damage
    0.9.6
    - Fixed shove damage (will still hurt people if ff is set to normal)
    - Fixed ff burning dmg bug
    - Fixed ff mirror dmg bug involing being in black and white
    0.9.7
    - Fixed array out of bounds error
    1.0
    - tested on l4d2 sourcemod 1.3.2
    - ff redone
    - burn/blast dmg checks more accurate
    - down count works
    - known issue: You can sometimes decapitate infected without them dying, good luck.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_damage_0_9.sp - 3063 views - 4.7 KB)
    File Type: sp Get Plugin or Get Source (l4d_damage_0_9_1.sp - 2308 views - 4.7 KB)
    File Type: sp Get Plugin or Get Source (l4d_damage_0_9_2.sp - 2264 views - 4.8 KB)
    File Type: sp Get Plugin or Get Source (l4d_damage_0_9_5.sp - 3279 views - 5.8 KB)
    File Type: sp Get Plugin or Get Source (l4d_damage_0_9_6.sp - 2002 views - 7.5 KB)
    File Type: sp Get Plugin or Get Source (l4d_damage_0_9_7.sp - 3029 views - 7.4 KB)
    File Type: sp Get Plugin or Get Source (l4d_damage_1.sp - 4184 views - 7.4 KB)

    Last edited by voiderest; 06-21-2010 at 02:37. Reason: Changed Version
    voiderest is offline
    grandwazir
    Senior Member
    Join Date: Jan 2009
    Old 02-06-2009 , 03:43   Re: [L4D] Damage Plugin
    Reply With Quote #2

    I've been thinking of adding a "headshot" only mode to All4Dead but you beat me to it!

    You might want to add an additional FF mode which mirrors damage taken. So if I shoot someone I take 100% of the damage. Reason I suggest it is I think someone requested it a while back so it might be popular.
    grandwazir is offline
    santaclaus
    Senior Member
    Join Date: Dec 2008
    Old 02-06-2009 , 13:40   Re: [L4D] Damage Plugin
    Reply With Quote #3

    Quote:
    Originally Posted by grandwazir View Post
    I've been thinking of adding a "headshot" only mode to All4Dead but you beat me to it!

    You might want to add an additional FF mode which mirrors damage taken. So if I shoot someone I take 100% of the damage. Reason I suggest it is I think someone requested it a while back so it might be popular.
    Quote:
    l4d_damage_ff
    0: Friendly fire does no damage.
    1: Friendly fire is the same as normal
    2: The attacker takes the damage
    3: The damage is split between attacker and victim
    __________________

    santaclaus is offline
    headseeker
    Junior Member
    Join Date: Jan 2009
    Old 02-06-2009 , 19:39   Re: [L4D] Damage Plugin
    Reply With Quote #4

    Where are we supposed to put the cvar in? I tried to input the l4d_damage_ff 3 in sourcemod.cfg and then in server.cfg but none worked

    Last edited by headseeker; 02-07-2009 at 00:53.
    headseeker is offline
    grandwazir
    Senior Member
    Join Date: Jan 2009
    Old 02-07-2009 , 05:33   Re: [L4D] Damage Plugin
    Reply With Quote #5

    Yeah well it was late I must have missed that.
    grandwazir is offline
    voiderest
    Junior Member
    Join Date: Jan 2009
    Old 02-07-2009 , 23:13   Re: [L4D] Damage Plugin
    Reply With Quote #6

    The cvars are defaulted to make the game behave as normal. You should be able to use them like any other cvar after the plugin is loaded. Should work by just typing it in the console or in cfg files.

    If its not working I'm guessing that the cfgs are being ran before the plugins are loaded for some reason. You could always write your own cfg file and exec it once the server is loaded up.
    voiderest is offline
    Sammy-ROCK!
    Senior Member
    Join Date: Jun 2008
    Location: Near Mrs.Lag
    Old 02-09-2009 , 20:08   Re: [L4D] Damage Plugin
    Reply With Quote #7

    Quote:
    Originally Posted by voiderest View Post
    The cvars are defaulted to make the game behave as normal. You should be able to use them like any other cvar after the plugin is loaded. Should work by just typing it in the console or in cfg files.

    If its not working I'm guessing that the cfgs are being ran before the plugins are loaded for some reason. You could always write your own cfg file and exec it once the server is loaded up.
    Or you could add to your plugin AutoExecConfig(true, "my_plugin_cfg_file") at OnPluginStart. Check Script Functions if your not sure what it does.
    Sammy-ROCK! is offline
    mukla67
    Member
    Join Date: Nov 2008
    Old 02-11-2009 , 11:13   Re: [L4D] Damage Plugin
    Reply With Quote #8

    when will there be a cfg update on this plugin as i love the no melee dmg side of things but cnt find the config to put this in i.e like other plug ins generate one in the sourcemod cfg folder this one doesnt
    mukla67 is offline
    tatercrisp
    SourceMod Donor
    Join Date: Mar 2008
    Location: Chicken Coop
    Old 02-11-2009 , 18:03   Re: [L4D] Damage Plugin
    Reply With Quote #9

    Works fine for me.. just added to the end of my server cfg.. however it required a full reboot via my game server host control panel.
    tatercrisp is offline
    tfphoenix
    Member
    Join Date: Dec 2008
    Old 02-15-2009 , 15:31   Re: [L4D] Damage Plugin
    Reply With Quote #10

    I have it set to deal the damage to the player who fired (cvar is 2) and it works with tier 1 guns uzi shotgun ect. but it doesnt work with the tier 2's like the assault rifle...
    tfphoenix 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 17:09.


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