View Single Post
Re: Bots get stuck at top of ladder
Old
  (#31)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: Bots get stuck at top of ladder - 24-05-2004

Quote:
Originally Posted by T Wrecks
Could this problem be caused by the fact that the bots are no longer "locked" to a certain direction when climbing ladders? AFAIR, this used to be the case with older PB versions. The downside was that bots couldn't fight each other while climbing ladders because they were prohibited from aiming at their enemy due to this lock.
That's exactly it.

Quote:
Now I'm wondering if it would be possible to re-introduce the lock BUT in a way that it gets deactivated as soon as an enemy is in sight? And reactivate it as soon as the enemy has vanished (fled or died)? Or is this too complicated?
the problem with reintroducing the lock is that the bot won't be able to SEE the enemies anymore. No, instead, a more clever ladder code must be used. For example, when you climb the ladder at the CT spawn in cs_assault, you don't look straight up until the top of the ladder, as soon as you can see above the building, you turn yourself in that direction and finish climbing the ladder by STRAFING RIGHT. This is what the bots should do when their next waypoint is more or less 90° on the left according to the ladder angles.

In a former DLL I tried to make a quick and dirty fix by temporarily setting the origin of the faulty waypoint (the one AFTER the ladder) a little higher and a little closer to the bot. It helped a bit for some ladders, but I had not tested it thoroughly for all at all, so that might be a direct incidence of that modification.



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote