- 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.
Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!
Join Today!__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