bzug0 Posted May 7, 2006 Share Posted May 7, 2006 I want to add a cvar g_redPassword <password>, but if the cgame doesn't know it the client cant use it without something like set g_redPassword <password>. Is there any way to add a client cvar without changing the cgame? Link to comment Share on other sites More sharing options...
ensiform Posted May 7, 2006 Share Posted May 7, 2006 nope u need to change cgame for it to work. Link to comment Share on other sites More sharing options...
ensiform Posted May 22, 2006 Share Posted May 22, 2006 are you wanting them to have to type a password to join the team? because you could do that within g_client.c and g_cmds.c very easily. Link to comment Share on other sites More sharing options...
bzug0 Posted June 1, 2006 Author Share Posted June 1, 2006 no, my original idea sucks that g_redpassword is for the admin the player just uses the command /team red <password in g_redPassword> Link to comment Share on other sites More sharing options...
ensiform Posted June 1, 2006 Share Posted June 1, 2006 oh then thats really easy, just look for cmd_team_f in g_cmds.c and add an extra check in there for the arg. and your cvar should be made on the server-side, not client. Link to comment Share on other sites More sharing options...
bzug0 Posted June 2, 2006 Author Share Posted June 2, 2006 I know I've added that almost a day after the first post Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.