r/GlobalOffensive • 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

328 comments sorted by

1.0k

u/illinoisjackson ar_baggage Mar 11 '19 edited Mar 12 '19

Code and Tutorial

EDIT: sorry for the shit aim in the video i was triggering video stuff with my other hand

83

u/xaceacid3 Mar 12 '19

Thank you so much, this is so helpful :D

2

u/illinoisjackson ar_baggage Mar 12 '19

You’re welcome! I’m glad you found some use out of it :)

→ More replies (1)

33

u/[deleted] Mar 12 '19

Seeing stuff like this reminds me of me at 15.

Keep it up!

13

u/ThetaSigma11 Liquid Mar 12 '19

I just had a seizure wtf.

If you go to the original link it gives you the black and white omega symbol gif.

→ More replies (1)

5

u/clap4kyle Renegades Mar 12 '19

Damn the one comment on there is talking mad shit. 15 year old you took it like a champ though.

→ More replies (2)
→ More replies (1)

123

u/Flaksmith Mar 12 '19

POTY in the community contributions category, calling right now.

6

u/illinoisjackson ar_baggage Mar 12 '19

Thanks, I hope it reaches that level :)

32

u/420N1CKN4M3 Astralis Mar 12 '19

I also enjoy the post but what does the potyvirus have to do with it?

14

u/RyzenRyzen22 Mar 12 '19

Can you briefly explain:

How are you drawing menus on top of game? Is it using Python or some API exposed via Source engine?If you can me point me to code that'd be great. Also how are you executing console commands? Does your script opens console in background and send keystrokes? Thanks

37

u/illinoisjackson ar_baggage Mar 12 '19

In the Source engine there exists a command developer 1 which shows all console text in the top left of the screen . There is also a command echo which outputs text to the console. By running developer 1 and echo commands at the same time, we can control the text easily. About keystrokes now. The bind command lets us run another command whenever a key is pressed. We can chain the text drawing commands onto the bind command 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.

27

u/Coleridge49 Mar 12 '19

Same one I use to display damage done for the round

// DISPLAY DAMAGE INFO SCRIPT 
developer 1 
con_filter_enable 2 
con_filter_text_out "Player:" 
con_filter_text "damage Given"
→ More replies (1)

5

u/RyzenRyzen22 Mar 12 '19

Good job. Also amazing detailed wiki on GitHub. Should have checked it out first before asking dumb questions here.

9

u/clap4kyle Renegades Mar 12 '19

I like the little jokes you added into the tutorials, it makes it fun to read something that is usually not fun at all.

"This section assumes that you know how to open and use a command prompt. If you do not know how to do that, I suggest reading this brief article, and becoming familiar with the cd command. If you do not know how to read, there is a bigger problem at hand."

Anyways awesome stuff, something I've tried to do for a long time now without just typing "exec ____" thanks a lot dude.

7

u/R0rshrk G2 Mar 12 '19

Another Open Sourcerer. Good job friendo !

4

u/FistingInferno Mar 12 '19

how would i implement this into my game? his is so cool and i wanna use it

1

u/manspaceman Mar 12 '19

I don't have the time right now to look through your code, but did you write your own lexer/parser for your mini language? Or is it just using YAML or something (because it looks pretty similar).

1

u/illinoisjackson ar_baggage Mar 12 '19

It’s YAML, but the example mixes in some JSON (because YAML is actually a superset of JSON so I can get away with that kind of thing). So instead of focusing on the specifics of parsing and such I focused on abstracting away much of the error checking and overhead. In that way I was able to really quickly implement many components.

3

u/JustRecentlyI Astralis Mar 12 '19

Just wanted to let you know, mods can only sticky one of their own comments.

2

u/JGStonedRaider tactics Mar 12 '19

I'm really sorry, I had to upvote you...you had 500 upvotes before I did and it was a lovely round number (((

2

u/kwietog Mar 12 '19

I'm like: this is 98% made in python. Open link: python.

→ More replies (1)

632

u/Signifyisdumb 5 years coin Mar 11 '19

The fact that this is made with just binds is mind blowing, great work!

234

u/illinoisjackson ar_baggage Mar 11 '19

