www.editlife.net used to have a tutorial on making npc and player usable turrets, which you can read in the Internet Archive [http://web.archive.org/web/20080915061515/http://www.editlife.net/tutorial.php?tutid=42 here].

The tank must be aiming right on the player for this amount of time before it's allowed to fire.

Effect Handling (effecthandling) <choices>

Produce these sound and particle effects when firing.

0: Use Individual Settings.

1: AR2

2: Combine Cannon

Bullet type <choices>

Obsolete. If you are mapping for HL2, and don't see this keyvalue, it's probably because you updated hammer for Episode 1. Simply add in a keyvalue named "bullet" without SmartEdit. This keyvalue must be used with HL2. This is also the case for Portal 2.

Literal value

Description

0

None

1

Pistol

2

SMG1

3

AR2

4

Laser

Ammo type <choices>

Ammo type. Cannot be used with HL2 or Portal 2 (see above).

Value

Description

None

Pistol

Pistol

SMG1

SMG1

AR2

AR2

CombineHeavyCannon

Combine Heavy Cannon

Flags

BaseTank:

1: Active

16: Only Direct: The tank will only fire if it's target is in direct line of sight.