View Single Post
Re: introducing... BotAim 2!
Old
  (#48)
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: introducing... BotAim 2! - 03-05-2005

All the bots ? darn, I must have screwed something *fires up MSVC*

You were right... I messed up with a global variable. A simple solution is to add a "Vector v_randomization" in the bot_t structure at the top of the file, and change the lines @452 and below to this:
Code:
		 // is the bot standing still ? (thanks sPlOrYgOn for the bug fix)
		 if (pBot->pEdict->v.velocity.Length () < 1.0)
			pBot->v_randomization = randomization * 0.2; // randomize less than normal
		 else
			pBot->v_randomization = randomization; // normal randomization
 
		 // randomize targeted location a bit (slightly towards the ground)
		 pBot->randomized_ideal_angles = UTIL_VecToAngles (pBot->targeted_location
														 + Vector (RANDOM_FLOAT (-pBot->v_randomization.y, pBot->v_randomization.y),
																	 RANDOM_FLOAT (-pBot->v_randomization.y, pBot->v_randomization.y),
																	 RANDOM_FLOAT (-pBot->v_randomization.x * 1.5, pBot->v_randomization.x * 0.5))
														 - (pBot->v_eyeorigin));
*edit*
it's fixed. Version 2.3 is released.



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

Last edited by Pierre-Marie Baty; 03-05-2005 at 18:04..
  
Reply With Quote