AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   Evil Admin: Mirror Damage v1.0.102 (https://forums.alliedmods.net/showthread.php?t=79321)

strontiumdog 10-21-2008 00:49

Evil Admin: Mirror Damage v1.0.102
 
1 Attachment(s)
Evil Admin
A series of related plugins that admins can add or remove depending on what they need on their server. These commands are based on the old AMX commands. Most work on most mods, others are tailored for certain mods such as TF2.

Evil Admin Collection:
Evil Admin: Rocket
Evil Admin: Low Health
Evil Admin: Pimp Slap
Evil Admin: Vision
Evil Admin: Trails (TF2 only)
Evil Admin: Mirror Damage
Evil Admin: Fart



Evil Admin: Mirror Damage
Players are unable to do damage to others (unless backstab or headshot) but take the amount of damage given.
Does NOT require L.Dukes extension.

Installation
  • Copy sm_evilmirror.smx file to addons/sourcemod/plugins folder
Commands
sm_evilmirrordmg <name|#userid>
Toggles mirror damage on a player.

Configuration
sm_evilmirrordmg_amount 0.8
default 1.0
The percentage of amount of health to remove from the attacker.

Changelog
v1.0.101
Fixed menu issue where it didn't go back to a previous menu

v1.0.102
Fixed bug with client disconnects meaning new clients would have mirror damaged enabled on them


Added Bacardi's version below

strontiumdog 10-26-2008 13:46

Re: Evil Admin: Mirror Damage v1.0.101
 
Updated.

Antithasys 10-27-2008 15:45

Re: Evil Admin: Mirror Damage v1.0.101
 
It was my understanding that the "player_hurt" event never fired in TF2, at least I could never get it to respond.

This is one of the main reasons for dukehacks on orangebox servers. I can see that there are a few people running this on thier servers. Can someone who is using this confirm that it works as intended on a TF2 box?

I can check myself, but figured I would ask first. :mrgreen:

strontiumdog 10-27-2008 15:58

Re: Evil Admin: Mirror Damage v1.0.101
 
It does fire.

strontiumdog 10-27-2008 16:01

Re: Evil Admin: Mirror Damage v1.0.101
 
On the night I was testing it, I turned it on one of our regs without him knowing (on TF2). He went as Sniper, and I was a Scout. He kept dying every time he shot me (unless it was a headshot, in which case both of us died). Of course, it refunded me the health, so he kept saying things like "WTF? I didn't even hit you?"

Antithasys 10-27-2008 16:17

Re: Evil Admin: Mirror Damage v1.0.101
 
Ok. So this is ment more for fun then griefing cheaters. Most cheaters I have caught use a aimbot and go for the head... making this mostly ineffective against them. Good job thou. It's nice clean code :)

strontiumdog 10-27-2008 16:58

Re: Evil Admin: Mirror Damage v1.0.101
 
Well, unless you use an extension, you can't block headshots or backstabs. So you will get killed anyway. But if a sniper shoots you anywhere else, you get the health refunded.....


....and mirror damage gives him all your damage back...hehe!

noodleboy347 07-18-2009 02:35

Re: Evil Admin: Mirror Damage v1.0.101
 
This might be a bit old, but can you fix how if you enable it on like one person it enables it on random people when they join the server?

strontiumdog 10-11-2009 22:43

Re: Evil Admin: Mirror Damage v1.0.102
 
Done.
Sorry took so long.

LordMarqus 02-24-2010 06:10

Re: Evil Admin: Mirror Damage v1.0.102
 
1 Attachment(s)
Some bugs:
Code:

L 02/24/2010 - 11:38:00: Info (map "gg_churches_x_final_fixed") (file "errors_20100224.log")
L 02/24/2010 - 11:38:00: [SM] Native "GetClientHealth" reported: Client 3 is not in game
L 02/24/2010 - 11:38:00: [SM] Displaying call stack trace for plugin "admin/sm_evilmirror.smx":
L 02/24/2010 - 11:38:00: [SM]  [0]  Line 68, /home/groups/alliedmodders/forums/files/2/4/5/7/3/51496.attach::GetPlayerHealth()
L 02/24/2010 - 11:54:48: Error log file session closed.

I enclose fixed version if somebody is interested.


All times are GMT -4. The time now is 22:18.

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