View Single Post
Re: Let go off auto-waypointing?
Old
  (#31)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Let go off auto-waypointing? - 14-06-2004

I did some tests on the line of code you mentioned Evy, but it is not it. So i am looking it somewhere else...

EDIT:

Around line 642, you find some lines that look similiar to the following updated lines... this makes the de_dust crates connectable now.. and i will test as_oilrig now, but i don't forsee any problems

Code:
// 14/06/05 - FIXED: Some slopes are not counted in here..., de_dust jump from crates connects now
	 if ((bIndexFloats /* && bNeighbourFloats */ ) && (Nodes[j].origin.z > Nodes[index].origin.z) && (Nodes[j].origin.z - Nodes[index].origin.z > MAX_FALLHEIGHT) 
	&& (bNeighbourWater == false && bIsInWater == false))
{
EDIT 2:

I have tested oilrig, and i see another problem. Its done in a few lines later, and actually the lines are not wrong...

The slopes are so steep that a player walking on it is having to much velocity, causing a good distance and also a great difference of height. When checking the node you create and the last created node. The height can be HIGHER then a max possible jump (60 units). THe check fails here, it says "its to high to jump". So going down is no problem now due the given fix above, but going UP is a problem now.

You could say, okay, we remove the height check. But then again you have the problem that nodes will be connected to stuff a bot cannot jump to. Both nodes are not floating. When jumping on normal crates, both nodes are also not floating, so there is not much to change. The condition is here:

Code:
	 if (bIndexFloats == false && // we stand on something
	 Nodes[j].origin.z > Nodes[index].origin.z && // we MUST jump (not fall)
	 bNeighbourWater == false && 
	fabs (Nodes[j].origin.z - Nodes[index].origin.z) > MAX_JUMPHEIGHT) // and cannot jump to it
{
	SERVER_PRINT("Cannot jump to it");
continue; // next neighbour	 
}
perhaps some genius can stand up here?

EDIT 3:

Thanks to PMB i could distinguish a steep slope and a normal slope (crate/flat) and so i adjusted the code and now it connects FINE on oilrig! I have updated the CVS ladies....

EDIT 4:
CVS seems to be down, cannot update yet.


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me

Last edited by stefanhendriks; 14-06-2004 at 23:11..
  
Reply With Quote