Config strings

Locked
nexus024
Posts: 148
Joined: Fri Oct 06, 2006 7:26 pm

Config strings

Post 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!!
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Re: Config strings

Post 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.
nexus024
Posts: 148
Joined: Fri Oct 06, 2006 7:26 pm

Re: Config strings

Post by nexus024 »

Cool. Thanks for the info.
Locked