Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Development

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

Reply
 
Thread Tools Display Modes
  #1  
Old 12-14-2006, 12:25 PM
Cripp's Avatar
Cripp
Discordant
 
Join Date: Oct 2003
Location: The Shire
Posts: 474
Default Zoning heading...

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.

Code:
--- 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.
__________________
Nug Blazers - ServerOP / founder
^^comming... later!

www.nugblazers.com
Reply With Quote
  #2  
Old 12-15-2006, 07:27 AM
John Adams
Demi-God
 
Join Date: Jul 2006
Posts: 1,552
Default

Cripp, this might not have anything to do with headings in general, but what is the scope? 0-360? 0-255? (other)? I have hella trouble aiming objects I place sometimes. I wasn't sure where to start looking through the code, but I guess I can stop being lazy and do to this weekend.
Reply With Quote
  #3  
Old 12-15-2006, 07:47 AM
Cripp's Avatar
Cripp
Discordant
 
Join Date: Oct 2003
Location: The Shire
Posts: 474
Default

its 0-255

0 = north
64 = west
128 = south
192 = east
__________________
Nug Blazers - ServerOP / founder
^^comming... later!

www.nugblazers.com
Reply With Quote
  #4  
Old 12-15-2006, 08:24 AM
John Adams
Demi-God
 
Join Date: Jul 2006
Posts: 1,552
Default

Sorry to pester about this, but is that just for PC zoning coordinates, or object placement? Cuz I'll tell you why. When I was building the facades and Gunthak portal objects in PoK, I had one helluva time placing the Bazaar facade. Started at 0 degrees, of course. Way off. And went in 64-degree increments to get my bearings - none of them seemed to do what I expected. So I went in 20-degree increments. I surpassed 255, 360, and wound up somewhere around 430 before I got the right heading for the building.

What the hell am I doing wrong?
TIA for your patience.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 07:11 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3