Tutorial *53*
Step 1
One thing that I hated about the Reapers was that, when playing against several bots, I had to set the skill level for each and every one! And... while I was setting skills they were kicking mine and each other's asses before I got started! Well... with this RIP each time a bot is spawned it's skill level is randomly chosen. The skill level is chosen from 1, 1.5, 2, 2.5, and 3.

Open botspawn.qc and find:

entity () AddBot = {
Under
local float plycolor;
put
local float ran_skill;
Now look for these lines:

	       self.skil = skill;

	   if ( (self.skil < FALSE) ) {



 	     self.skil = FALSE;



 	  } else {



 	     if ( (self.skil > MOVETYPE_WALK) ) {



 	        self.skil = MOVETYPE_WALK;



 	     }



  	 }

Paste over the above lines with this:
	//RANDOM BOT SKILL BEGIN

  	 ran_skill = crandom ();

  	 if (ran_skill <= 0.50) {

  	    self.skil = 1.00;

  	 }

  	 if ((ran_skill > 0.50) && (ran_skill <= 0.200)){

		self.skil = 1.500;

  	 }

  	 if ((ran_skill > 0.200) && (ran_skill <= 0.600)){

		self.skil = 2.00;

  	 }

  	 if ((ran_skill > 0.600) && (ran_skill <= 0.800)){

		self.skil = 2.500;

   	}

   	if ((ran_skill > 0.800) && (ran_skill <= 1.00)){

		self.skil = 3.00;

   	}

	//RANDOM BOT SKILL END

These are the numbers I use...gives me a skill 2 Reaper more often. You can mess around with the above numbers to adjust the random factors to your liking.

Enjoy!


Reaperbot (c) 1996 by Steven Polge
Norse_movetogoal (c) 1997 by Roscoe A. Sincero
QCBot Ranking (c) 1997 by Alan Kivlin



 
Not logged in
Sign up
Login:
Passwd: