Yeah, I screwed up. The impulse commands and the quad cheat are in weapons.QC. checkpowerups and PlayerPreThink are in client.QC. Apologies.
@giving you all information
I gave you more info than I had when I started QC, and I figured all that stuff out myself. And then I offered to provide an example, which you just turned down.
@couldn't find checkpowerup function
If you can't find a function in a particular file, open up all the files, and use the find feature in all open documents...which you can't do in the shitty notepad text editor. But you can do it in notepad++, the program I recommended you download to edit QC files.
So here's where we stand: you don't want to track down any of the necessary info yourself, and expect a free answer. Then when I offer you a free answer, you turn it down. I'm confused. I'm not trying to be a dick, but you're acting very demanding.