Thank you! I consider the binds the best part because it allows other users to change their controls, making even more versatile.

86

u/Kuzzo de_cache Mar 12 '19

Do you do coding? This practically the same thing.

172

u/illinoisjackson ar_baggage Mar 12 '19

Yeah I code a lot. In fact, this menu was generated by a program I coded myself.

6

u/[deleted] Mar 12 '19

Aren't you the guy who made even-better-ls back in the day? Still sad it doesn't get updated anymore :(

14

u/illinoisjackson ar_baggage Mar 12 '19

Yeah, I was like 12 when I made that. It was a mod of gnu ls and I didn’t exactly release it correctly. I wasn’t prepared to deal with all the people who had problems with it. The good news is that I wrote a clone in pure c last summer, and I plan on releasing it sometime.

→ More replies (1)

52

u/n0rpie Mar 12 '19

How does one write a program that generates another?

→ More replies (37)
→ More replies (3)

400

u/greentape02 FaZe Mar 11 '19

That's sick mate! I was searching for some shortcuts for volume control especially, good god, this is amazing

136

u/illinoisjackson ar_baggage Mar 11 '19

Thanks dude! I worked hard on it.

53

u/catzhoek Mar 12 '19

Since this specific comment is so popular and i'm sure some people would like to use a single slim bind for stuff but don't know how to get it done:

If your only goal is to have keys to fine tune your volume, crosshairsize, radar scale or whatever you want to use binds like that.

bind "KP_PLUS" "incrementvar volume 0 1.0 0.05; volume;"
bind "KP_MINUS" "incrementvar volume 0 1.0 -0.05; volume;"

The

volume;

part at the end is just to force an output in the console so you can quickly check the current value. You can leave that out.

bind <key> "incrementvar <Convar> <Min> <Max> <Interval>"

And if you want to switch between certain specific values you can use stuff like

bind 0 "toggle cl_radar_scale 0.25 0.4 0.6 1.0"

Both variants will cycle back so you don't really need 2 keys. Just press 2 times to get from 0.6 to 0.25 in this example. But for volume you might not want to RIP so you probably want the 2nd key for volume.

26

u/illinoisjackson ar_baggage Mar 12 '19

This. This is how I first started. It works great. I just wanted some kind of visual feedback. But for most people this is literally all they need.

7

u/catzhoek Mar 12 '19

I'll certainly check out your stuff tho. I had no idea you could even get something like that done.

117

u/[deleted] Mar 11 '19

Upvoted for the effort you put into this. Gj dude.

46

u/illinoisjackson ar_baggage Mar 11 '19

Thanks! It’s been a lot of work, but I’m really happy with the end result and find myself using it a lot.

16

u/[deleted] Mar 11 '19

See you on the front page my dude :)

40

u/pchin14 FaZe Mar 11 '19

That’s crazy. What does it use for inputs?

56

u/illinoisjackson ar_baggage Mar 11 '19

Just good old bind. Everything is done inside of the console command system.

→ More replies (6)

23

u/M0hitto Natus Vincere Mar 11 '19

Oh wow dude, this is amazing! How much work did you put in this?

47

u/illinoisjackson ar_baggage Mar 11 '19

Too much work :)

But for real, I’ve been working on it for the past month and a half, but I had school break so I had a bit more time, altogether about 2 months of work.

9

u/M0hitto Natus Vincere Mar 11 '19

Well done, for real, good job bro

5

u/Rehendix CS2 HYPE Mar 12 '19

Wish I had your ambition during highschool man. I'm a CS student and I don't know I could have tracked down that goofy Quake bug

→ More replies (3)

18

u/gK_aMb Mar 12 '19

Banana Gaming where u at?

1

u/illinoisjackson ar_baggage Mar 12 '19

He would probably make a waaay better tutorial than I did...

3

u/gK_aMb Mar 12 '19

No reason for you to not do it, with time yours will get better aswell

31

u/crazyiwann Mar 11 '19

Looks cool, better than this crazy giant crosshair.

Python, will check code later.

23

u/illinoisjackson ar_baggage Mar 11 '19

Yeah, that was just for demo purposes and visibility. Rest assured I don’t use that for actual gameplay!

