You can also bind cheats to whatever button you would like. I have a mouse that has 5 buttons and bind one of them for infinite ammo. For example: bring up console and type: bind MOUSE4 "impulse 101" Now everytime I push that particular mouse button, I reload on ammo, without having to bring up console and retype every time. This will work with any button you designate. Instead of typing MOUSE4, just input key of your choosing. You can also do this for any of the cheats.
The key will stay on when you load a new level, but I have to re-bind the keys every time I quit the game and start it up again. I have bound these keys/funtions:
bind p "sk_plr_dmg_pistol 400" ] bind o "sk_plr_dmg_smg1 400" ] bind i "sk_plr_dmg_ar2 400" ] bind u "sk_max_ar2 99999" ] bind y "sk_max_ar2_altfire 99999" ] bind t "sk_max_buckshot 99999" ] bind l "sk_max_crossbow 99999" ] bind k "sk_max_grenade 99999"
bind j "sk_max_pistol 99999" ] bind h "sk_max_rpg_round 99999" ] bind m "sk_max_smg1 99999" ] bind n "sk_max_smg1_grenade 99999" ] bind b "physcannon_maxforce 5000" ] bind v "physcannon_maxmass 5000" ] bind c "physcannon_tracelength 5000"
You can just copy this tekst into your console, but you have to first copy the first 8 lines and then the next 7. Because the console can not handle longer commands than that. You have to do this every time you start the game, and you will have to press every bound key when the game loads a new level. You can add all the keys you want, as long that you have avalibel keys on your keyboard, just make sure that you dont use any keys that the game uses, such as w,a,s or d, because this will override the existing funtions. There are severel more funtions, I find these the ones I have the most benefit from. The "sk_plr_dmg_" sets the damage on your chosen gun to your chosen level, in this case 400 (More than enough, you can kill a hunter with just one shot.) The "sk_max_" sets the amount of bullits you can carry and in this case 99999 (You think you have enough?) The "physcannon_" command in the 3 cases sets the size of the objects you can carry and the length that you can pull from with the gravitygun (Always fun to throw around cars and hunterchopperparts) If you play the normal HL2 and want to modify the blue gravitygun you need to use "physcannon_mega_" instead.
And if anyone is so clever that he or she can make some sort of script that automaticly copyes the commands into the console, that could save some valuable secunds
And sorry for my spelling errors, hope it makes sense.
--------------------------------------------------------------------------- Two hydrogen atoms walk into a bar. One says, "I've lost my electron." The other says, "Are you sure?" The first replies, "I'm positive....."
Create a txt file called autoexec. Copy the following to this txt file. sv_cheats 1 sv_infinite_aux_power 1 sk_plr_dmg_pistol 400 sk_plr_dmg_smg1 400 sk_plr_dmg_ar2 400 sk_plr_dmg_ar2_altfire 400 sk_plr_dmg_smg1_grenade 400 sk_plr_dmg_alyxgun 400 sk_max_ar2 99999 sk_max_ar2_altfire 99999 sk_max_buckshot 99999 sk_max_crossbow 99999 sk_max_grenade 99999 sk_max_pistol 99999 sk_max_rpg_round 99999 sk_max_smg1 99999 sk_max_smg1_grenade 99999 physcannon_maxforce 5000 physcannon_maxmass 5000 physcannon_tracelength 5000
Afterwards use "Save As" to save the file. When it asks for a file name type "autoexec.cfg" with the quotations. Copy this file into your "C:\Program Files\Steam\steamapps\%account_name%\half-life 2 episode two\ep2\cfg"
Once in the game, in the console type:
Since this must be done after every map load, you could always bind the command to a key. This one key would then "exec" all the commands listed in the autoexec.cfg file.
[Edited by DragonFire1380, 1/26/2008 5:16:44 AM]
[Edited by DragonFire1380, 1/26/2008 5:20:55 AM]
[Edited by DragonFire1380, 1/26/2008 5:22:13 AM]
All times are (GMT -08:00) Pacific Time (US & Canada). Current time is 11:02:47 PM