Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

metamod · Metamod Half-Life Utility Mod

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 384
  • Category: Game Programming
  • Founded: Mar 31, 2001
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Messages

Advanced
Messages Help
Messages 726 - 726 of 726   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#726 From: cybermind@...
Date: Thu May 6, 2010 11:14 pm
Subject: Re: Configuring CVars from the command line
cybermind@...
Send Email Send Email
 
Halflife doesn't allow you to set cvars which haven't actually been created yet,
and as such, the command line can only be used to set cvars which exist in the
engine itself.

You can use the method Metamod uses to set options on the command line, shown
here: http://metamod.org/metamod.html#configuration
This method is the "localinfo" buffer, one of two "info" buffers available for
server information, which mirror the client's "setinfo" buffer.

On the command line, use: +localinfo mysetting myvalue

Then, in your code, after creating your cvar, use the GetInfoKeyBuffer engine
function (and the InfoKeyValue function) to get the localinfo buffer value for
the "mysetting" key which you can then assign to your cvar.

A link to GetInfoKeyBuffer:
http://metamod.org/engine_notes.html#GetInfoKeyBuffer

As the notes imply, you will want to pass NULL to GetInfoKeyBuffer in order to
get the localinfo buffer.

Messages 726 - 726 of 726   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help