Half-Life

Half-Life

Not enough ratings
Console Command Menu
By PterribleDactylus
Console Command Menu
I made a small command menu to spawn in items after dying in sven-coop with my pals. Press the selected button then just navigate to find your desired items. Should be compatible with all gld source half-life games, some items are locked to a game, all are available in sven-coop.

Note: May not work in sven-coop, still being tested.

Credit to Meha931 for making a guide for making command menus, https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1877508712

   
Award
Favorite
Favorited
Unfavorite
Directions
  1. Make a .txt file named ‘commandmenu.txt’
  2. Put the file into the valve, gearbox, or svencoop folder. This should be in the local files for whichever goldsource game you are playing.
  3. Copy the code into the commandmenu.txt file
  4. In game, put ‘bind X +commandmenu’ into the console, replace X with whichever button you would like to use.
  5. Press that button to open the menu, and enact different console commands!
Code
After this line, copy all of this into the commandmenu.txt file


"1" "Enable Cheats" "sv_cheats 1" "2" "Cheats" { "1" "No Clip" "noclip" "2" "God Mode" "god" } "3" "Ammo" { "1" "Pistol Rounds" { "1" "Give 9mm Box !SC only!" "give ammo_9mmbox; give ammo_9mmbox;" "2" "Give 9mm Clip" "give ammo_9mmclip; give ammo_9mmclip; give ammo_9mmclip; give ammo_9mmclip; give ammo_9mmclip; " "2" "Give .357 Rounds" "give ammo_357; give ammo_357; give ammo_357; give ammo_357; give ammo_357; give ammo_357; give ammo_357; give ammo_357; give ammo_357; give ammo_357;" } "2" "Rifle Rounds" { "1" "Give 5.56 Rounds !SC only!" "give ammo_556; give ammo_556; give ammo_556; give ammo_556; give ammo_556; give ammo_556;" "2" "Give 7.62 Rounds !OP only!" "give ammo_762; give ammo_762; give ammo_762; give ammo_762; give ammo_762; give ammo_762;" "3" "Give Shotgun Shells" "give ammo_buckshot; give ammo_buckshot; give ammo_buckshot; give ammo_buckshot; give ammo_buckshot; give ammo_buckshot; give ammo_buckshot; give ammo_buckshot; give ammo_buckshot; give ammo_buckshot; give ammo_buckshot; give ammo_buckshot;" } "3" "Other Ammo" { "1" "Crossbow Bolts" "give ammo_crossbow; give ammo_crossbow; give ammo_crossbow; give ammo_crossbow; give ammo_crossbow; give ammo_crossbow; give ammo_crossbow; give ammo_crossbow;" "2" "Energy Gun Packs" "give ammo_egonclip; give ammo_egonclip; give ammo_egonclip; give ammo_egonclip; give ammo_egonclip;" } "4" "Grenades" { "1" "Hand Grenade" "give weapon_handgrenade; give weapon_handgrenade;" "2" "40mm Grenades" "give ammo_ARgrenades; give ammo_ARgrenades; give ammo_ARgrenades; give ammo_ARgrenades; give ammo_ARgrenades;" "3" "Rockets" "give ammo_rpgclip; give ammo_rpgclip; give ammo_rpgclip; give ammo_rpgclip; give ammo_rpgclip;" "4" "Trip Mines" "give weapon_tripmine; give weapon_tripmine; give weapon_tripmine; give weapon_tripmine; give weapon_tripmine; give weapon_tripmine; give weapon_tripmine; give weapon_tripmine;" "5" "C4" "give weapon_satchel; give weapon_satchel; give weapon_satchel; give weapon_satchel; give weapon_satchel; give weapon_satchel; give weapon_satchel; give weapon_satchel;" } } "4" "Weapons" { "1" "Half-Life" { "1" "Melee" { "1" "Crowbar" "give weapon_crowbar" } "2" "Handguns" { "1" "M9" "give weapon_9mmhandgun" "2" "Glock" "give weapon_glock" "3" "Python" "give weapon_357" } "3" "Rifles" { "1" "SPAS-12" "give weapon_shotgun" "2" "MP5" "give weapon_mp5" "3" "M16" "give weapon_m16" "4" "Crossbow" "give weapon_crossbow" } "4" "Explosive" { "1" "Rocket Launcher" "give weapon_rpg" } "5" "Other" { "1" "Gluon Gun" "give weapon_egon" "2" "Tau Cannon" "give weapon_gauss" "3" "Snark" "give weapon_snark" "4" "Hivehand" "give weapon_hornetgun" } } "2" "Opposing Force" { "1" "Melee" { "1" "Pipe Wrench" "give weapon_pipewrench" "2" "Combat Knife" "give weapon_knife" } "2" "Handguns" { "1" "Desert Eagle" "give weapon_eagle" } "3" "Rifles" { "1" "Sniper Rifle" "give weapon_sniperrifle" "2" "M249" "give weapon_m249" } "4" "Explosive" { } "5" "Other" { "1" "Displacer" "give weapon_displacer" "2" "Barnacle Grapple" "give weapon_grapple" "3" "Shock Roach" "give weapon_shockrifle" "4" "Spore Launcher" "give weapon_sporelauncher" } } "3" "Sven-Coop" { "1" "UZI" "give weapon_uzi" } } "5" "Items" { "1" "Health Kit" "give item_healthkit" "2" "Battery" "give item_battery" "3" "HEV Suit" "give item_suit" "4" "Long Jump" "give item_longjump" }
Credits
Requests/Bugs
Please let me know if you would recommend adding any commands or have found any bugs that need fixing. I'll consider any recommendations and will try to fix and glitches.
4 Comments
weran the whammer 6 Jul @ 6:39pm 
also about that beer i owe you?
[λG] Gloveman 14 Sep, 2024 @ 2:15pm 
Yeah i installed it the same way as HL1 and it just doesn't open
PterribleDactylus  [author] 14 Sep, 2024 @ 7:16am 
@gloveman
I'd need to know a little more to help you, although it may just not work whatsoever. Command menus are very annoying to work with, and I haven't tested it on the gearbox games.
[λG] Gloveman 13 Sep, 2024 @ 11:26pm 
Oddly enough i cant get it to work with OP4