View Single Post
Author Message
paegus
Senior Member
Join Date: Nov 2004
Location: Extreme low earth orbit
Old 10-14-2008 , 06:15   [Hidden:Source] Mirror Damage
Reply With Quote #1

Written for Hidden:Source Beta 4b

Code:
/*
 * Hidden:SourceMod - Mirror Damage
 *
 * Description:
 *  Reflects a potion of team-damage back on attacker
 *  or allows the vicitms 'armour' to absorb some.
 *
 * CVars:
 *  hsm_mirror_ratio [0~1] : ratio of damage to restore to victim 0-100%
 *  hsm_mirror_armour [0/1] : disable damage reflection on attacker?
 *  hsm_mirror_spawnguard [seconds]: Time from spawn to have 100%. Is disabled as soon as hidden attacks
 *  hsm_mirror_weight [0/1] : does the victim gain weight from team-attacks. 0: Disabled, 1:Enabled. Default 1.
 *
 * Changelog:
 *  v1.0.2
 *   Actually added option to bonus weight of victim
 *   Spawnguard now elapses automatically when the hidden attacks or is attacked.
 *  v1.0.1
 *   Added message from server when an attacker dies due to mirrored damage.
 *   Added option to boost victim's weighting by the amount of health they lost.
 *  v1.0.0
 *   Initial Release
 *
 */
Attached Files
File Type: sp Get Plugin or Get Source (hsm_mirrordmg.sp - 2455 views - 6.4 KB)
__________________
Live and learn or die and teach by example.
Plugins Mine | Hidden:SourceMod

Last edited by psychonic; 03-23-2010 at 12:17. Reason: Reason: changed "game" field to newly created category "The Hidden"
paegus is offline