This is a fork of Zandronum Beta for TSPG.
リビジョン | af0204bb60af14e51dbfe7fccf3691719d7b74a1 (tree) |
---|---|
日時 | 2021-10-26 13:51:11 |
作者 | Joshua Surace <doomjoshuaboy@live...> |
コミッター | Joshua Surace |
Missed a addon for backtranced issue.
@@ -674,6 +674,24 @@ | ||
674 | 674 | // We have to record player positions before their mobj moves. |
675 | 675 | // [BB] Tick the unlagged module. |
676 | 676 | UNLAGGED_Tick( ); |
677 | + | |
678 | + // [AK] If the skip correction is enabled, also record their velocities before they move. | |
679 | + // This way, we can determine how much the player is thrusted, in case we need to perform a | |
680 | + // backtrace on them, so we can re-add the thrust velocity afterwards. | |
681 | + if (sv_smoothplayers) | |
682 | + { | |
683 | + for (ulIdx = 0; ulIdx < MAXPLAYERS; ulIdx++) | |
684 | + { | |
685 | + if ((SERVER_IsValidClient(ulIdx)) && (players[ulIdx].mo)) | |
686 | + { | |
687 | + CLIENT_s* client = SERVER_GetClient(ulIdx); | |
688 | + client->backtraceThrust[0] = players[ulIdx].mo->velx; | |
689 | + client->backtraceThrust[1] = players[ulIdx].mo->vely; | |
690 | + client->backtraceThrust[2] = players[ulIdx].mo->velz; | |
691 | + } | |
692 | + } | |
693 | + } | |
694 | + | |
677 | 695 | G_Ticker (); |
678 | 696 | // However we need to spawn the unlagged debug actors here i.e. after having processed their |
679 | 697 | // movement commands which updated their last server gametic. |