Thread: Send/Receive
View Single Post
  #3  
Old 12-28-2008, 03:20 AM
paaco
Discordant
 
Join Date: Jan 2005
Posts: 320
Default

Forgive me if I'm wrong. I suck at C++ but this looks like the piece of code you are looking for.
Client_process.cpp
Line 475

Code:
SendPosUpdate(2);

                        // Send a position packet every 8 seconds - if not done, other clients
                        // see this char disappear after 10-12 seconds of inactivity
                        if (position_timer_counter >= 36) { // Approx. 4 ticks per second
                                entity_list.SendPositionUpdates(this, pLastUpdateWZ, 500, target, true);
                        /* if (position_timer_counter >= 3) { // Send every 750ms?
                                //Image (2k5): The trick of stopping MQ map without screwing up client updates, shorter distances, faster updates, however if its an admin we can send further updates
                                if(Admin() > 80)
                                        entity_list.SendPositionUpdates(this, pLastUpdateWZ, 450, 0, true);
                                else
                                        entity_list.SendPositionUpdates(this, pLastUpdateWZ, 150, 0, true);
                                }
Reply With Quote