lfnetwork.com mark read register faq members calendar

Thread: using something in cg_view.c
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 05-27-2007, 12:00 AM   #1
Cohsty243
Rookie
 
Cohsty243's Avatar
 
Join Date: Apr 2007
Posts: 67
using something in cg_view.c

Could I use
Code:
cgs.somecommand = atoi( Info_ValueForKey( info, "somecommand" ) );
in cg_view.c?
or does it only work in
Code:
void CG_ParseServerinfo( void )
Cohsty243 is offline   you may: quote & reply,
Old 05-27-2007, 12:21 AM   #2
Tinny
 
Tinny's Avatar
 
Join Date: Apr 2002
Posts: 1,188
From what I see it should work in both, are you getting compile errors?


Redeemed!

An old school mod for jedi academy.
Tinny is offline   you may: quote & reply,
Old 05-27-2007, 12:42 AM   #3
Cohsty243
Rookie
 
Cohsty243's Avatar
 
Join Date: Apr 2007
Posts: 67
Well I can't compile in the first place, Have to wait till monday or tuesday. :P
Oh and also do you know of any way of locking a cvar from toggling if and if statement is true.
Cohsty243 is offline   you may: quote & reply,
Old 05-27-2007, 01:02 AM   #4
Tinny
 
Tinny's Avatar
 
Join Date: Apr 2002
Posts: 1,188
Hmm, can't figure that one out right now .


Redeemed!

An old school mod for jedi academy.
Tinny is offline   you may: quote & reply,
Old 05-27-2007, 11:25 AM   #5
Cohsty243
Rookie
 
Cohsty243's Avatar
 
Join Date: Apr 2007
Posts: 67
how about?
Code:
trap_Cvar_Set( "g_something", "0" );
Cohsty243 is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > JediKnight Series > Editing Central > JA Coding > using something in cg_view.c

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 Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:23 AM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.