func_tankmortar

From Source Entities
Jump to navigation Jump to search

Code classes:

func_tankmortar is a brush entity present in the Hl2.pngHalf-Life 2 series and P2.pngPortal 2. This is the Suppression Device on top of the Nexus Building from d3_c17_10a in the chapter "Follow Freeman!" of HL2. The shot will be fired at the exact spot the operator is looking, even if the gun cannot see that spot.

Note: This gun is coded to not fire when it has no operator.

Keyvalues[edit | edit source]

Shell travel time (firedelay) <string>
How long after the turret fires before the shell hits.
Firing start sound (firestartsound) <sound>
Sound to play when mortar begins firing.
Incoming Shell Sound (incomingsound) <sound>
Sound to play when about to hit.
Incoming warning time (warningtime) <float>
How long before the shell impacts to play Incoming Shell Sound.
Fire time variance (firevariance) <float>
Shots will randomly fire between this much sooner and this much later. Must be greater than 0.09, or code ignores it.
Explosion Magnitude (iMagnitude) <integer>
Does nothing.
Firing end sound (fireendsound) <sound>
Disabled in code.

Inputs[edit | edit source]

ShootGun (Not in FGD)
Forces the gun to shoot if it has an operator.
FireAtWill
Allows the gun to fire its next shot instantly, ignoring the refire time until the next shot. Useful for scripted scenes.