Author Topic: k/t ratio  (Read 1247 times)

0 Members and 1 Guest are viewing this topic.

Offline HIDDEN

  • Major
  • *
  • Posts: 63
  • i will hunt you down
k/t ratio
« on: May 12, 2008, 05:08:21 pm »
dont know if this is suggested before.. but maybe add a kill time ratio..  like unreal tournament? :P


-hidden

Offline jrgp

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 5037
Re: k/t ratio
« Reply #1 on: May 12, 2008, 05:41:39 pm »
I don't recall an idea like this ever being suggested, but while I do find it interesting I don't see where it would be placed in Soldat's in-game UI.

However, this can be accomplished by 3rd party programs parsing the kill log files generated by Soldat, but I doubt it ever has.
There are other worlds than these

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: k/t ratio
« Reply #2 on: May 13, 2008, 05:27:40 am »
If you want a kill/time ratio, you can do that probably with scripting...
not sure if this is right:

var
  MapStart: cardinal;

procedure OnMapChange(NewMap: string);
begin
  MapStart := GetTickCount();
end;

function OnPlayerCommand(Id: byte; Text: string): boolean;
begin
  if (LowerCase(Text) = '/ktr') then SayToPlayer(Id, 'Your kill/time ratio is: ' + FloattoStr(GetPlayerStat(Id, 'Kills') / (GetTickCount() - MapStart)));
end;

ofc caps would also need to be taken out, and scripted points given to players;
unit of time is ticks, can be converted... 60 ticks = 1 second so the number may be small
if you want per minutes, multiply that number by 3600
rounding it may also be a good idea...

Offline M.rSnow

  • Camper
  • ***
  • Posts: 482
Re: k/t ratio
« Reply #3 on: May 14, 2008, 08:34:38 am »
In 1.5 caps are counted separatly right? Then that script would work i guess.
Lapis: You need a vacation or a bullet though the head both works just fine by me.