Quote:
Originally Posted by Downtown1
Here's how I think we might be able to get Infected Bots..
When infected team is not 4 players, then make a fake player and join the infected team until there are 4 players. When they enter ghost mode (there is an event for that), and assuming fake players can event enter ghost mode (if they can't then just set up a timer).
Once they're in ghost mode, maybe we can force spawn them? z_spawn <whateverclasstheyare> and then give health should work. After that we kick the fake player out and the bot will take over, once the bot dies put the fake player back into the game.
Tweak the bot CVAR settings to make them better as an extra plus.
The only downside is that they wouldn't show up in the infected HUD.
|
I already tried this (spawning infected with a fake player), but the problem is that when you try to spawn the extra infected bot (assuming there's only 3 real players on infected team), a real player (that is currently dead) will take control over it right away. The fake player won't take control of the special infected. I'm still trying to play with timers to make this work, maybe by simulating the new bot's spawn wait. The only odd thing would be that a "random?" real player would get lucky and spawn a few seconds after he dies (by taking over the new bot).
The other problem is that when you force spawn a special infected, it could spawn right in front of the survivors, even on safe rooms.
I haven't dropped this, i think soon i'll have something working.
__________________