Hello Andrew,

Maybe it would be good to create timer that runs for 30 seconds or so
after map is loaded and all players who connected are frozen - after
30 seconds unfreze them and start playing. Afcourse adding something
like timer for connected waiting players would be nice.

Another way is to reset map after 30 seconds (like i saw in css) - map
restarting can be easily implemented when you read source wiki
tutorial.

I dont know why would you need to stop spawning entities or simulate
slowing down server. I assume you dont reely need to do that.
After all in some time most of clients will load levels as fast as
servers.

Wednesday, June 15, 2005, 1:19:18 AM, you wrote:

> lol That's one way to stop the server doing anything :D

> you could also do

> for( int i = 0; i < 60000; i++ )
>     for(int j = 0; j < 60000; j++ )
>         for(int k = 0; k < 60000; k++ )



> that would slow the server down quite a bit, but the best way would
> probably be something like creating a boolean in your game rules, and
> also a float

> fx.

> bool m_bGameStarted;
> float m_flStartTime;

> then setting m_flStartTime to gpGlobals->curtime + 10.0f or something.
> and m_bGameStarted to false.

> then in your think function add a check for if m_bGameStarted is
> false, and if m_flStartTime is less than or equal to the current time
> then change m_bGameStarted to true.


> In your spawn function, whether it be the players or the gamerules
> that checks if the player can spawn simply don't allow them to spawn
> if m_bGameStarted is false.

> There are a couple of things you will need to expand on to get it
> working right but that's the general idea :D

> Hope it helps

> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives, please 
> visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders




--
Best regards,
 hp                            mailto:[EMAIL PROTECTED]



_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to