AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Mirror Damage (https://forums.alliedmods.net/showthread.php?t=8655)

EKS 12-20-2004 21:51

Mirror Damage
 
1 Attachment(s)
Mirror damage
About:
This plugin mirrors damage on friendly fire servers.

Modules required: fun

FAQ)
Q) Can i use this plugin on a lan server?
A) No.

Credits:
Ops in #AMXmodx @ Quakenet for alot of help ( + AssKicker & CheesyPeteza )

UPA_Brawler 02-12-2005 12:38

help
 
i use ur plugin but when i use it on my dod server it dosnt load it says this when i put it in debug

09:04:44: [AMXX] Invalid event (name "damage") (plugin "mirror_damage.amxx")
12:06:54 L 02/12/2005 - 09:04:44: [AMXX] Native error in "register_event" on line 23 (file "phpA4wdaO.sma").

EKS 02-12-2005 12:46

Use compiler on this website and not whatever you used.

UPA_Brawler 02-12-2005 12:48

i did i re downloaded the plugin in sma and compiled it and i still get that error on my server

UPA_Brawler 02-12-2005 13:10

do u know what the problem is because people i always kill me with friendly fire and its pissing me off if u can figure what is wrong please let me know i am using linux and amx 1.0 dedicated :o

EKS 02-12-2005 13:26

I allready told you recompile the plugin.

The problem is the compiler period. ( As you can see from the filename it referes to. The acutual error is that the compiler somehow manged to make every letter lowercase )

nightscreem 02-12-2005 13:27

it's only fun requierd
cool i will download now i can turn friendly fire on

UPA_Brawler 02-12-2005 13:33

i did recompile it and it still comes up i have the fun mudual on and its not working

UPA_Brawler 02-12-2005 13:37

12:52:11 L 02/12/2005 - 09:50:01: [AMXX] Invalid event (name "Damage") (plugin "mirror_damage.amxx")
12:52:11 L 02/12/2005 - 09:50:01: [AMXX] Native error in "register_event" on line 23 (file "phpqsQERF.sma")

TotalNoobScripter 02-12-2005 13:40

?

I'd try compiling with the amxxsc program. That treats me better than the web compiler; but hsi plugin worked for me both on-line compiling and amxxsc.

EKS 02-12-2005 13:47

no support via pm

UPA_Brawler 02-12-2005 13:49

i used the amxxsc thing and it stilll comes up

UPA_Brawler 02-13-2005 12:31

its still dont work could u please look at ur plugin and see why itas not working for day of defeat

UPA_Brawler 02-13-2005 12:35

12:34:59 L 02/13/2005 - 09:32:47: [AMXX] Invalid event (name "Damage") (plugin "mirror_damage.amxx")
12:34:59 L 02/13/2005 - 09:32:47: [AMXX] Native error in "register_event" on line 23 (file "mirror_damage_100.sma")

thats what i get when i redownloaded the amxx plugin from here not the sma

Evaldas 08-31-2005 17:03

Wonderfull plugin. I have a question to EKS. Is there a way to restore DMG taken by the "atacker"? I know that I can use ATAC, but I like small and usefull plugins, than big ones.

I did some changes here:

if(HP > 0) set_user_health(attacker,(get_user_health(att acker) - damage)) && set_user_health(victim,(get_user_health(victi m) + damage))

But how to do, that dmg woud be restored, even when attacker is dead. Would be grateful for help.

EKS 09-01-2005 14:56

Code:

               
if(is_user_alive(victim))
        set_user_health(id,get_user_health(victim)+damage)

Add this on line 36 or 37, it should work

AssKicR 09-01-2005 16:57

A comment on the add hp thing.. i can see that going out of controll :P

16 vs 16 people

All people shooting the same guy giving him 1600 hp

If he is any good at cs it is as good as godmode :D

EKS 09-01-2005 17:33

i dont see how that can happen, as im only returning HP taken. But whats the point of Friendly fire if your both doing mirror damage and restoring health

