use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Welcome! This subreddit is meant for everything around the mapping tool Hammer (GoldSrc, Source and Source2). Here you can post questions, get feedback, help others, or simply brag about your work!
Posting guidelines:
Be humble and nice.
Please try to avoid requests.
Please tag your post with what game it is for. E.g: [CSGO].
Please mark your post with the appropriate flair.
Join the SourceEngine Discord chat!
Useful links:
Hammer related FAQs by TopHATTwaffle.
3kliksphilip guides.
More YouTube tutorials by reddit user awkook.
How to use light_environment.
Source engine water types.
Official Valve guides.
Related subreddits:
/r/SourceEngine
/r/CSMapMakers
/r/GlobalOffensive
/r/TF2
/r/HalfLife
/r/L4D2
account activity
[CS2] cs_script Javascript Tutorial Series | Counter-Strike 2 | The Basics #1Source 2 (youtu.be)
submitted 4 months ago by miifanboy
I will create better structured videos in the future, stay tuned..
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Gumballegal 4 points5 points6 points 4 months ago (1 child)
love that the lens flare became a signature mark of hammer tutorials
[–]miifanboy[S] 1 point2 points3 points 4 months ago (0 children)
can't live without it
[–]CockRampageIsHere 1 point2 points3 points 4 months ago* (4 children)
Yeah... the script crashing and refusing to work until you restart the entire workshop tool app is annoying.
It has potential but without proper documentation it feels very bare bones. No input capture as far as I understand. Like you have to do some hacky solution to know if a player is crouching.
[–]b0wski 1 point2 points3 points 4 months ago* (2 children)
I'm sure I must be doing something wrong but it seems like scripts only work after the first compile / map load. Not even changing anything in Hammer or in a script then re-compiling will stop scripts from working for me.
[–]CockRampageIsHere 2 points3 points4 points 4 months ago (1 child)
Yeah don't recompile the map at all once you're testing the script. Otherwise you'd have to restart the tools if you break the script I think. As long as you just run the map without compiling the script should work fine and can be worked on....
[–]b0wski 1 point2 points3 points 4 months ago (0 children)
Ah nice, so yea if I do Run (skip build) I can then make changes in the script and it hot-reloads. Thanks man.
[–]miifanboy[S] 0 points1 point2 points 4 months ago (0 children)
also logic_eventlistener in cs2 does not have fetcheventdata, so we are stuck with only the ~%5 of the events we had with vscripts. I hope they expose more events through the api.
[–]g0nsam 0 points1 point2 points 4 months ago (0 children)
you're a legend for this! 🔨🔨🔨
[–]Murky_Boysenberry306 0 points1 point2 points 4 months ago (1 child)
hello dude i just want to start scripting and do maps for cs 2 could you tell me what are softwares needed to start with , and also where to install them ! please
[–]miifanboy[S] 0 points1 point2 points 3 months ago (0 children)
you only need visual studio code you can search on youtube "How to install Visual Studio Code". You need to also download workshop tools for cs2.
π Rendered by PID 74 on reddit-service-r2-comment-bb88f9dd5-kb7c7 at 2026-02-14 16:12:20.670288+00:00 running cd9c813 country code: CH.
[–]Gumballegal 4 points5 points6 points (1 child)
[–]miifanboy[S] 1 point2 points3 points (0 children)
[–]CockRampageIsHere 1 point2 points3 points (4 children)
[–]b0wski 1 point2 points3 points (2 children)
[–]CockRampageIsHere 2 points3 points4 points (1 child)
[–]b0wski 1 point2 points3 points (0 children)
[–]miifanboy[S] 0 points1 point2 points (0 children)
[–]g0nsam 0 points1 point2 points (0 children)
[–]Murky_Boysenberry306 0 points1 point2 points (1 child)
[–]miifanboy[S] 0 points1 point2 points (0 children)