I want to make the source built in console command [I]debugsystemui [/I]not require sv_cheats, but instead check to see if the player is a super admin. Is there a way to hook into and modify built in commands? Since [I]debugsystemui[/I] opens up a vgui window, would it be possible to get lua to open up that window without sv_cheats?
EDIT: Sorry for the obscure question.
Since it's written as part of the source engine and not added on afterward in lua then I don't think you can, your best bet would be to recreate it in lua
[QUOTE=Adzter;45552883]Since it's written as part of the source engine and not added on afterward in lua then I don't think you can, your best bet would be to recreate it in lua[/QUOTE]
I know that the main menu opens the source built in options menu. Is there a specific function for that, or is it just running console commands?
You can only do so with a .dll module.
Main menu uses different type of console commands ( RunUICommand or something similar, I don't exactly remember, look into main menu source code ) to open the options, etc.
Been looking into the debug options menu that I want to use. It's functions are stored in scripts/debugoptions.txt, and the menu works in a very similar way to Thief 3 and Deus Ex 2's debug menu. Since the menu isn't anything internal, would vgui_togglepanel work for loading the debug menu?
Sorry, you need to Log In to post a reply to this thread.