View Single Post
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 03-10-2011 , 03:43   Re: Evil Admin: Mirror Damage v1.0.102
Reply With Quote #19

With the release of SDKHooks2 beta, I figure this ought to be updated.

Uses the SDKHooks2 Beta TakeDamage native, so requires that.
Basically passes all the values from OnTakeDamage into TakeDamage, but with attacker and victim reversed, if enabled on attacker (then sets victim's taken damage to 0).

Also, re-integrated admin menu support, hopefully.

sm_evilmirrordmg <target> [0|1]

cvar: sm_evilmirrordmg_amount: The amount of the attacker's dealt damage that he himself takes. Value from 0.0 to 1.0, 0.5 is 50%.

UNTESTED BUT SHOULD WORK.
Attached Files
File Type: sp Get Plugin or Get Source (sm_evilmirror.sp - 505 views - 5.9 KB)
File Type: smx sm_evilmirror.smx (6.6 KB, 249 views)
__________________
Bread EOTL GunMettle Invasion Jungle Inferno 64-bit will break everything. Don't even ask.

All plugins: Randomizer/GiveWeapon, ModelManager, etc.
Post in plugin threads with questions.
Steam is for playing games.
You will be fed to javalia otherwise.
Psyduck likes replays.
FlaminSarge is offline