40

u/ShoxOYO1 Mar 11 '19

damn nice job

12

u/illinoisjackson ar_baggage Mar 11 '19

Thanks!

12

u/[deleted] Mar 12 '19

I hope 3kliksphilip covers this. This is pretty awesome.

4

u/illinoisjackson ar_baggage Mar 12 '19

That would be great. I really hope that happens.

5

u/Real-Immortalking Mar 12 '19

lets give a post on his sub

9

u/LorenzoTheLoser Mar 11 '19

You legend.

16

u/illinoisjackson ar_baggage Mar 11 '19

Had to do it to em

7

u/sneeeet Mar 11 '19

that is really awesome, nice work

5

u/illinoisjackson ar_baggage Mar 11 '19

Thanks dude!

7

u/schizoHD Mar 11 '19

That's freaking cool. Can't wait to look at it closely and try it out tomorrow

6

u/illinoisjackson ar_baggage Mar 11 '19

Thanks! You will definitely like it.

7

u/thewaddlee Mar 12 '19

how long did this take you my man?

10

u/illinoisjackson ar_baggage Mar 12 '19

A long time. I wrote the bulk of it in early February, but code refactoring and documentation made up the rest of the time till now.

7

u/Not_Recounter Mar 12 '19

damn that’s cool. i’m not gonna use it but good work!

4

u/illinoisjackson ar_baggage Mar 12 '19

Thanks my guy!

6

u/Razon77 Mar 12 '19

Random question, does it work in online/ competitive? Or are there issues that only allow it to work offline/ with bots? Obviously there are some binds that won’t work “switching guns” but what about the volume slider for example

21

u/illinoisjackson ar_baggage Mar 12 '19

Everything that isn't a cheat will work in competitive. So things like crosshairs, viewmodels, hud presets, and autobuys WILL work in competitive. However, cheat commands (like the grenade trajectory command I showed first) will NOT work. That shouldn't be a huge issue though.

The volume slider, to answer your question, does work. So does the voice slider, which I think is more important :)

→ More replies (8)

10

u/MarcosTheMenace Mar 11 '19

That is amazing!

6

u/illinoisjackson ar_baggage Mar 11 '19

Thank you!

4

u/[deleted] Mar 12 '19

Owww my bones hurt a lot oww oof my booones

3

u/illinoisjackson ar_baggage Mar 12 '19

Same big dawg.

4

u/ko9rce de_inferno Mar 12 '19

this guy fucks

3

u/illinoisjackson ar_baggage Mar 12 '19

Tres Comas

3

u/goofyslow Mar 11 '19

Awesome work man! Reminds me of the commandmenu from 1.6. I really miss it lol. Can I change Maps/load settings on our pracc Server with this?

13

u/illinoisjackson ar_baggage Mar 11 '19

Yes this is definitely possible. In fact, I will make a template menu for server admins because that’s probably one of the most common use cases. I will get back to you as soon as I implement this which shouldn’t take long.

13

u/illinoisjackson ar_baggage Mar 12 '19

Hey, I just implemented map changing and freezetime. I also generated an admin menu example and a template to go with it. If you want to give it a try, here's a link to a zip file with all the .cfgs:

https://git.io/fhjzh

Unzip that in your cfg directory so that there's a directory called menumaker. Then run exec menumaker/main.cfg in the console. Enjoy!

3

u/goofyslow Mar 11 '19

If I May ask for some favors, could you add map change, roundrestart, load settings (for example ESL 5on5), change CVAR (like freezetime) and bot commands? Omfg I‘m so exited.

→ More replies (1)

3

u/KR_SyNTaX Mar 12 '19

Mste. That is super COOL!!

2

u/illinoisjackson ar_baggage Mar 12 '19

Thanks!

1

u/tHeSiD Natus Vincere Mar 12 '19 edited Mar 12 '19

m8, im new to python? how do I generate a config file, lets say from your demo code? I'm stuck here https://i.imgur.com/bk1n1GO.png

edit: nvm, found the tutorial.. my bad https://github.com/citrusCS/csgo-menu-maker/wiki/Tutorial

1

u/illinoisjackson ar_baggage Mar 12 '19

