quakeforge/doc/config/gib/ln.gib
Brian Koropoff 0f71b02fd7 Changed the name of GIB builtins from string.length to string::length, etc.
Made a few miscellaneous cleanups and enhancements to builtins and changed
all the GIB scripts in CVS to reflect the new naming conventions.
2002-11-11 01:57:34 +00:00

27 lines
397 B
Text

global ln
ln.invoke_f = {
local cvar
cvar = ${ln.cvar.$0}
if ($argc == 1) {
echo "\"", $0, "\" is \"", $$cvar, "\""
return
}
set $cvar $1
}
function "ln" {
if ($argc != 3) {
echo "usage: ln cvar cvar_alias"
return
}
ln.cvar.$2 = $1
function $2 ${ln.invoke_f}
export $2
}
function::export ln
// QuakeForge qwcl
ln "in_mouse_amp" "sensitivity"
ln "in_grab" "_windowed_mouse"