Created
November 29, 2024 17:13
-
-
Save Zi0MIX/2b9fb6c049111c72d3f9945a45b4c2b1 to your computer and use it in GitHub Desktop.
Network Frame Fix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| main() | |
| { | |
| replaceFunc(maps\mp\animscripts\zm_utility::wait_network_frame, ::fixed_wait_network_frame); | |
| replaceFunc(maps\mp\zombies\_zm_utility::wait_network_frame, ::fixed_wait_network_frame); | |
| } | |
| fixed_wait_network_frame() | |
| { | |
| if (level.players.size == 1) | |
| { | |
| wait 0.1; | |
| } | |
| else if (numremoteclients()) | |
| { | |
| snapshot_ids = getsnapshotindexarray(); | |
| for (acked = undefined; !isdefined(acked); acked = snapshotacknowledged(snapshot_ids)) | |
| level waittill("snapacknowledged"); | |
| } | |
| else | |
| { | |
| wait 0.1; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment