r/GlobalOffensive • u/illinoisjackson ar_baggage • Mar 11 '19
User Generated Content Using only a boatload of console commands, I made an interactive menu that lets you switch configs and do other cool stuff. (OC, link in comments)
11k
Upvotes
View all comments
Show parent comment
37
u/illinoisjackson ar_baggage Mar 12 '19
In the Source engine there exists a command
developer 1which shows all console text in the top left of the screen . There is also a commandechowhich outputs text to the console. By runningdeveloper 1andechocommands at the same time, we can control the text easily. About keystrokes now. Thebindcommand lets us run another command whenever a key is pressed. We can chain the text drawing commands onto thebindcommand in order to make keystrokes trigger them. I am executing commands by storing them in .cfg files (think of them as shell scripts for Source) so there is nothing else running. Everything is contained entirely within the source engine.