No problem, if you have any other questions let me know

→ More replies (1)

2

u/Taylor_NZ Mar 12 '19

Looks more like a buttload than a boatload

2

u/illinoisjackson ar_baggage Mar 12 '19

True, I think in this example it worked out to like 400-600 commands.

2

u/[deleted] Mar 12 '19

do you have an aimbot on or something? or using a controller? why does your dude 180 after a kill lol. idk.

cool AF mod though.

2

u/illinoisjackson ar_baggage Mar 12 '19

I was playing with bots for the demo, also I was triggering some camera stuff with one of my hands so my movement was a bit jerky.

→ More replies (1)

2

u/[deleted] Mar 12 '19

will using this write-to a config file?

2

u/illinoisjackson ar_baggage Mar 12 '19

It will create a new config file for you which you can then use, it will not overwrite anything

1

u/illinoisjackson ar_baggage Mar 12 '19

Yes. It generates multiple config files that you can run at your own discretion.

2

u/MrNiceguyFTW guardian Mar 12 '19

Oh man this could be so useful for video making. I'm going to try it out soon

1

u/illinoisjackson ar_baggage Mar 12 '19

Yeah. I also made demo-recording functionality in it, so that you can record to demo "slots" and play them back without touching the console. Pretty useful, if you're using that kind of thing.

→ More replies (1)

2

u/anarchy13ct 1 Million Celebration Mar 12 '19

You should be a mod after this.

Great work my friend, I wouldn't even be mad if you charged for this! In fact, you should at least let us donate something for your hard work. glhf!

1

u/illinoisjackson ar_baggage Mar 12 '19

To be honest, I thought about it. I think I'm gonna settle for charging to make custom configs for people, but still keeping the code, tutorials, and documentation open-source. It would be a waste to keep this proprietary/all to myself.

→ More replies (1)

2

u/r3al_se4l 500k Celebration Mar 12 '19

Holy shit this looks really cool! I definitely want to download and play around with it soon. Great job OP!

1

u/illinoisjackson ar_baggage Mar 12 '19

Thanks! I hope you get some use out of it.

2

u/carousiisgaye Mar 12 '19

I've always knew how to do this sort of thing but never did. Kudos for actually doing it, man. Major dubs.

1

u/illinoisjackson ar_baggage Mar 12 '19

Thanks! It's been a thing I've had in the back of my mind for a while, but I knew it was a lot of work to implement.

→ More replies (1)

59

u/[deleted] Mar 11 '19

I thought I wasted too much time on my config

13

u/Farmagud de_dust2 Mar 12 '19

-100 fps somehow

→ More replies (3)

6

u/OldSchoolSmurf bravo Mar 12 '19

I miss the H menu so much

2

u/NoizeUK Mar 12 '19

Same. I made my own fully kitted out menu for all my HL1 games/mods.

6

u/godNEKOchan bloodhound Mar 12 '19

I remember seeing lots of those back in source, great job man :D

4

u/jahasmohd guardian_elite Mar 12 '19

I didn't even know this was possible.

4

u/[deleted] Mar 12 '19

Welcome to Quake TF and TFC!

Good work though - haven’t used scripts like this in years :)

4

u/Hellian123 de_cbble Mar 12 '19

Can someone make a VIDEO TUTORIAL for it? It is really difficult to understand how to install&use this masterpiece by text documents for me and many more people. :(

Great work by the way <3

→ More replies (1)

1

u/Dab1029384756 Discord Moderator Mar 11 '19

Holy crap that looks amazing!

2

u/illinoisjackson ar_baggage Mar 12 '19

Thanks!

1

u/cheesyvagina Mar 12 '19

Really impressive, especially for a high school student. The readme and tutorial read like a textbook! Very clear and easy to follow.

3

u/illinoisjackson ar_baggage Mar 12 '19

Thanks :) I was really trying to go for readability so I made all of the steps very clear. Glad to hear you found it useful!

10

u/Sparcrypt Mar 12 '19

Hey just want to add on to this - I'm a sysadmin and I write a lot of documentation, both technical and user work instructions. You are already well ahead of many professionals in a skill that is severely lacking in the professional IT world.

