AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   SM Damage (https://forums.alliedmods.net/showthread.php?t=76749)

SWAT_88 08-29-2008 17:27

SM Damage
 
7 Attachment(s)
/********************************************* **********************************

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.
https://www.paypal.com/en_US/i/btn/btn_donate_SM.gif
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!!!
********************************************* **********************************/

Jokerz99 08-29-2008 22:42

Re: SM Damage
 
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?

YellowCakeKlan 08-30-2008 01:10

Re: SM Damage
 
will this work for other games, like hl2dm? or not

LocutusH 08-30-2008 05:24

Re: SM Damage
 
Can i set a global multiplier, or just per player?

SWAT_88 08-30-2008 10:05

Re: SM Damage
 
Quote:

Originally Posted by Jokerz99 (Post 678344)
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.

LocutusH 08-30-2008 10:08

Re: SM Damage
 
Yes, please :) A global setting would be nice, that is applied to all players automatically.

SWAT_88 08-30-2008 10:12

Re: SM Damage
 
Quote:

Originally Posted by LocutusH (Post 678509)
Yes, please :) A global setting would be nice, that is applied to all players automatically.

Fast response!:o
Ok, I will add it.

SWAT_88 08-30-2008 16:36

Re: SM Damage
 
Added global setting that is applied to all players automatically.
Added multimod support.

Have Fun!:up:

LocutusH 08-31-2008 04:46

Re: SM Damage
 
ty, i will test it :)

LocutusH 09-01-2008 15:19

Re: SM Damage
 
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...


All times are GMT -4. The time now is 07:32.

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