[Tutorial] Fix freeze after spawn

Results 1 to 10 of 10
  1. #1
    Proficient Member UNEXPECT is offline
    MemberRank
    Jun 2014 Join Date
    C:/inetpubLocation
    175Posts

    [Tutorial] Fix freeze after spawn

    If you spawn you are freezed at the spawnpoint and thats annoying.

    WarZ.sln
    Search:
    Code:
    // IF PLAYER IS FAST LOAD ON PLAYER CANT MOVE 12sec because fastload problem.        // wait 12 secs for fastload load building around player.
       // prevPos2 = GetPosition();
            if (g_FastLoad->GetBool() && r3dGetTime() > gClientLogic().localPlayerConnectedTime + 12 && gClientLogic().localPlayer_ == this)
              controller->Move(vel * TimePassed, 0.5f);
           
        if (!g_FastLoad->GetBool())
          controller->Move(vel * TimePassed, 0.5f);
     
            prevPos = GetPosition();
            controller->prevpos = GetPosition();
            parent::Update(); // manually update position after updating physics. Needed for camera, otherwise it will be lagging one frame behind
    and change the red:
    Code:
    // IF PLAYER IS FAST LOAD ON PLAYER CANT MOVE 12sec because fastload problem.        // wait 12 secs for fastload load building around player.
       // prevPos2 = GetPosition();
           if (g_FastLoad->GetBool() && r3dGetTime() > gClientLogic().localPlayerConnectedTime + 1 && gClientLogic().localPlayer_ == this)
              controller->Move(vel * TimePassed, 0.5f);
           
        if (!g_FastLoad->GetBool())
          controller->Move(vel * TimePassed, 0.5f);
     
            prevPos = GetPosition();
            controller->prevpos = GetPosition();
            parent::Update(); // manually update position after updating physics. Needed for camera, otherwise it will be lagging one frame behind
    Credits: @GigaToni & Me
    Last edited by UNEXPECT; 04-07-14 at 12:20 AM.


  2. #2
    Alpha Member javaz97 is offline
    MemberRank
    May 2006 Join Date
    HellLocation
    1,537Posts

    Re: [Tutorial] Fix freeze after spawn

    for high end pc

    gClientLogic().localPlayerConnectedTime + 7

    or

    gClientLogic().localPlayerConnectedTime + 10

  3. #3
    Proficient Member UNEXPECT is offline
    MemberRank
    Jun 2014 Join Date
    C:/inetpubLocation
    175Posts

    Re: [Tutorial] Fix freeze after spawn

    It´s equal, because it´s just the time where you are freezed. And no PC in this world will load this game in 1 second so it dont cares.

  4. #4
    Alpha Member javaz97 is offline
    MemberRank
    May 2006 Join Date
    HellLocation
    1,537Posts

    Re: [Tutorial] Fix freeze after spawn

    gClientLogic().localPlayerConnectedTime + 12

    for anti-dupe item by double login game

  5. #5
    Proficient Member UNEXPECT is offline
    MemberRank
    Jun 2014 Join Date
    C:/inetpubLocation
    175Posts

    Re: [Tutorial] Fix freeze after spawn

    Double login is blocked in dnc´s source...

  6. #6
    Holy mother jesus tractor Kratos147 is offline
    MemberRank
    Jan 2011 Join Date
    CroatiaLocation
    470Posts

    Re: [Tutorial] Fix freeze after spawn

    Boohoo for all of you in space ships..

    I don't see how this fixes the issues with 60% of players that are stuck on loading for a lot longer being spawned in game and unable to move due to screen being still on loading screen with 0 fps.

  7. #7
    Apprentice duckmysick is offline
    MemberRank
    Mar 2014 Join Date
    17Posts

    Re: [Tutorial] Fix freeze after spawn

    Doesn' work for new dnc release

  8. #8
    Proficient Member UNEXPECT is offline
    MemberRank
    Jun 2014 Join Date
    C:/inetpubLocation
    175Posts

    Re: [Tutorial] Fix freeze after spawn

    It's just for DNC New source with Fast load system.

  9. #9
    Apprentice mandekza is offline
    MemberRank
    Dec 2010 Join Date
    23Posts

    Re: [Tutorial] Fix freeze after spawn

    How to having this work with OverZ source? I can find the lines with fastload in it but it's quite not the same as the code above.

  10. #10
    Account Upgraded | Title Enabled! Adnan DatLife is offline
    MemberRank
    Aug 2015 Join Date
    main.cppLocation
    207Posts

    Re: [Tutorial] Fix freeze after spawn

    Quote Originally Posted by mandekza View Post
    How to having this work with OverZ source? I can find the lines with fastload in it but it's quite not the same as the code above.
    OverZ is v3 src. This fix only dnc source's fastload system.



Advertisement