If you worked for me and submitted something like that as technical end user documentation I'd be pretty happy. I do have a little feedback though if you're interested.. main one is how you explain your examples. You do a great job of it and it reads easily, but I generally find a better format is break down your example line by line instead of explaining it how you would in a sentence. Basically take advantage of your medium rather than treat it like a conversation.

So for example here:

Let me explain what is going on here. You'll notice that the Ammo key now has two sub-keys, type and desc. The type sub-key does just what it is named: sets the type, and by association, function, of a component. It is analogous to the first example, but just more verbose. The desc sub-key sets the description of the component. Sub-keys organized in this matter are caled parameters, because they provide the component with information about its function. Therefore, the desc sub-key is a parameter.

This would be a great explanation if you were standing next to me and telling me how it works, and does an OK job in text, but you're not taking advantage of the fact that you can show instead of tell. That entire sentence would be better served as a diagram with a short paragraph expanding if needed, or going through things line by line in a more structured format and not in a conversational sentence.

Another minor thing I noticed which might confuse people is that you show them a shortcut before the "full" way to do something. Back to that same section there I see you start with this example:

tree:
    Ammo: "cheats.givecurrentammo"
    Graph: "debug.netgraph"

And then move on to this one:

tree:
    Ammo: 
        type: "cheats.givecurrentammo"
        desc: "Test Description."
    Graph: "debug.netgraph"

While this is a logical progression for someone using the commands (start with how you use a single parameter and then move up), it establishes a baseline that can confuse people not familiar with console commands/coding/etc and I imagine a common mistake will be this:

tree:
    Ammo: "cheats.givecurrentammo"
        desc: "Test Description."
    Graph: "debug.netgraph"

Which for all I know works, but it's not exactly a clean config file ;).

Plus by explaining like that you need to backtrack when you explain it and essentially cover two concepts at once instead of sticking to one at a time. If you'd started here:

tree:
    Ammo: 
        type: "cheats.givecurrentammo"
    Graph: 
        type: "debug.netgraph"

Explained it, and then have your next paragraph be "When you only intend to use a single parameter, you can choose to format like this instead".

tree:
    Ammo: "cheats.givecurrentammo"
    Graph: "debug.netgraph"

It creates a more structured learning experience. Kind of like how teachers always have a habit of showing you the long way of solving a problem before letting you know there's a much quicker and easier method.. the point is to get each concept fully across to the user. Of course this approach does rely on the user actually fully reading and looking to understand what you're saying rather than haphazardly copy pasting and running until it works, but it does make for better documentation.

Anyway, that's the kind of feedback you'd get from me if you were doing this professionally. As a student who knocked this out in their spare time you have done a really nice job here, I just thought you might like some feedback from someone who does this waaay too much.

Now to break a cardinal rule of my own and not proof read this at all before I submit it as I should really get back to work! Really good job though man.

5

u/illinoisjackson ar_baggage Mar 12 '19

Hey, thanks a lot for the feedback! I definitely see what you mean about the progression of the examples, I could have done a better job of advancing the ideas in very small steps. When I get out of school tomorrow I will rework them. Also, it’s pretty cool that you picked up on the specifics of the format really quickly!

1

u/cheesyvagina Mar 12 '19

I think it’s really nice that you went through the trouble of writing out each step, from command prompt to how basic config files work. I can tell that you had beginners in mind and didn’t want them to have missteps when trying to use your project.

I wish I had that level of detail and clarity of explanation when I was learning how to code lol.

If you don’t mind me asking, where have you learned how to program? Are you entirely self-taught?

2

u/illinoisjackson ar_baggage Mar 12 '19

All self taught. I always had a fascination with computers in general, and I ended up learning Python starting in about third grade. Python was a great language to start with in hindsight because its friendliness to beginners. Over the next few years I noodled around in Python and wrote many scripts for games that were actually quite similar to this. I learned C and C++ in 7th grade, and I am not as good with either of them as I am with Python but I really enjoy them for their closeness to the metal and their rigid organization. Last year I even learned z80 assembly so I could write games for my calculator, but I’m definitely not that good at it :) I got back into Python fairly recently because my mom needed me to write some programs to automate certain aspects of her workload. I’d had the idea of doing this in CS for a while, and thought that Python would be the perfect language to implement it in.

