Mr Neutron
Newbie
- Joined
- Sep 3, 2003
- Messages
- 484
- Reaction score
- 0
It may puzzle some people how to quickly use hammer and hl2 at the same time. Some things to know:
1. When running hl2 from hammer (via the run command), you are starting an instance of hl2 with its own settings. Myself, I run windows at 1280 and have the hammer instance of hl2 run at 1024 in a window.
2. When your map is loaded in hl2, you can copy, move, delete, overwrite, or otherwise molest the .bsp file! This means you can have your map loaded in game, use alt-tab to switch out of hl2, recompile in hammer*, switch back, then 'restart' from console to see the map with the changes. It sure beats quiting HL2 and waiting for it to start again.
*WHEN HL2 IS ALREADY RUNNING, make sure to check 'do not run the game after compiling'. Otherwise you'll get an error.
This works so well, I set up some binds. From the console, type:
bind h "restart"
bind j "impulse 101"
bind k "god"
bind l "noclip"
Now, when you switch back from hammer, you'll be able to restart a map just by tapping 'h', then get your weapons (or refill them) by tapping 'j'.
3. Also remember the emminently useful options to limit the compile that hammer does. In particular, turning off everything but 'only entities' makes adjusting (non-light) entities much faster when your maps start getting complex.
1. When running hl2 from hammer (via the run command), you are starting an instance of hl2 with its own settings. Myself, I run windows at 1280 and have the hammer instance of hl2 run at 1024 in a window.
2. When your map is loaded in hl2, you can copy, move, delete, overwrite, or otherwise molest the .bsp file! This means you can have your map loaded in game, use alt-tab to switch out of hl2, recompile in hammer*, switch back, then 'restart' from console to see the map with the changes. It sure beats quiting HL2 and waiting for it to start again.
*WHEN HL2 IS ALREADY RUNNING, make sure to check 'do not run the game after compiling'. Otherwise you'll get an error.
This works so well, I set up some binds. From the console, type:
bind h "restart"
bind j "impulse 101"
bind k "god"
bind l "noclip"
Now, when you switch back from hammer, you'll be able to restart a map just by tapping 'h', then get your weapons (or refill them) by tapping 'j'.
3. Also remember the emminently useful options to limit the compile that hammer does. In particular, turning off everything but 'only entities' makes adjusting (non-light) entities much faster when your maps start getting complex.