Func tank: Difference between revisions
Jump to navigation
Jump to search

Bug:Doesn't create bullets or projectiles in
Black Mesa even if used one of the weapons ammo types or from item_ammo_crate list, although it still can waste the ammo and fire inputs and outputs.
Warning:Brushes with the
If the brush is a few units away from the gun, the model used will pitch up or down in an attempt to "avoid" the block_los.
Bug:In
Half-Life 2 series,
Half-Life 2: Deathmatch, and some other games, bullets from the func_tank won't fire. Therefore it won't be able to deal any damage.
Fix:Quickfix: Turn off Smart Edit, add the "bullet" keyvalue then use 1-4 for its value depending on what ammotype you want.
(→External links: - added additional tutorial link.) |
MyGamepedia (talk | contribs) No edit summary |
||
Line 5: | Line 5: | ||
It simulates a gun turret that can aim and shoot things. Make sure '''Control Volume''' is set, as it's required. | It simulates a gun turret that can aim and shoot things. Make sure '''Control Volume''' is set, as it's required. | ||
{{bug|hidetested=1| | {{bug|hidetested=1|Doesn't create bullets or projectiles in {{Bms|4}} even if used one of the weapons ammo types or from {{ent|item_ammo_crate}} list, although it still can waste the ammo and fire inputs and outputs.}} | ||
{{warning|Brushes with the <code>tools/toolsblock_los.vmt</code> texture have an effect on func_tank, even if used by the player! If the block_los is right in front of the func_tank, the gun refuses to aim straight ahead.<br>If the brush is a few units away from the gun, the model used will pitch up or down in an attempt to "avoid" the block_los.}} | {{warning|Brushes with the <code>tools/toolsblock_los.vmt</code> texture have an effect on func_tank, even if used by the player! If the block_los is right in front of the func_tank, the gun refuses to aim straight ahead.<br>If the brush is a few units away from the gun, the model used will pitch up or down in an attempt to "avoid" the block_los.}} |
Latest revision as of 01:33, 28 July 2025


![]() |
---|
CFuncTankGun |
![]() |
func_tank
is a brush entity available in Half-Life 2 series,
Portal series,
Counter-Strike: Global Offensive,
Black Mesa, and
Half-Life: Source.
It simulates a gun turret that can aim and shoot things. Make sure Control Volume is set, as it's required.



tools/toolsblock_los.vmt
texture have an effect on func_tank, even if used by the player! If the block_los is right in front of the func_tank, the gun refuses to aim straight ahead.If the brush is a few units away from the gun, the model used will pitch up or down in an attempt to "avoid" the block_los.




Open @SolidClass base(BaseTank) = func_tank : "Brush Gun Turret"
[
bullet(choices) : "Bullets" : 0 =
[
0: "None"
1: "Pistol"
2: "SMG1"
3: "AR2"
4: "Laser"
]
spawnflags(flags) =
[
8192: "Ignore range when making viewcone checks" : 0
256 : "Aiming Assistance (Player Only)" : 0
]
] |
Flags
- Aiming Assistance (Player Only) : [256]
- Ignore range when making viewcone checks : [8192]
|
Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
|
Inputs
|
Outputs
|
External links
- Mounted Machine Gun tutorial - Interlopers.net
- editlife.net tutorial for player and npc turrets (Archived version retrieved on September 15, 2008)
Categories:
- Brush entities
- Half-Life 2 series entities
- Half-Life 2 series brush entities
- Portal series entities
- Portal series brush entities
- Counter-Strike: Global Offensive entities
- Counter-Strike: Global Offensive brush entities
- Black Mesa entities
- Black Mesa brush entities
- Half-Life: Source entities
- Half-Life: Source brush entities
- Pages with uncategorized bugs
- Immobile NPCs