FPS in top15

Started by d3zeer
26/10/2007 12:20
Page 1 of 1
d3zeer26/10/2007 12:20

Hi.
Sorry for my English.
Give please the answer to my question.
Whether it is possible to make so that in top15 showed FPS with which the player has finished?

~Kulsprutor~26/10/2007 12:59

Don't know,but maybe possible

maniac26/10/2007 13:20

Does it make sense?
Normally the servers have kz_legal_settings on 1... so you can't cheat by using dev 1 with high fps...

SchlumPF26/10/2007 15:11

you can query the fps_max/fps_modem/developer value but afaik u cant query the engine(its engine fps isnt it xD) fps

Fatalis26/10/2007 22:37

Not possible.

NumB27/10/2007 03:25


Not possible.

Fatalis

Then how on earth dose your surf server detect fps num? I had fps_max 999;developer 1 & i got kicked with msg, that my fps num is 135.

===

I think it's possible if fatalis will give kzm fps check plugin code, that is installed at surf server. =)

Then when (if fatalis will give the code) make smt like this:



#define FPSTASK 98654227

new player_frames[33];
new player_seconds[33];

public client_start_timer_or_whatever(id)
{
player_frames[id] = 0;
player_seconds[id] = 0;
tskFpsGet(id+FPSTASK);
if( task_exists(id+FPSTASK, 0) )
remove_task(id+FPSTASK, 0);
set_task(1.0, "tskFpsGet", id+FPSTASK, "", 0, "b", 0);
}

public tskFpsGet(taskid)
{
new id = taskid-FPSTASK;
player_frames[id] += get_client_fps(id);
player_seconds[id] += 1;
}

stock get_client_fps(id)
{
return ; // make it return current fps number using fatalises code (if he will give it).
}

public client_finish_map_or_whatever(id)
{
new Float:avardge_fps_num;
avardge_fps_num = floatdiv((player_frames[id]+0.0), (player_seconds[id]+0.0));
client_print(id, print_chat, "You finished the map. Your avargde fps num is: %.2f", avardge_fps_num);
if( task_exists(id+FPSTASK, 0) )
remove_task(id+FPSTASK, 0);
player_frames[id] = 0;
player_seconds[id] = 0;
}

public client_disconnect(id)
{
if( task_exists(id+FPSTASK, 0) )
remove_task(id+FPSTASK, 0);
player_frames[id] = 0;
player_seconds[id] = 0;
}



P.S. This one won't be so current as fps-death, but the numbers will be almost the same (like ljstats incurrent version & fps-admin).

[ Edited 10/27/07 - 03:35:57 ]

dEMolite mapper27/10/2007 05:04

NumB: http://xtreme-jumps.eu/forum_viewtopic.php?46.61671 scroll down to doktor's post. fatalis told me that too. The script from kzm surf server is checking if your fps_max higher then 101 or 135. If yes you will be kicked.

NumB27/10/2007 05:47

So, then - that's imp. :(

Page 1 of 1

Please log in to post replies.