func_tank_combine_cannon

From Source Entities
Jump to navigation Jump to search

Code classes:

func_tank_combine_cannon is a brush entity present in the Hl2.pngHalf-Life 2 series and P2.pngPortal 2. This entity forms the basis of the three-way Combine Autogun from Hl2.pngEpisode Two. It is operated by an npc_enemyfinder_combinecannon and fires a powerful beam of energy. In Half-Life 2, the shooting ability appears to not function. In Episode One, the gun can harm things, but the visual effects are somewhat different than in Episode Two. Does not work at all in P2.png. When controlled by a player, the gun appears to avoid firing at all if the shot would miss.

Inputs[edit | edit source]

DisableHarrass
Disables the cannon tracking an unseen player.
EnableHarrass
Allows the cannon to track a hiding player. Does so by default.

Outputs[edit | edit source]

OnShotAtPlayer
Fires when the player is shot. Does not fire if the cannon is aiming for something else and happens to hit the player. Bug: May fire when being controlled by a player. Make sure to not have the npc_enemyfinder_combinecannon hating the player while they try to use the gun.