01 Nov 10, 11:56AM
Eh? I just don't feel like posting on forums much (there's a forum I visit regularly but posted on it maybe twice in the last 4 years), partly because I prefer realtime chat (ie IRC).
Also it's good to let everyone have a go at questions and problems - including those who ask ;) - so that the community grows as much as possible rather than having a few agony aunts. Ever seen someone reaching the "resident guru" status and letting it get to their head, opinionating liberally without restraint, sense or taste? \:D
Apologies for being off topic but wanted to correct Gibstick's well-meant comment :) To get back on track, here's most of my autoexec.cfg (minus the admin stuff, as most folks have that anyway):
Also it's good to let everyone have a go at questions and problems - including those who ask ;) - so that the community grows as much as possible rather than having a few agony aunts. Ever seen someone reaching the "resident guru" status and letting it get to their head, opinionating liberally without restraint, sense or taste? \:D
Apologies for being off topic but wanted to correct Gibstick's well-meant comment :) To get back on track, here's most of my autoexec.cfg (minus the admin stuff, as most folks have that anyway):
[SELECT ALL] Code:
// search for players straight from the console prompt, press F3 then type (partial) name
// may complain about $cmdbuf on the first run but harmless
bind F3 [ inputcommand $cmdbuf [ joinservermenu; searchnickname $cmdbuf ] "?" ]
//////////////////
// cleanup helper
// clears specified aliases on exit, keeps autoexec.cfg tidy and private (eg no admin passwords)
// use anywhere after the definition, any number of times
alias ClearOnExit [
loop i (listlen $arg1) [
tmp = ( concat (at $arg1 $i) = [""] )
addOnQuit $tmp
]
]
ClearOnExit [ i tmp ClearOnExit ]
ClearOnExit [ s r len ] // add some default AC bits
///////////////////////////////////
// pooling all args into an alias
// uncomment & use this as a test template, may need to tweak starting arg offsets
// arg_test = [
// echo arg count: $numargs
// allargs = $arg2; loop i (- $numargs 2) [ allargs = (concat $allargs (getalias (concatword arg (+ $i 3) ) ) ) ]
// echo $allargs
// ]
// ClearOnExit [ arg_test allargs ]
///////////////////////////////
// no nades when mousewheeling
alias nn_weapon_up [ if (= (curweapon) (currentprimary)) [weapon (0)] [shiftweapon 1] ]
alias nn_weapon_dn [ if (= (curweapon) (0)) [weapon (currentprimary)] [shiftweapon -1] ]
alias delta_game_0 [ if (= $arg1 1) [nn_weapon_up] [nn_weapon_dn] ]
ClearOnExit [ nn_weapon_up nn_weapon_dn delta_game_0 ]
////////////////////////////////////////////////////////////////
// captures a screenshot into the "screenshots/bans/" subfolder
alias banscreenshot [
if ($screenshottype) [ ss_extension = ".jpg" ] [ ss_extension = ".bmp" ]
banssfilename = (concatword (at (timestamp) 0) . (at (timestamp) 1) . (at (timestamp) 2) - (at (timestamp) 3) . (at (timestamp) 4) . (at (timestamp) 5) - (curmap 1) )
screenshot ( concatword screenshots/bans/ ($banssfilename) $ss_extension )
]
ClearOnExit [ banscreenshot banssfilename ss_extension ]