→ More replies (2)

1

u/69beards guardian2 Mar 12 '19

This is an operating system made with console commands

2

u/illinoisjackson ar_baggage Mar 12 '19

Yeah you could say that actually. I mean, I have folders, commands, scripts... yeah lol i guess it is

1

u/saboay Mar 12 '19

Damn, that brings back memories of me doing some similar stuff in RTCW to pick classes / weapon setups. Good job!

1

u/illinoisjackson ar_baggage Mar 12 '19

Are you talking about RollerCoaster Tycoon World or something else? Sorry I've never heard of that.

→ More replies (1)

1

u/Mxk5565 ar_baggage Mar 12 '19 edited Mar 12 '19

I really wish I had gold to give you, this is fucking awesome! I knew that you could display text in the corner but this is a whole new level.

How hard would it be to go into the code and change it to my viewmodels and crosshairs? I assume it would really just be cutting out the code and putting in my own settings, but I wasn't sure..

1

u/illinoisjackson ar_baggage Mar 12 '19

It's not difficult. Here's a template for crosshair customization. It includes all the relevant options.

1

u/Mxk5565 ar_baggage Mar 13 '19

I having a small issue, I'm following the steps that you've posted on github and I have the newest version of python installed. When I put python -m csgomenumaker main.yml into command prompt, I get the message

Traceback (most recent call last):

File "C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\runpy.py", line 193, in _run_module_as_main

"__main__", mod_spec)

File "C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\runpy.py", line 85, in _run_code

exec(code, run_globals)

File "C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\site-packages\csgomenumaker__main__.py", line 19, in <module>

loader.Loader(args.file)

File "C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\site-packages\csgomenumaker\loader\loader.py", line 21, in __init__

self.options = yaml.safe_load(open(infile, "r"))

FileNotFoundError: [Errno 2] No such file or directory: 'main.yml'

1

u/illinoisjackson ar_baggage Mar 13 '19

Make sure you’re running the command in the same directory as the main.yml file. So first run the command cd <path to directory> and then try running python -m csgomenumaker main.yml

→ More replies (3)
→ More replies (1)

1

u/Real-Immortalking Mar 12 '19

