AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   [CS:S] Late spawn question (https://forums.alliedmods.net/showthread.php?t=137463)

Lord Canistra 09-05-2010 16:07

[CS:S] Late spawn question
 
How long into round a late player is allowed to spawn? Seems to be a simple question, yet I didn't manage to find a clear answer.
For example, if player joined team & class lately, he still can spawn if it happened in a short period of several seconds after round has started. Otherwise, he will join team though stay dead till the next round. How is this period controlled? CVar, hardcoded or something else?

Lord Canistra 09-07-2010 14:20

Re: [CS:S] Late spawn question
 
No ideas?

ILOVEPIE 09-08-2010 23:56

Re: [CS:S] Late spawn question
 
the ultimate unwriten rule of all forums: "the silence means we don't know... find out yourself"

thetwistedpanda 09-09-2010 00:37

Re: [CS:S] Late spawn question
 
It's hard coded. Get a stop watch and join a team @ round start; start the stop watch; keep rejoining until you're no longer able to rejoin == your answer. It's around 30-45 seconds though if memory serves me right.

Lord Canistra 09-09-2010 12:15

Re: [CS:S] Late spawn question
 
>ILOVEPIE
Silence may also mean that thread needs a good bump and a bunch of other things. If I had managed to get an answer on my own, I wouldn't have asked you about it.

>thetwistedpanda
Thanks for hint. Found it out, one can latespawn if joining a team & class after no more than 20 seconds into round.

psychonic 09-09-2010 12:20

Re: [CS:S] Late spawn question
 
Quote:

Originally Posted by Lord Canistra (Post 1295720)
>ILOVEPIE
Silence may also mean that thread needs a good bump...

I suggest reading the forum rules sometime
http://forums.alliedmods.net/misc.php?do=showrules

spunkster21 09-11-2010 08:15

Re: [CS:S] Late spawn question
 
It's a shame there isn't a CVAR controlling this. It seems like an obvious thing server owners would want to manipulate, I know I certainly do.

thetwistedpanda 09-11-2010 10:12

Re: [CS:S] Late spawn question
 
The easiest way to control this is to write your own "jointeam"/"joinclass" command and completely manage when player's join teams.

*Edit* Actually, all you need to control this is a timer, a boolean flag, and hooking joinclass. Set the flag to true on round_start, the timer is the length of time you want players to be able to spawn (at which point you set the flag to 0), and if the flag is true on joinclass, force the player to spawn.


All times are GMT -4. The time now is 08:08.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.