Seather 12-13-2005 06:55

1 Attachment(s)
register_forward(FM_TraceLine... method

Modules required: fakemeta,fun,engine

*seather finds and slightly extends XxAvalanchexX's example from http://www.amxmodx.org/doc/source/fu...eta/set_tr.htm and finds victim by looking at Cheap_Suit's knife zone http://forums.alliedmods.net/showthread.php?t=20396

victim shouldn't even be touched, no chance of victim death, no loss of victim armor

cvar: amx_mirror_damage , default = 1

edit:12/17, brought back eks code to handle nades and other non instant bullets which the traceline misses, and refill lost hp and armor

[done]todo when i have time: only traceline while +attack[2], so that when you look at people on your team you don't see your own name.

[sort of fixed?]bug: restoring victim hp messed up, hp not restored, some have more than 100 hp

edit:12/18, cleaned up some stuff, fixed some possible bugs, added +attack[2] detection that i have seen in PaintLancer's http://forums.alliedmods.net/showthread.php?p=66556

edit:12/18, #2, more small bug fixes and misc tweaks

todo: revive dead team killed players (in cs killed by HE)

DEV 01-05-2006 10:35

bad load for the sea_mirror_damage.amxx.

i had the original working fine.

Forgot that you need 2 extra modules uncommented for this one

problems solved :D

jd91651 03-14-2006 17:19

Great plugin. I have a request for a similar one.
 
This is a GREAT plugin.
I'm giving you a 5 on this one.
Works good on fy_iceworld where spawn killers abound.

Really takes away the incentive to spawn kill since the motive for doing
so is to increase your kill count, without increasing your death count.
Also like that it is tit for tat and not over-kill (ie death for minor or accidental damage).
---------------------------------------------------------------------------
I HAVE A REQUEST OF YOU FOR ANOTHER PLUGIN *PLEASE* !!!
---------------------------------------------------------------------------
I need a plugin that prevents a person from aquiring (ie picking up) another primary weapon within so many seconds of the start of a round.
----------------------------------------------------------------------------
Tired of ubers grabbing a primary weapon or 2 and disguarding it to get to another weapon in fy_iceworld and other maps. It leaves those weapons with only 1 clip of ammo. REAL inconsiderate.

Based on the way this plugin functions I think much of the code is probably already written.

Regardless though
THANKS for a great plugin.

EKS 03-14-2006 17:41

that has nothing to do with this plugin.

jd91651 03-14-2006 17:48

Quote:

Originally Posted by EKS
that has nothing to do with this plugin.

Yes I know but the point is that the basic code needed to do it
is most likely already in this code.
Just change what you are detecting (weapon pickup for damage done)
and what the punishment is (prevention for damage mirrored).

OR now that I think of it you could also just pop a message as a second alternative to prevention as an admin choice thing.

Anyhow ... consider it please.
and thanks one way or the other.

Tartooob 10-11-2006 07:00

Re: Mirror Damage
 
1 Attachment(s)
Great plugin but sometimes it crashes my server
Check the txt file for log, Hope someone can fix it, thanks :)

schnitzelmaker 10-16-2006 07:57

Re: Mirror Damage
 
1 Attachment(s)
Fixed
have add a check,that check if victim/attacker is not WORLD (0)

Tartooob 10-16-2006 09:00

Re: Mirror Damage
 
Quote:

Originally Posted by schnitzelmaker (Post 391727)
Fixed
have add a check,that check if victim/attacker is not WORLD (0)

Wow, Thanks man, +Karma

lilyan217 12-27-2006 01:04

Re: Mirror Damage
 
How can i make this plugin. When i attack the victim the victim doesnt recieve any damage/lose any life but only i do?

broken-silence 12-31-2006 12:16

Re: Mirror Damage
 
Is this plugin working with Day Of Defeat? Thanks.

PaDi 11-20-2010 13:35

Re: Mirror Damage
 
Why not possible on LAN ? How can I edit it for LAN server?


All times are GMT -4. The time now is 14:08.

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