Spawning bots in CSS |
Spawning bots in CSS |
HeavyDelta |
Jan 22 2007, 04:06 AM
Post
#1
|
Member Group: Members Posts: 12 Joined: 23-October 06 Member No.: 909 |
Although the bots spawn fine in HL2DM. There's a small problem with CSS. They join the game, join teams, yet remain dead on the scoreboard and don't physically spawn in the game.
I think this is probably due to changes over time in CSS's spawning code. Is there anything I need to add here? perhaps code to select model/skin as well as team?: CODE void CCSSBot :: startGame () { // do whatever is necessary here to join the game... IPlayerInfo* pInfo = playerinfomanager->GetPlayerInfo(m_pEdict); pInfo->ChangeTeam(RandomInt(2,3)); } Also, why is the code "RandomInt(2,3)"? (I'm assuming this randomly picks either 2 or 3) I thought teams were 1=T, 2=CT, 5=autoselect. |
Cheeseh |
Jan 22 2007, 03:29 PM
Post
#2
|
Admin Group: Admin Posts: 3,057 Joined: 11-September 03 From: uk Member No.: 1 |
Yeah I noticed that bug, it used to work before which is weird. Try changing the RandomInt to 1,2 and try again
It is probably the team number problem . It is really bizzarre though because I just recently fixed a team number problem for The Specialists in Rcbot1, and I'm sure that even worked before. Although looking at the code it seems completely stupid because it was entirely wrong, I don't understand how it ever worked before. |
HeavyDelta |
Jan 23 2007, 02:49 AM
Post
#3
|
Member Group: Members Posts: 12 Joined: 23-October 06 Member No.: 909 |
Well the randomInt(2,3) part is correct, 1=spec, 2=T, 3=CT. It's wierd that even though both teams have players showing on the scoreboard, the game doesn't recognize them because the console says "game won't begin until both teams have players" when you restart the round. oh well, I'm beat for today, I'll keep trying tomorrow.
|
Lo-Fi Version | Time is now: 28th April 2024 - 06:45 PM |