Cripp
12-14-2006, 12:25 PM
Im not sure if the heading position works with zoning or not but this is a little fix ive had on my server for a while.. just thought id share it.
--- zoning.cpp 2006/06/20 02:03:51 1.1
+++ zoning.cpp 2006/06/21 06:07:41 1.2
@@ -295,10 +295,11 @@
x_pos = dest_x; //these coordinates will now be saved when ~client is called
y_pos = dest_y;
z_pos = dest_z;
+ heading = dest_h; // Cripp: fix for zone heading
m_pp.heading = dest_h;
m_pp.zone_id = zone_id;
//Force a save so its waiting for them when they zone
Save();
if (zone_id == zone->GetZoneID()) {
i also usually add a SendPosUpdate(2); right before the Save(); as well but im not really sure if thats necessary.. maybe FNW or someone can insight me.
--- zoning.cpp 2006/06/20 02:03:51 1.1
+++ zoning.cpp 2006/06/21 06:07:41 1.2
@@ -295,10 +295,11 @@
x_pos = dest_x; //these coordinates will now be saved when ~client is called
y_pos = dest_y;
z_pos = dest_z;
+ heading = dest_h; // Cripp: fix for zone heading
m_pp.heading = dest_h;
m_pp.zone_id = zone_id;
//Force a save so its waiting for them when they zone
Save();
if (zone_id == zone->GetZoneID()) {
i also usually add a SendPosUpdate(2); right before the Save(); as well but im not really sure if thats necessary.. maybe FNW or someone can insight me.