Hi,
Maybe some of you know the Quake 1 mod "Quake Arena".
When you press Singleplayer you will play deathmatch with 5 bots connected..
Anybody knows how i can do this in QuakeC?
my old code i got from Dusterdoo gives me a crash
(Runaway loop counter thing)
Maybe some of you know the Quake 1 mod "Quake Arena".
When you press Singleplayer you will play deathmatch with 5 bots connected..
Anybody knows how i can do this in QuakeC?
my old code i got from Dusterdoo gives me a crash
(Runaway loop counter thing)
Code:
float num_bots; float bot_add; void() bot_add_cycle = { while(num_bots < 5) { if(bot_add < time) { BotConnect(); num_bots = (num_bots + 1); bot_add = (time + 2); } } { localcmd("deathmatch 1\n"); localcmd("maxclients 6\n"); bot_add_cycle(); };
Comment