This is probably the simplest yet effective script you'll ever use, but if you'd like to customize it, open autoexec.cfg (in this zip) and where it says bind " ", add the key you want to bind the function to! 

Also, for the newbies;) Just drop autoexec in LucasArts/Jedi Knight II/Game Data/Base directory

**********************
this is VERY IMPORTANT!
**********************

other wise you'll have a great script but no keys bound to anything!

email me at phreaktastik@hotmail.com for any comments/questions/feedback, id love to hear how i did or didn't;)

enjoy!