Page 1 of 1

Config strings

Posted: Fri Apr 13, 2012 6:32 pm
by nexus024
Can someone point me in the right direction for viewing/intercepting the config string (CS_) data passed between the server and client/cgame?

An explanation of how cs are passed between server/client/cgame module also would be much appreciated!!

Re: Config strings

Posted: Sun Apr 15, 2012 12:09 am
by ^misantropia^
You can look up the implementation in the ioquake3 code base but it's pretty straightforward: the config strings are an array of free-form ASCII strings that the server broadcasts to the clients. The strings are of arbitrary size, i.e. they're not limited to 255 chars.

From a mod author perspective they're dead simple to use: just call `trap_SetConfigstring(index, value)`, the engine takes care of the rest.

Re: Config strings

Posted: Thu Apr 19, 2012 12:00 am
by nexus024
Cool. Thanks for the info.