Author Topic: Teamkill percentage  (Read 1487 times)

0 Members and 1 Guest are viewing this topic.

Offline Sytrus

  • Flagrunner
  • ****
  • Posts: 862
  • English Teech0r
    • AtlanticProject
Teamkill percentage
« 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.

Offline Magic Odd Effect

  • Camper
  • ***
  • Posts: 371
Re: Teamkill percentage
« Reply #1 on: May 12, 2007, 12:34:19 pm »
Hmm.....good idea.

F12
Don't say that you're Magic. Because you aren't, and I am.
All-around good with weapons that aren't long range, except in TW.
Now be careful out there, soldier.
Best Newbie in the May 2007 Soldatforums Member Awards!

Offline Toumaz

  • Veteran
  • *****
  • Posts: 1906
Re: Teamkill percentage
« Reply #2 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.

Offline PaFel

  • Veteran
  • *****
  • Posts: 1628
  • Weaponology Expert
    • PaFcio TACTIACAL
Re: Teamkill percentage
« Reply #3 on: May 12, 2007, 01:11:45 pm »
Nice idea! (like in Mobile Forces)

Offline urraka

  • Soldat Developer
  • Flagrunner
  • ******
  • Posts: 703
Re: Teamkill percentage
« Reply #4 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;
« Last Edit: May 12, 2007, 01:30:46 pm by PerroAZUL »
urraka

Offline Quantifier

  • Major
  • *
  • Posts: 70
Re: Teamkill percentage
« Reply #5 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.

Offline urraka

  • Soldat Developer
  • Flagrunner
  • ******
  • Posts: 703
Re: Teamkill percentage
« Reply #6 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;
urraka

Offline NinjaGimp369

  • Veteran
  • *****
  • Posts: 1474
  • Wa-Poww!
Re: Teamkill percentage
« Reply #7 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?
"You should've used the pythagoras theorum, b*tch."
[/url]

Offline Magic Odd Effect

  • Camper
  • ***
  • Posts: 371
Re: Teamkill percentage
« Reply #8 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.
Don't say that you're Magic. Because you aren't, and I am.
All-around good with weapons that aren't long range, except in TW.
Now be careful out there, soldier.
Best Newbie in the May 2007 Soldatforums Member Awards!

Offline Sytrus

  • Flagrunner
  • ****
  • Posts: 862
  • English Teech0r
    • AtlanticProject
Re: Teamkill percentage
« Reply #9 on: May 13, 2007, 06:15:06 am »
Yes, MOE is right. It's built into the dedi server.

Offline Hiro

  • Flagrunner
  • ****
  • Posts: 503
  • Ph34r my reality
    • The Rat Hole
Re: Teamkill percentage
« Reply #10 on: May 13, 2007, 11:16:16 pm »
This is just like in many other games that have friendly fire.


Support.
I am but a figment of your imagination. You are creating me to see what perfection is.