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
*
*/