Release Friendly Fire remover
#1
Brick 
As requested here is a plugin to remove friendly-fire. Hitmarkers still exist but you can't kill a teammate.

Code:
using System; using System.Collections.Generic; using System.Text; using Addon; namespace ffoff { public class noff : CPlugin { public override int OnPlayerDamaged(ServerClient Attacker, ServerClient Victim, string Weapon, int Damage) { if ((Attacker.Team == Victim.Team) && (Attacker.ClientNum != Victim.ClientNum)) { if (GetDvar("g_gametype") != "dm") { Damage = 0; iPrintLnBold("DON'T ATTACK TEAMMATES", Attacker); return base.OnPlayerDamaged(Attacker, Victim, Weapon, Damage); } else { return base.OnPlayerDamaged(Attacker, Victim, Weapon, Damage); } } else { return base.OnPlayerDamaged(Attacker, Victim, Weapon, Damage); } } } }


Attached Files
.rar   ffoff.rar (Size: 1.81 KB / Downloads: 267)
LOL

#2
Fixed some bugs and updated source code. Nades and probably ks will still kill teammates since explosions work awakard in this game.
LOL

#3
Would it be possible to add damage to the attacker (like reflective friendly fire)?

Thanks,

TiLLeR

#4
(06-15-2012, 17:16)TiLLeR Wrote: Would it be possible to add damage to the attacker (like reflective friendly fire)?

Thanks,

TiLLeR

No, that's not possible.
[Image: azuw.jpg]

#5
Huge thanks to estebest!! He took the time to enter my server and worked with me to get the plugin just right.
[Image: b_350_20_FFAD41_E98100_000000_591F11.png]

#6
(06-15-2012, 17:16)TiLLeR Wrote: Would it be possible to add damage to the attacker (like reflective friendly fire)?

Thanks,

TiLLeR

It would be possible but not very good and buggy
LOL

#7
(06-15-2012, 19:47)estebespt Wrote:
(06-15-2012, 17:16)TiLLeR Wrote: Would it be possible to add damage to the attacker (like reflective friendly fire)?

Thanks,

TiLLeR

It would be possible but not very good and buggy

Even if it was buggy it would be something that I'd be willing to try. No worries if it's not worth the effort through. Appreciate the quick responses Smile

#8
Good job!

Portuguese:

Muito bom trabalho!

Thanks Barata...
Don't worry if things aren't the way you planned, in the end everything will solve itself...

#9
(06-15-2012, 23:29)barata Wrote: Good job!

Portuguese:

Muito bom trabalho!

Thanks Barata...

Obrigado @barata :p tudo legal? xD
LOL

#10
If this really works, then YOU are the man. Going to test it now.
[Image: b_560_95_1.png]



Forum Jump:


Users browsing this thread:
2 Guest(s)

Powered By MyBB, © 2002-2026 Melroy van den Berg.