Thread: SM Damage
View Single Post
Author Message
SWAT_88
SourceMod Donor
Join Date: Jan 2008
Location: Austria
Old 08-29-2008 , 17: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 - 2119 views - 4.8 KB)
File Type: smx sm_damage css.smx (3.7 KB, 1872 views)
File Type: zip hooker-pkg.zip (1,005.0 KB, 2711 views)
File Type: sp Get Plugin or Get Source (sm_damage_l4d.sp - 2578 views - 8.0 KB)
File Type: sp Get Plugin or Get Source (sm_damage_sdkhooks.sp - 2102 views - 5.9 KB)
File Type: smx sm_damage_sdkhooks.smx (5.6 KB, 1726 views)
File Type: sp Get Plugin or Get Source (sm_damage MultiMod.sp - 3118 views - 7.3 KB)
__________________

Last edited by SWAT_88; 01-31-2011 at 20:09.
SWAT_88 is offline