Page 1 of 1

LilChefs How To's

Posted: Fri Jun 15, 2007 3:51 am
by LilChefDeath
Ok People just for a reference to make bots use guns you want them to use.And change bots per team.
Close to Original Code:

Code: Select all

level waittill spawn

	level.jvbot_tasks_priority[follow] = 0
	level.jvbot_weapon_priority["m1 garand"] = 20
	level.jvbot_weapon_priority["springfield '03 sniper"] = 20
	level.jvbot_weapon_priority["thompson"] = 30
	level.jvbot_weapon_priority["bar"] = 30
	level.jvbot_weapon_priority["shotgun"] = 0
	level.jvbot_weapon_priority["high standard"] = 0
	level.jvbot_weapon_priority["colt 45"] = 0
	level.jvbot_weapon_priority["bazooka"] = 0
	level.jvbot_weapon_priority["mauser kar 98k"] = 20
	level.jvbot_weapon_priority["mauser kar 98d sniper"] = 20
	level.jvbot_weapon_priority["mp40"] = 30
	level.jvbot_weapon_priority["stg44"] = 30
	level.jvbot_weapon_priority["walter p38"] = 0
	level.jvbot_weapon_priority["panzerschrek"] = 0
	level.alliesbots = 15
	level.axisbots = 15
	thread cmessage
	waitthread global/jv_bots/jv_mp_ai.scr::enable
Ok ur code should look similar to that...
But say we want to make it snipers only we simply do this

Code: Select all

level waittill spawn

	level.jvbot_tasks_priority[follow] = 0
	level.jvbot_weapon_priority["m1 garand"] = 0
	level.jvbot_weapon_priority["springfield '03 sniper"] = 15
	level.jvbot_weapon_priority["thompson"] = 0
	level.jvbot_weapon_priority["bar"] = 0
	level.jvbot_weapon_priority["shotgun"] = 0
	level.jvbot_weapon_priority["high standard"] = 0
	level.jvbot_weapon_priority["colt 45"] = 0
	level.jvbot_weapon_priority["bazooka"] = 0
	level.jvbot_weapon_priority["mauser kar 98k"] = 0
	level.jvbot_weapon_priority["mauser kar 98d sniper"] =15
	level.jvbot_weapon_priority["mp40"] = 0
	level.jvbot_weapon_priority["stg44"] = 0
	level.jvbot_weapon_priority["walter p38"] = 0
	level.jvbot_weapon_priority["panzerschrek"] = 0
	level.alliesbots = 15
	level.axisbots = 15
	thread cmessage
	waitthread global/jv_bots/jv_mp_ai.scr::enable
Now i put 15 cuz i have 15 axis and allies..
And if you simply want to change bots on the teams just simply change the code...

Code: Select all

level.alliesbots = 15
	level.axisbots = 15
Just add more or subtract some...

This is so ppl dont ask this question around.. Ohh ya and i've changed some things in my bot script jv...but i kept the credits :D....(lol random)