Half-Life 2

Half-Life 2

Not enough ratings
How to recreate HL2: Deathmatch SLAMs in Hammer
By MazdoTheWolf
This is a guide for those who would like to have Half-Life 2 Deathmatch SLAMs style in their maps.
   
Award
Favorite
Favorited
Unfavorite
Part 1: Getting the assets
If you don't know, Half-Life 2 does not have the models and textures of the SLAM (wow crazy), so we have to get them first.

First download GCFScape here: https://nemstools.github.io/

-Download Half-Life 2 Deathmatch.

-Go to the root folder of the game:



-Open hl2mp_pak_dir.vpk and take the model and textures of the SLAM.







-Now put them in a custom folder in the game you want to use them in, I want to use them in episode 2 so I'll put them in a folder in the custom folder in ep2. If you don't have a custom folder, create one.

Part 2: Hammer
Hammer time ! :3

-Place a prop_physics_override in your map and give it a name, I'll call it slam_model_01.
Also give it the model of the SLAM and give it a health value of 1.



-And check/uncheck those spawn flags:


-Now just in front of the slam model, create a small func_brush made out of nodraw.
Give it a name (slam_01_beam_end), disable its shadows and disable its collisions.


-Add an env_beam somewhere in your (put it near the slam so you don't risk forgetting where it is), give it a name (slam_laser_01), change its life value to 0, select the slam model as its start entity and the func_brush as its end entity. And change its touch type to players, npcs and physprops.


-Also don't forget to check "Start On" in the Spawnflags tab !


-Place an env_explosion and give it a name (slam_explosion_01).


-Now go back to your env_beam and in the outputs tab we will add 4 OnTouchedByEntity outputs:

- OnTouchedByEntity->slam_explosion_01->Explode
- OnTouchedByEntity->slam_laser_01->TurnOff
- OnTouchedByEntity->slam_model_01->Break
- OnTouchedByEntity->slam_01_beam_end->Kill


-Create a func_breakable around the slam model, and give it the prop data of Metal.Small, and the material type of Metal.


-In the outputs tab of the func_breakable, add: OnBreak->slam_model_01->Break


-Now select your slam model and add the following in the outputs tab:

-OnBreak->slam_explosion_01->Explode
-OnBreak->slam_laser_01->TurnOff

Part 3: The End
And that is all you need to do, feel free to ask questions in the comments.

You can find my Slam recreation on this map:: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3408834360