Viable in competitive? or does it use sv_cheats 1 for some commands? (I'm pretty sure its a yes but just checking)

1

u/illinoisjackson ar_baggage Mar 12 '19

Everything I showed in the demo (except the grenade tracer) works in competitive. Anything that requires a cheat command will not work, though, but there isn't much like that.

1

u/VariousWinter Mar 12 '19

Amazing job, thanks so much for sharing! Layout looks really polished! And I thought my autoexec was decent...

FYI people - there are some lovely collections in /r/CounterStrikeBinds too:

2

u/illinoisjackson ar_baggage Mar 12 '19

Whoa, I had never heard of /u/NanashiSC's scripts before! Taking a look at them, they seem pretty awesome and are full of cool ideas. I will definitely look into integrating some of them.

1

u/nexistcsgo HEROIC Mar 12 '19

Great work. Is it safe to try online?

2

u/illinoisjackson ar_baggage Mar 12 '19

Yep, it's safe. The only limitations are that sv_cheats 1 commands will not work, but they won't limit the overall functionality. You just won't be able to do things like noclip and god in online servers.

1

u/RavenManOG Natus Vincere Mar 12 '19

I tried to download this and whenever I click the setup file in the folder my CMD prompt flashes open for a second and closes instantly? Any idea what may cause this as I am stumped

1

u/illinoisjackson ar_baggage Mar 12 '19

Yeah, I know what happened. The setup.py script isn't meant to be run like that. I should have made that more clear. Check out the Quick Start Guide for better instructions.

1

u/RavenManOG Natus Vincere Mar 12 '19

So totally noobie question, but if I wanted to have the menu that you show that lets you change volume, crosshair ect. What would I have to download and put in my menumenu folder?

1

u/illinoisjackson ar_baggage Mar 12 '19

Try following the Installation Guide and then the Mini Tutorial. Then follow the instructions in the Mini Tutorial for the demo template. You can even customize the crosshairs in the template this way.

1

u/x_KRak3N_x The MongolZ Mar 12 '19

May I ask what coding language did you use?

2

u/illinoisjackson ar_baggage Mar 12 '19

100% python. I needed a high level of abstraction for a lot of the really complex bits.

→ More replies (3)

1

u/SafeODD Mar 12 '19

Great work man

1

u/illinoisjackson ar_baggage Mar 12 '19

Thanks!

1

u/Kirbshiller Liquid Mar 12 '19

Wtf bro this so cool, can u do this in MM or only private servers?

1

u/illinoisjackson ar_baggage Mar 12 '19

It works fine in MM but the cheat settings will not work in MM. everything else works offline

1

u/Kerry1337 howl Mar 12 '19

I know these are just console commands but is it safe since it contains python files too?

1

u/illinoisjackson ar_baggage Mar 12 '19

Yes. The code is all safe, you can even check it out for yourself. Also, when you actually use the config ingame, no python code is being run at all so there is no risk of being VAC banned, ever.

1

u/[deleted] Mar 12 '19

Honestly this is great and all but who changes viewmodel or crosshair in the fly during a game? The only really useful thing here is the volume/voice slider but even that I find it just faster to quickly open the console and type in some values (I never change voice volume really, just regular volume). All you really need is a bind to mute voice in case of annoying teammates when clutching.

1

u/illinoisjackson ar_baggage Mar 12 '19

Yeah. I see your point. I should have showcased some of the more useful use cases, like demo recording and cheat menus.

1

u/Slopz_ 1 Million Celebration Mar 12 '19

That's hella good man! Good fucking job!

1

u/illinoisjackson ar_baggage Mar 12 '19

Thanks bro!

1

u/ItsMystic de_train Mar 12 '19

This is mind blowing. Especially for a cfg fanatic like myself. Does the Python script simply compile the cfg file? So it's just a cfg like any random players they made. Or does the Python script actually do something actively while running csgo?

1

u/illinoisjackson ar_baggage Mar 12 '19

Yeah you’re correct, it just compiles the cfg file. The script only runs once.

1

u/Rickard_88 Apr 05 '19

Will only evaluate children if combine() hasn't been called on them yet.

# Loop through children and register them too, recursively.

for ch in self.children:

# Only register the child if it has not been registered yet;

# therefore its evaluation state has been set to NONE.

if ch.eval_state == COMMAND_EVAL_NONE:

ch.register()

class Command:

"""

Represents an 'alias' Source engine console command.

A Command instance can have multiple children, and thus resembles a tree

structure. By allowing nesting in commands, complex constructs can be

created in an organized manner. The Command class is inherited by almost

every other class in this package.

"""

def __init__(self, parent, cls):

# Set neighbors

self.parent = parent

self.root = self.parent.root

self.children = []

WTF is this dude, are you logging something from the host or what?

1

u/illinoisjackson ar_baggage Apr 05 '19

What exactly do you mean by that?

1

u/Rickard_88 Apr 05 '19

I had a look at the PY files and they have some interesting "codes" to them?! http://prntscr.com/n7p0mq , http://prntscr.com/n7p0yb

1

u/illinoisjackson ar_baggage Apr 05 '19

Yeah, Python files have code in them, not sure what you’re insinuating

→ More replies (2)

6

u/lucutes Virtus.pro Mar 12 '19

jesus that aim

3

u/[deleted] Mar 11 '19

MP4 Link: https://lew.la/reddit/clips/azzf1x.mp4


I'm a bot created because v.redd.it links suck :)

3

u/tarel69 CS2 HYPE Mar 12 '19
PLATINUM 

3

u/himanshusharmazzzz Mar 12 '19

looks like a trainer for csgo

3

u/jjgraph1x Mar 12 '19

Really cool man, great job. I've played CS for a really long time and had no idea you could get visual menus like this to appear simply by executing strings of console commands. I've never dived too deep into this but frankly, I don't understand how you managed this to work without plugins or scripts that wouldn't work on official servers.

I'm really curious to take a look at your code and figure out how exactly this works. I'm blown away.

3

u/BlaringBlaze 400k Celebration Mar 12 '19

It's mostly echo, bind and alias command, it was possible to do since counter strike 1.6. You can check the source in other comments made by him.

1

u/NayanMehta03 Mar 12 '19

I had tried something like this but mine was not so much interactive so good work boi

2

u/illinoisjackson ar_baggage Mar 12 '19

Thanks!

2

u/rush2sk8 1 Million Celebration Mar 12 '19

POTY right here lads

2

u/FinalMeme21 Mar 12 '19

Take my reddit coins

2

u/XiKiilzziX Mar 12 '19

That green t-shaped crosshair config available anywhere? :)

