Official Soldat Forums
Soldat Talk => Game Improvements / Suggestions => Topic started 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.
-
Hmm.....good idea.
F12
-
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.
-
Nice idea! (like in Mobile Forces)
-
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.
function OnPlayerDamage(Victim,Shooter: Byte;Damage: Integer) : integer
begin
if GetPlayerStat(Victim, 'Team') = GetPlayerStat(Shooter, 'Team') then
Result := Damage * 0.75;
end;
-
Wrong. You need to test for (Shooter <> Victim) too. Unless you want to count self-damage as team-damage.
-
You are right. My point was that it was easy anyway :P
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;
-
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?
-
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.
-
Yes, MOE is right. It's built into the dedi server.
-
This is just like in many other games that have friendly fire.
Support.