Cleanup is going to take awhile, so the site is back up but editing has been disabled.

Combine basegun

From HalfLife 2 Knowledge Base

Jump to: navigation, search

It takes a bit more effort to make a working Combine basegun (aka Combine turret) then just placing the right model on the map. This tutorial explains how to create those Combine baseguns that you've encountered throughout Half-Life 2. Read on if you would like to have a working one on your own map. Note that this only works on single-player HL2 maps, not deathmatch or CS:S maps.

Contents

Placing Models

Begin by creating a simple room with an info_player_start entity. Now, make a platform for the gun to sit on: place a [[prop_static] entity right where you want the gun and use "models/props_combine/combine_barricade_short01a.mdl" as your model. Create a prop_dynamic entity right above the shield — this will be our turret. Set "models/props_combine/bunker_gun01.mdl" as your model. Name it "im_the_gun" or whatever your heart might fancy. Your should now have something like this:

picture1.jpg

Player Trigger

A player-sized brush is used to operate the weapon. Create a trigger brush, around 32x32x72 units in size. Place it behind the Combine shield, right next to the back end of the gun. Name the entity "gun_control":

picture3.jpg

Gun Trigger

A special brush is used to configure gun's functionality. Create a small box with the trigger or nodraw texture. Set height to 4, width to 4, and length to 22. Name it "im_the_barrel". Location of this brush apparently does not matter, but under the barrel seems like a perfect place for it:

picture2.jpg

Settings

Go to properties of "im_the_barrel" and set its class to be func_tank. For our example, set the option values as follows:


Properties:
Name: "im_the_barrel"
Control Volume: "gun_control"
Yaw Rate: 200
Yaw Range: 60
Yaw Tolerance: 15
Pitch Rate: 120
Pitch Range: 60
Pitch Tolerance: 15
Barrel Length: 31
Barrel Horizontal: 8
Flash Sprite: "materials/sprites/ar2_muzzle1.vmt"
Rate of Fire: 26
Damage Per Bullet: 20
Damage Per Bullet Vs player: 5
Bullet Accuracy: Small Cone
Maximum target range: 2048
Gun Base Attachment: aimrotation
Gun Barrel Attachment: muzzle
Gun Yaw Pose Param: aim_yaw
Gun Pitch Pose Param: aim_pitch
Gun Pitch Pose Center: 7.5
Effect Handling: AR2
Bullets: AR2
Flags:
Controllable Checked

The names of most options are pretty much self-explanatory; feel free to experiment with things like rate of fire and effect handling. For more information about various options, see func_tank.

Final Product

This is what we end up with: a working, perfectly animated working gun. Try it: press Use, aim and fire!

combine_gun.jpg

You can also download the map file used in this example (.vmf) (right click > Save as...). Enjoy! Remember to visit www.taz00.com for more tutorials.

Additional info by Enotirab & MatveiMS.

Personal tools