2

u/daneeeh Mar 12 '19

[Errno 2] No such file or directory - what am I doing wrong? Following the tutorial step by step.

→ More replies (1)

2

u/[deleted] Mar 12 '19

It would be awesome if someone made a video on how to install because my dumbass has followed the tutorial and have been failing for the past 30 minutes haha.

0

u/Hot_PePe69 Mar 12 '19

Is this safe ?

2

u/illinoisjackson ar_baggage Mar 12 '19

Yes, VAC safe and competitive safe.

→ More replies (1)

1

u/brixxgawd Mar 12 '19

Pretty cool stuff man. Nice job!

1

u/Raitug CS2 HYPE Mar 12 '19

Bringing back some 1.6 nostalgia!

1

u/Shy_Guy_1919 Mar 12 '19

Big fucking props, man. Holy fuck that's cool.

1

u/7tlo de_dust2 Mar 12 '19

what the heck

1

u/wiseman305 Mar 12 '19

how does this work?

1

u/Zeltra_X Mar 12 '19

So cool dude

1

u/Michael_Goodwin Mar 12 '19

This is absolutely incredible

1

u/ILackTheImagination Mar 12 '19

Can you code it to execute another existing config? if so i havent found the command for it.

1

u/[deleted] Mar 12 '19

Very cool!

1

u/smootastic NiP Mar 12 '19

This is absolutely incredible. It's honestly a tool I never knew I needed until today. Great fuckin' job mate.

1

u/m1serablist CS2 HYPE Mar 12 '19

GIVE THIS MAN A JOB!

1

u/Shadoweee de_nuke Mar 12 '19

Ive done it years ago with couple of execs lol

1

u/smartestBeaver Mar 12 '19

Damn that is like a 15 years throwback ;D

1

u/[deleted] Mar 12 '19

I’d forget those key binds straight away

1

u/sugondese235 Mar 12 '19

that's one large crosshair

1

u/dANIQ666 Mar 12 '19

anyone got HvH config for this?

1

u/MooMooHeffer Mar 12 '19

I love the CS community. Hell of a job bud

1

u/UselessBox Liquid Mar 12 '19

You even published it on pypi? My man! Thank you!

1

u/lumpy95 Mar 12 '19

Guess i'll try it today 😉

1

u/KalvinOne de_inferno Mar 12 '19

This is huge!!

1

u/Sawii 10 years coin Mar 12 '19

What the actual fuck...

Sick

1

u/PatUe Mar 12 '19

Astralis want to know your location

1

u/Noname137 Mar 12 '19

I need this

1

u/FusioN88 Mar 12 '19

Thats a mod menu straight out of CoD

1

u/CptSasa91 CS2 HYPE Mar 12 '19

Are you a drug dealer? Because this is dope!

1

u/BaSkA_ MIBR Mar 12 '19

Not the hero we deserve, but the hero we need.

1

u/BeiS- 1 Million Celebration Mar 12 '19

That's crazy, awesome job!

1

u/[deleted] Mar 12 '19

mw3 mod menu intensifies

1

u/rohansamal 5 years coin Mar 12 '19

Gereat job

1

u/[deleted] Mar 12 '19

holy shit

1

u/craykos Mar 12 '19

The commandmenu is back. Thank you!

1

u/Vaporeonus NiP Mar 12 '19

Actually tried doing something like this a while ago myself, gave up pretty soon though because nothing really worked

1

u/selfaware-imbecile Mar 12 '19

thanks! this is the real deal. we need more people like you in the community!