As you leave the map ever day?
As you leave the map ever day?
Change color corection in the map
go the lightsetup and use ure brain
To save you editing lightsetup I have produced a code for you to use,
CLIENT SIDE WarZ.sln
ClientGameLogic.h
Find
Add above or below__int64 ClientGameLogic::GetServerGameTime() const;
----void SetServerGameTime(int hour, int min);
ClientGameLogic.cpp
Find
Add above or below function:__int64 ClientGameLogic::GetServerGameTime() const
Find inside Tick()void SetServerGameTime(int hour, int min) { //SetServerGameTime(12, 0); will set it to 12 __int64 gameUtcTime = gClientLogic().GetServerGameTime();
struct tm* tm = _gmtime64(&gameUtcTime);
r3d_assert(tm);
gClientLogic().gameStartUtcTime_ -= tm->tm_sec;
gClientLogic().gameStartUtcTime_ -= (tm->tm_min) * 60;
gClientLogic().gameStartUtcTime_ += (hour - tm->tm_hour) * 60 * 60;
gClientLogic().gameStartUtcTime_ += (min) * 60;
gClientLogic().lastShadowCacheReset_ = -1;
}
ReplaceUpdateTimeOfDay();
Find inside IMPL_PACKET_FUNC(ClientGameLogic, PKT_S2C_JoinGameAns)if(m_gameInfo.mapId!=GBGameInfo::SUPPLYYOURUNIQUEMAPIDHERE) //Only update time of day if mapid is not day map
UpdateTimeOfDay();
ReplaceUpdateTimeOfDay();
I will let you sort the Serverside check, as players will get kicked if not developer when in the server. But you can easily fix this.if(m_gameInfo.mapId!=GBGameInfo::SUPPLYYOURUNIQUEMAPIDHERE) //Only set time of day if mapid is not day map
UpdateTimeOfDay();
else
SetServerGameTime(12, 0); //SET THE 12 TO YOUR PREFERRED HOUR OF THE DAY
Hope that helps
Its 100% Working?