- Joined
- Sep 3, 2013
- Messages
- 903
- Reaction score
- 227
Hello, I would like it to code is to avoid drop shot as the official
Thanks.
Thanks.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature currently requires accessing the site using the built-in Safari browser.
__int64 ServerGameLogic::GetUtcGameTime()
__int64 ServerGameLogic::GetUtcGameTime(){
// "world time start" offset, so gametime at 1st sep 2012 will be in 2018 range
struct tm toff = {0};
toff.tm_year = 2011-1900;
toff.tm_mon = 6;
toff.tm_mday = 1;
toff.tm_isdst = -1; // A value less than zero to have the C run-time library code compute whether standard time or daylight saving time is in effect.
__int64 secs0 = _mkgmtime64(&toff); // world start time
__int64 secs1 = _time64(&secs1); // current UTC time
// reassemble time, with speedup factor
return secs0 + (secs1 - secs0) * (__int64)GPP_Data.c_iGameTimeCompression;
}
This is the time multiplier, it's set to 6. Set it to 1 to make your server run in real time (1:1 ratio).c_iGameTimeCompression = 6; // every 4 hours of real time is equal to 24 hrs of game time
to give you a hint open warz_server.sln and look for
then look around that block of code i beleave