func_tank_combine_cannon
Jump to navigation
Jump to search
Code classes:
CFuncTankCombineCannon
CFuncTank
CBaseEntity
(all ents)
func_tank_combine_cannon
is a brush entity present in the Half-Life 2 series and
Portal 2. This entity forms the basis of the three-way Combine Autogun from
Episode 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 . 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.