You will need to edit havocbot.qc file and then compile all of server quakec stuff using fteqcc.
Open havocbot.qc file and find void havocbot_chooseweapon() function at line 324.
Scroll to the start of this function and find these two lines:
- Code: Select all
if(self.enemy.classname!="player")
{
self.switchweapon = w_getbestweapon(self);
return;
}
add this after those lines::
- Code: Select all
if (self.switchweapon == WEP_NEX)
{
self.switchweapon = WEP_LASER;
return;
}
where WEP_NEX is the weapon you want bots do not use, they will change to WEP_LASER instead.
You can use:
WEP_ROCKET_LAUNCHER
WEP_NEX
WEP_HAGAR
WEP_GRENADE_LAUNCHER
WEP_ELECTRO
WEP_CRYLINK
WEP_UZI
WEP_SHOTGUN
WEP_LASER
fteqcc and gamesource can be found at Nexuiz/sources folder. Just paste fteqcc binary into server directory and compile. You'll need to put progs.dat and progs.lno into Nexuiz/data directory.