Kills team killers in hardcore.Works only if hard core is enabled on the server.
Source:
Update log:
1.2: Doesn't check for hardcore instead enabled from sv_config
Code:
[Ricohet]
Enable=true
//true or falseSource:
Code:
using System;
using System.Collections.Generic;
using System.Text;
using Addon;
namespace Ricohet
{
public class Ricohet: CPlugin
{
public override void OnServerLoad()
{
ServerPrint("Ricohet damage for hardcore loaded");
}
public override int OnPlayerDamaged(ServerClient Attacker, ServerClient Victim, string Weapon, int Damage, string DamageMod, HitLocations HitLocation)
{
if (Attacker.Team == Victim.Team && Attacker.XUID != Victim.XUID&&GetServerCFG("Ricohet","Enable","true")=="true")
{
if (Attacker.Other.Health - Damage <= 0)
{
KillPlayer(Attacker.ClientNum, Attacker.ClientNum, GetWeapon(Weapon), string.Empty);
}
else
{
Attacker.Other.Health -= Damage;
}
return 0;
}
else
{
return Damage;
}
}
}
}Update log:
1.2: Doesn't check for hardcore instead enabled from sv_config




![[Image: back_us_button.png]](http://static.squarespace.com/static/51cca4bae4b0bf9a1f4deb75/t/52ea6a9ee4b0f767960f8c35/1390493521990/back_us_button.png)