Monthly Target: $400 Donations: $126
 31% 

SM Damage


Post New Thread Reply   
 
Thread Tools Display Modes
Author
SWAT_88
SourceMod Donor
Join Date: Jan 2008
Location: Austria
Plugin ID:
533
Plugin Version:
2.0
Plugin Category:
Gameplay
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    10 
    Plugin Description:
    Individual damage multiplier for each client. That means the weapons have more damage.
    Old 08-29-2008 , 18:27   SM Damage
    Reply With Quote #1

    /********************************************* **********************************

    SM Damage

    Version: 2.0
    Author: SWAT_88

    1.0 First version, should work on basically any mod
    1.1 Added Damage Init for each client
    1.2 Added Multi Mod Support
    1.3 Now the damage is tracked correctly in stats plugins.
    1.4 Fixed g_attacker bug.
    1.5 Added Different damage multiplier per weapon (only in MultiMod version)
    1.6 Fixed commands from server console. (only in MultiMod version)
    1.6 Added Different damage amount per weapon. (only in MultiMod version)
    2.0 Fixed this error: "[SM] Native "GetClientWeapon" reported: Client index 0 is invalid".

    Description:
    Individual damage multiplier for each client.
    That means the weapons have more damage.
    There are 4 version of the plugin:
    • CSS Only Version:
      • All Values for damage mutliplier are valid; also 0 (= no damge).
      • The damage is tracked correctly in stats plugins.
      • Hooker Extension is needed (Already in Attachments).
      • Works with any weapons except granades and knifes.
    • MultiMod Version:
      • Only Values >= 1 are valid.
      • Unfortunately the damage ist tracked incorrectly in stats plugins.
      • MultiMod support.
      • No Hooker Extension is needed.
      • Works with any weapon.
    • L4D Version - by Vulkan:
      • For more information look here.
    • SDKHooks Version - by AtomicStryker:
      • Requirements: SDKHooks by DJ Tsunami
      • All damage settings can now STACK.
      • You can also use multipliers below 1.0.
      • For more information look here
    Commands:
    sm_damage <player> <multiplier>

    sm_damage_weapon <weapon> <multiplier> - Add/Set damage multiplier of weapon

    sm_damage_amount <weapon> <amount> - Add/Set damage amount of weapon

    sm_damage_clear - Clear weapon storage.
    Cvars:
    sm_damage_enabled "1" - 0: disables the plugin - 1: enables the plugin

    sm_damage_info "1" - 0: disables information - 1: shows which player/s are involved

    sm_damage_init "1.0" - 1.0: standard multiplier for each client on connect - x: sets damage multiplier for each client on connect.
    Setup (SourceMod):
    Install the smx file to addons\sourcemod\plugins.
    (Re)Load Plugin or change Map.
    TO DO:
    Nothing.
    Copyright:
    Everybody can edit this plugin and copy this plugin.
    Thanks to:
    AtomicStryker
    Vulkan
    [KH] Royal CS
    Donations:
    I'm a student and code this plugins in my freetime, while you probably play games .
    If you like my work, kindly make a donation via PayPal.
    Feel free to donate whatever amount you like.

    Thank you for supporting this plugin!
    Don't forget to support SourceMod too.
    Consider: Without SourceMod none of these plugins would exist!
    Notice: This


    HAVE FUN!!!
    ********************************************* **********************************/
    Attached Files
    File Type: sp Get Plugin or Get Source (sm_damage css.sp - 1366 views - 4.8 KB)
    File Type: smx sm_damage css.smx (3.7 KB, 1339 views)
    File Type: zip hooker-pkg.zip (1,005.0 KB, 2146 views)
    File Type: sp Get Plugin or Get Source (sm_damage_l4d.sp - 1360 views - 8.0 KB)
    File Type: sp Get Plugin or Get Source (sm_damage_sdkhooks.sp - 717 views - 5.9 KB)
    File Type: smx sm_damage_sdkhooks.smx (5.6 KB, 1030 views)
    File Type: sp Get Plugin or Get Source (sm_damage MultiMod.sp - 1425 views - 7.3 KB)
    __________________

    Last edited by SWAT_88; 01-31-2011 at 21:09.
    SWAT_88 is offline
    Jokerz99
    Senior Member
    Join Date: Apr 2008
    Old 08-29-2008 , 23:42   Re: SM Damage
    Reply With Quote #2

    This is a good plugin but a nice way to grief with hakers on a server would be the ability to make there damage 0 is that possible to add?
    __________________
    Jokerz99 is offline
    YellowCakeKlan
    Junior Member
    Join Date: Aug 2008
    Old 08-30-2008 , 02:10   Re: SM Damage
    Reply With Quote #3

    will this work for other games, like hl2dm? or not
    YellowCakeKlan is offline
    LocutusH
    Senior Member
    Join Date: Dec 2007
    Location: Hungary
    Old 08-30-2008 , 06:24   Re: SM Damage
    Reply With Quote #4

    Can i set a global multiplier, or just per player?
    __________________
    LocutusH is offline
    SWAT_88
    SourceMod Donor
    Join Date: Jan 2008
    Location: Austria
    Old 08-30-2008 , 11:05   Re: SM Damage
    Reply With Quote #5

    Quote:
    Originally Posted by Jokerz99 View Post
    This is a good plugin but a nice way to grief with hakers on a server would be the ability to make there damage 0 is that possible to add?
    There is no way to block damage.
    Because the event is fired after the damage; also if I write Plugin_Handled; Damage is taken.
    The only way to block damage is to give the victim health, but then a headshot with a weapon will kill the victim.
    I can add it but I think it's useless.
    Quote:
    Originally Posted by YellowCakeKlan
    will this work for other games, like hl2dm? or not
    Yes.
    I will test it.
    Quote:
    Originally Posted by LocutusH
    Can i set a global multiplier, or just per player?
    Yes, write sm_damage @all 10.
    This are the standard sm targets.
    You must write this every time if a player joins the server, because he has no multiplier.
    But if you dislike this solution please post again and I will add this feature.
    __________________
    SWAT_88 is offline
    LocutusH
    Senior Member
    Join Date: Dec 2007
    Location: Hungary
    Old 08-30-2008 , 11:08   Re: SM Damage
    Reply With Quote #6

    Yes, please A global setting would be nice, that is applied to all players automatically.
    __________________
    LocutusH is offline
    SWAT_88
    SourceMod Donor
    Join Date: Jan 2008
    Location: Austria
    Old 08-30-2008 , 11:12   Re: SM Damage
    Reply With Quote #7

    Quote:
    Originally Posted by LocutusH View Post
    Yes, please A global setting would be nice, that is applied to all players automatically.
    Fast response!
    Ok, I will add it.
    __________________
    SWAT_88 is offline
    SWAT_88
    SourceMod Donor
    Join Date: Jan 2008
    Location: Austria
    Old 08-30-2008 , 17:36   Re: SM Damage
    Reply With Quote #8

    Added global setting that is applied to all players automatically.
    Added multimod support.

    Have Fun!
    __________________
    SWAT_88 is offline
    LocutusH
    Senior Member
    Join Date: Dec 2007
    Location: Hungary
    Old 08-31-2008 , 05:46   Re: SM Damage
    Reply With Quote #9

    ty, i will test it
    __________________
    LocutusH is offline
    LocutusH
    Senior Member
    Join Date: Dec 2007
    Location: Hungary
    Old 09-01-2008 , 16:19   Re: SM Damage
    Reply With Quote #10

    Umm i dont know if this is itended to work so, but the killstat plugins doesnt write the actual damage after someone is killed...

    It says, that kills are made even with 90-95 dmg...
    __________________
    LocutusH 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 12:41.


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