View Single Post
Author Message
m3f_n
Junior Member
Join Date: Jul 2012
Location: Ukraine, Cherkassy
Old 07-22-2012 , 21:19   [CSS] Frag for damage (0.4, 13 Aug 2012)
Reply With Quote #1

Description:
----------------------------------------
Have you ever had situations when you have done a lot of damage, but the last bullet to death is shot by somebody other, who gets score benefit as result?
This plugins fix
es that by giving frags(score) for damage done, not for kills (but can be combined).

Requirements:

----------------------------------------
  • SourceMod 1.4.4 or higher, is not guaranteed to work with lower versions.

Installation:

----------------------------------------
Just put .smx file to
addons/sourcemod/plugins folder.

Configuration (server):
----------------------------------------
  • Enable/disable plugin - sm_fragfordamage_enabled (0/1, def: 1)
  • Damage done (health taken) to increase score sm_fragfordamage_healthdivisor (def: 120)
  • Maximum damage that can be included to score for single hit - sm_fragfordamage_max_per_hit (def: 125)
  • Maximum damage that can be included to score for single victim (for one round or before victim dies) - sm_fragfordamage_max_per_victim (def: 125)
  • Health that is added to killer like for hit - sm_fragfordamage_kill_bonus (def: 20)
  • Blocking additional player score changes: penalty (suicide,team kill) - sm_fragfordamage_blockpenalty (0/1, def: 0), and goals(bomb defused,bomb explosion) - sm_fragfordamage_blockgoals
    (0/1, def: 0)
  • Do include kevlar damage to the score - sm_fragfordamage_kevlar (0/1, def: 0)
cfg/sourcemod/plugin_fragfordamage.cfg is used to store configuration.

Notes:
  • Be careful when setting sm_fragfordamage_max_per_victim on server with ability to override player`s health, all damage done after sm_fragfordamage_max_per_victim reached is not included before victim dies or new round begins.

Changelog:

----------------------------------------
Quote:
0.1, 23 July 2012 - Initial release

0.3, 31 July 2012 - Added features and fixed bugs
  • Bug fix + feature: had incorrect frag count on suicide, fixed, can be turned on/off - sm_fragfordamage_blocksuicidepenalty
  • Bug fix + feature: had incorrect frag count when goal done before next hit, fixed, can be turned on/off - sm_fragfordamage_blockgoals
  • Feature: added sm_fragfordamage_kill_bonus
  • Feature: added sm_fragfordamage_kevlar
  • Bug fix: score was not reset if restart is caused by that teams become to have both players.
0.4, 13 Aug 2012 - Added features and fixed bugs
  • Few little fixes.
  • Feature: added sm_fragfordamage_max_per_victim



Plans:
----------------------------------------
Make compatible with other plugins that are working with score.
Attached Files
File Type: sp Get Plugin or Get Source (fragfordamage.sp - 1234 views - 11.2 KB)

Last edited by RedSword; 03-22-2014 at 23:42. Reason: Feedback given
m3f_n is offline