![]() |
![]() |
HeavyDelta |
![]()
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. |
![]() ![]() |
HeavyDelta |
![]()
Post
#2
|
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: 22nd August 2025 - 03:03 PM |