Raised This Month: $ Target: $400
 0% 

When are cvar set at server startup?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
chrishx3000
Member
Join Date: Nov 2004
Location: Sweden
Old 04-27-2005 , 13:20   When are cvar set at server startup?
Reply With Quote #1

Heya

I've written a small plugin which uses cvar's (static ConVar you-know-the-rest). These cvar's are set by the user in server.cfg / listenserver.cfg. You'd think that the server.cfg is exec'd quite early but not so. I can't use the cvar's in ServerActivate() as the server.cfg has not yet been exec'd!

Having a look at SetCommandClient(), the command "exec listenserver.cfg" is run before clients connect. Is this so on dedicated servers as well?

To narrow it down, where can I use my cvars for the first time and be sure they have been set to whatever is in the server.cfg / listenserver.cfg

/Chris
chrishx3000 is offline
Reply



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 05:47.


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