[Help] Map Day Only

Results 1 to 6 of 6
  1. #1
    Enthusiast djmelo is offline
    MemberRank
    Nov 2013 Join Date
    33Posts

    happy [Help] Map Day Only

    As you leave the map ever day?


  2. #2
    Account Upgraded | Title Enabled! Oosmar02 is offline
    MemberRank
    Sep 2013 Join Date
    FranceLocation
    894Posts

    Re: [Help] Map Day Only

    Change color corection in the map

  3. #3
    Proficient Member erik1223 is offline
    MemberRank
    Oct 2014 Join Date
    GermanyLocation
    150Posts

    Re: [Help] Map Day Only

    go the lightsetup and use ure brain

  4. #4
    Account Upgraded | Title Enabled! GetRektBambi is offline
    MemberRank
    Oct 2015 Join Date
    268Posts

    Re: [Help] Map Day Only

    To save you editing lightsetup I have produced a code for you to use,

    CLIENT SIDE WarZ.sln

    ClientGameLogic.h

    Find
    __int64 ClientGameLogic::GetServerGameTime() const;
    Add above or below
    void SetServerGameTime(int hour, int min);
    ----
    ClientGameLogic.cpp
    Find
    __int64 ClientGameLogic::GetServerGameTime() const
    Add above or below function:
    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;
    }
    Find inside Tick()
    UpdateTimeOfDay();
    Replace
    if(m_gameInfo.mapId!=GBGameInfo::SUPPLYYOURUNIQUEMAPIDHERE) //Only update time of day if mapid is not day map
    UpdateTimeOfDay();
    Find inside IMPL_PACKET_FUNC(ClientGameLogic, PKT_S2C_JoinGameAns)
    UpdateTimeOfDay();
    Replace
    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
    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.

    Hope that helps

  5. #5
    Enthusiast djmelo is offline
    MemberRank
    Nov 2013 Join Date
    33Posts

    Re: [Help] Map Day Only

    Its 100% Working?

  6. #6
    Account Upgraded | Title Enabled! GetRektBambi is offline
    MemberRank
    Oct 2015 Join Date
    268Posts

    Re: [Help] Map Day Only

    Quote Originally Posted by djmelo View Post
    Its 100% Working?
    If you complete the Serserside as instructed. Which really isn't hard.



Advertisement