A website for every gema-assaultcube fan
 
HomeHome  CalendarCalendar  FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  Log in  

Share | 
 

 GEMA race time

View previous topic View next topic Go down 
AuthorMessage
Sveark



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

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



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
View user profile http://sveark.info/ac
Chidori



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

PostSubject: Re: GEMA race time   Tue 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
View user profile
Sveark



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

PostSubject: Re: GEMA race time   Tue 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
View user profile http://sveark.info/ac
|HP|
Admin


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

Gema stats
farthest jump: MAX

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

mind blown
Back to top Go down
View user profile
Park



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

Gema stats
farthest jump:

PostSubject: Re: GEMA race time   Sun 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
View user profile http://mgpmax.dyndns.org
Sponsored content




PostSubject: Re: GEMA race time   Today at 11:17 am

Back to top Go down
 
GEMA race time
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» At what time do you wake up on the weekends?
» Ironside theme time
» Time Paradox - part 0.0037 (comic attemp #1)
» FOR SALE: EX-TFD Guest Car, Slider S15 Prepared Skyline R34 GTR Drift Car
» Limited time offer tickets for New Year eve party for NYC group discount available

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