ahh found way to make it work..
waypoints.cpp..
Code:
--- waypoints.cpp 2007/12/01 18:11:14 1.7
+++ waypoints.cpp 2007/12/19 18:08:40 1.8
@@ -670,7 +670,9 @@
newwp.x = atof(row[0]);
newwp.y = atof(row[1]);
newwp.z = atof(row[2]);
if(zone->map != NULL && RuleB(Map, FixPathingZWhenLoading) ) {
// Experimental. This code will send any waypoint that is 'in the air' down to ground level.
@@ -685,14 +687,17 @@
float newz = zone->map->FindBestZ(n, dest, NULL, NULL);
// The following test is a sanity check. 45 is an arbitrary value, chosen during testing
// because all the Z co-ordinates of the waypoints in The Grey where <45 units above the ground.
if( (newz > -2000) && ABS(newz-dest.z) < RuleR(Map, FixPathingZMaxDeltaLoading)) {
#ifdef CRIPP_Z
if (fixz != 0) {
#endif
newwp.z = newz+1;
// printf("Updated Z for Grid %d, Waypoint %d from %.3f to %.3f\n", grid, newwp.index,dest.z,newwp.z);
#ifdef CRIPP_Z
}
#endif
}
//else if(newz > -2000)
// printf("Delta Z %.3f too big for Grid %d, Waypoint %d from %.3f to %.3f\n", ABS(newz-dest.z), grid, newwp.index,dest.z,newz);
}
}
newwp.pause = atoi(row[3]);
Waypoints.push_back(newwp);
instead of old..
edit: untested as of now... going to test now will edit with results.
edit2: just tested with similar results... gona mess around till i get something working then ill post =D
edit3: kinda stumped :( edited all posts to what im working with currently(changed all boolean to sint, etc.)..
im a noob haxor, someone help me out :P