Raised This Month: $12 Target: $400
 3% 

[CS:S] Late spawn question


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Lord Canistra
Senior Member
Join Date: Mar 2009
Location: Tallinn, Estonia
Old 09-05-2010 , 16:07   [CS:S] Late spawn question
Reply With Quote #1

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 is offline
Lord Canistra
Senior Member
Join Date: Mar 2009
Location: Tallinn, Estonia
Old 09-07-2010 , 14:20   Re: [CS:S] Late spawn question
Reply With Quote #2

No ideas?
__________________
Lord Canistra is offline
ILOVEPIE
Member
Join Date: Sep 2010
Old 09-08-2010 , 23:56   Re: [CS:S] Late spawn question
Reply With Quote #3

the ultimate unwriten rule of all forums: "the silence means we don't know... find out yourself"
__________________


ILOVEPIE is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 09-09-2010 , 00:37   Re: [CS:S] Late spawn question
Reply With Quote #4

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.
__________________
thetwistedpanda is offline
Lord Canistra
Senior Member
Join Date: Mar 2009
Location: Tallinn, Estonia
Old 09-09-2010 , 12:15   Re: [CS:S] Late spawn question
Reply With Quote #5

>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.
__________________
Lord Canistra is offline
psychonic

BAFFLED
Join Date: May 2008
Old 09-09-2010 , 12:20   Re: [CS:S] Late spawn question
Reply With Quote #6

Quote:
Originally Posted by Lord Canistra View Post
>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
psychonic is offline
spunkster21
Senior Member
Join Date: Aug 2008
Old 09-11-2010 , 08:15   Re: [CS:S] Late spawn question
Reply With Quote #7

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.
spunkster21 is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 09-11-2010 , 10:12   Re: [CS:S] Late spawn question
Reply With Quote #8

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.
__________________

Last edited by thetwistedpanda; 09-11-2010 at 12:53.
thetwistedpanda is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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