View Single Post
Old 01-26-2010, 11:41 PM   #27
acdcfanbill
..the wonders I have seen
 
acdcfanbill's Avatar
 
Status: Super Moderator
Join Date: Jun 2001
Location: Random Hell Wholes around the
Posts: 5,697
Imperialist Meatbags Guild Member The Walking Carpets Guild Member LFN Staff Member 10 year veteran! 
here's a toggle for pmove_fixed that I have in my config. You should be able to look at it and adapt it to your command.

edit: after looking at this script, it occurs to me I must have been drunk when writing it the first time as I added in an extra layer of vstr's I didn't need. So this codeblock has my new hastily rewritten and very quickly bug checked version. The old one is in the hidden block if you care to look.
Code:
/////////////////////////////////////////////////////////////
//	PMOVE SCRIPT
/////////////////////////////////////////////////////////////
set pmovetrue "pmove_fixed 1; echo ^7pmove_fixed is ^5TRUE; set pmovetoggle vstr pmovefalse
set pmovefalse "pmove_fixed 0; echo ^7pmove_fixed is ^1FALSE; set pmovetoggle vstr pmovetrue
set pmovetoggle vstr pmovetrue;
bind INS "vstr pmovetoggle"
Show spoiler


It need not be just a toggle either, you can have it cycle through values too. Take my timenudge script...

Code:
/////////////////////////////////////////////////////////////
//	TIMENUDGE SCRIPT
/////////////////////////////////////////////////////////////
set startcycle "cl_timenudge 0; cg_smoothclients 1; vstr cyclenumber; set cycletoggle"
set timenudge_0 "cl_timenudge 0; cg_smoothclients 1; set cyclenumber vstr timenudge_25;wait 10; echo ^7TIMENUDGE IS ^3[0]"
set timenudge_25 "cl_timenudge -25; cg_smoothclients 0; set cyclenumber vstr timenudge_40;wait 10; echo ^7TIMENUDGE IS ^3[-25]"
set timenudge_40 "cl_timenudge -40; cg_smoothclients 0; set cyclenumber vstr timenudge_50;wait 10; echo ^7TIMENUDGE IS ^3[-40]"
set timenudge_50 "cl_timenudge -50; cg_smoothclients 0; set cyclenumber vstr timenudge_60;wait 10; echo ^7TIMENUDGE IS ^3[-50]"
set timenudge_60 "cl_timenudge -60; cg_smoothclients 0; set cyclenumber vstr timenudge_75;wait 10; echo ^7TIMENUDGE IS ^3[-60]"
set timenudge_75 "cl_timenudge -75; cg_smoothclients 0; set cyclenumber vstr timenudge_100;wait 10; echo ^7TIMENUDGE IS ^3[-75]"
set timenudge_100 "cl_timenudge -100; cg_smoothclients 0; set cyclenumber vstr timenudge_0;wait 10; echo ^7TIMENUDGE IS ^3[-100]"
set cyclenumber vstr timenudge_0
set cycletoggle vstr startcycle
bind HOME "vstr cycletoggle"
/////////////////////////////////////////////////////////////
//	END TIMENUDGE SCRIPT
/////////////////////////////////////////////////////////////

These of course have echo's to spit out info to the user, you may or may not want those


Last edited by acdcfanbill; 01-26-2010 at 11:55 PM.
acdcfanbill is offline   you may: quote & reply,