gema
Would you like to react to this message? Create an account in a few clicks or log in to continue.


A website for every gema-assaultcube fan
 
HomeHome  Latest imagesLatest images  SearchSearch  RegisterRegister  Log in  

 

 GEMA race time

Go down 
4 posters
AuthorMessage
Sveark

Sveark


Messages : 124
Joined/Date d'inscription : 2011-05-02
Age : 30
Location/Localisation : Russia

GEMA race time Empty
PostSubject: GEMA race time   GEMA race time EmptyMon Aug 13, 2012 10:32 am

GEMA race time Brochure

A — the server tells the player that he may spawn and starts the stopwatch.
AB = time taken to transfer server's message (equals to ping at that moment).
B — the player hears what the server said, spawns and begins racing.
BC = time taken by the player to stole the flag and to bring it to the other flag.
C — the player tells the server that he scored.
CD = time taken to transfer player's message (equals to ping at that moment).
D — the server hears what the player said, notes the time and stops the stopwatch.

Thus,
actual race time going to maptop ≈ 2×ping + player's race time
Back to top Go down
http://sveark.info/ac
Chidori

Chidori


Messages : 4
Joined/Date d'inscription : 2012-07-31

GEMA race time Empty
PostSubject: Re: GEMA race time   GEMA race time EmptyTue Aug 14, 2012 6:16 am

So we have to subtract ping_at_start and ping_at_end from (getsvtick() - start_times[cn]) in onFlagAction handler to get real time?
Back to top Go down
Sveark

Sveark


Messages : 124
Joined/Date d'inscription : 2011-05-02
Age : 30
Location/Localisation : Russia

GEMA race time Empty
PostSubject: Re: GEMA race time   GEMA race time EmptyTue Aug 14, 2012 7:55 am

Yes, we should. Such solution could lead to a fairer estimating of race time. But with v1.3 it's impossible to get the most accurate estimation, because the onPlayerSpawn handler is called immediately after a server told a player that he might spawn. I'll make it possible in v1.4.
Back to top Go down
http://sveark.info/ac
|HP|
Admin
|HP|


Messages : 226
Joined/Date d'inscription : 2010-06-01

Gema stats
farthest jump: MAX

GEMA race time Empty
PostSubject: Re: GEMA race time   GEMA race time EmptyTue Aug 14, 2012 1:38 pm

mind blown
Back to top Go down
Park

Park


Messages : 272
Joined/Date d'inscription : 2011-11-04

Gema stats
farthest jump:

GEMA race time Empty
PostSubject: Re: GEMA race time   GEMA race time EmptySun Aug 19, 2012 3:47 pm

lol

BTW Sveark, for webchat, maybe its possible to use http and mysql?
and more ideas: (Jinkx asked me about a global gtop thing, i told him lua has Mysql) >> mysql database for gtop, to be used by myserver, jinkx .... ... .... . . . . ?
and a question about a script / command; how do i use the http.lua?

require "http"

and what then`? how do i it? could you give me some examples please?

Thanks!



PS: i am not good at choosing the right category :X
Back to top Go down
https://t.me/joinchat/APe7MT2YpmxobCH8tg7JJw
Sponsored content





GEMA race time Empty
PostSubject: Re: GEMA race time   GEMA race time Empty

Back to top Go down
 
GEMA race time
Back to top 
Page 1 of 1
 Similar topics
-
» today i went to ac to see my gemafriends from a long of time
» Time to celebrate the birth of the Viking
» i just started the max payne 2 campaign again for the _th time
» SERVER FAIL! - the time acquisition!
» A SERVER WITH ONLY GEMAS

Permissions in this forum:You cannot reply to topics in this forum
gema :: International :: Offtopic-
Jump to: