Official Soldat Forums

Soldat Talk => Game Improvements / Suggestions => Topic started by: Sytrus on May 12, 2007, 12:05:40 pm

Title: Teamkill percentage
Post by: Sytrus on May 12, 2007, 12:05:40 pm
Okay, currently, bullets do 100% of their harm to teammates, if Friendfly Fire is on.

But what about this can be changed, so If you hit a teammate, the bullet hurts him only 75% of the damage it would do to enemies.
Title: Re: Teamkill percentage
Post by: Magic Odd Effect on May 12, 2007, 12:34:19 pm
Hmm.....good idea.

F12
Title: Re: Teamkill percentage
Post by: Toumaz on May 12, 2007, 12:37:43 pm
Here's the part where I am a hypocrite and says that it can be done rather easily with scripting.

But why not, it would be nice to have it built in right there in the server. Supported.
Title: Re: Teamkill percentage
Post by: PaFel on May 12, 2007, 01:11:45 pm
Nice idea! (like in Mobile Forces)
Title: Re: Teamkill percentage
Post by: urraka on May 12, 2007, 01:25:28 pm
Here's the part where I am a hypocrite and says that it can be done rather easily with scripting.

Yes, and it's easy to do actually.

Code: [Select]
function OnPlayerDamage(Victim,Shooter: Byte;Damage: Integer) : integer
begin
    if GetPlayerStat(Victim, 'Team') = GetPlayerStat(Shooter, 'Team') then
        Result := Damage * 0.75;
end;
Title: Re: Teamkill percentage
Post by: Quantifier on May 12, 2007, 07:19:49 pm
Wrong. You need to test for (Shooter <> Victim) too. Unless you want to count self-damage as team-damage.
Title: Re: Teamkill percentage
Post by: urraka on May 12, 2007, 07:22:24 pm
You are right. My point was that it was easy anyway :P

Code: [Select]
function OnPlayerDamage(Victim,Shooter: Byte;Damage: Integer) : integer
begin
    if (Victim <> Shooter) and (GetPlayerStat(Victim, 'Team') = GetPlayerStat(Shooter, 'Team')) then
        Result := Damage * 0.75;
end;
Title: Re: Teamkill percentage
Post by: NinjaGimp369 on May 12, 2007, 09:10:18 pm
ON TOPIC: That's a good idea. f12

OFF TOPIC: Is there such thing as getting a certain number of team kills and getting automatically kicked once that number is reached? That would be a better wouldn't it?
Title: Re: Teamkill percentage
Post by: Magic Odd Effect on May 12, 2007, 09:15:12 pm
Yes there is. I believe it's built into the dedicated server. You get a certain amount of TK's, you get a temporary ban.
Title: Re: Teamkill percentage
Post by: Sytrus on May 13, 2007, 06:15:06 am
Yes, MOE is right. It's built into the dedi server.
Title: Re: Teamkill percentage
Post by: Hiro on May 13, 2007, 11:16:16 pm
This is just like in many other games that have friendly fire.


Support.