Game Development Community

How do controll the number of bots in Killer Kork?

by Weston Elliott · in Technical Issues · 07/27/2007 (5:27 pm) · 3 replies

I recently downloaded killer kork. However, I am unable to figure out how to add more bots. I have searched through each file 3 times. How do I add more bots to killer kork?

Help is much appreciated.

#1
07/27/2007 (8:02 pm)
Hi,

Look in aiplayer.cs for the following line . . .

$AIPlayer::TeamCount = 0.5;

0.5 means one badguy, 1.0 equals two badguys and so on. You might want to create a nifty slider GUI element that allows you to easily select the number of opponents you wish to face.

Also, remember that you can exec your scripts from within your mission (.mis) files. That would allow you to use different aiplayer.cs variations depending on each specific game world if you wanted.
#2
06/01/2008 (1:38 pm)
Would you know how I would do the nifty slider control?
#3
06/01/2008 (4:17 pm)
@Weston
The book Game Programers Guide to Torque, by Edward F. Maurina III.

It's on the CD, Great book ! ( Thanks Ed )

Ed also has a second book thats more advanced as a follow up to this one.

p.s. There is also a slider sample with the Torque Demo