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.
MyGamepedia (talk | contribs) No edit summary |
MyGamepedia (talk | contribs) (Not tested by me in CSS, but also should work.) |
||
| Line 33: | Line 33: | ||
] | ] | ||
]</source> }} }} }} | ]</source> }} }} }} | ||
{{bug|If a player controls this entity (or or a heir entity class) and switch team to spectators, the player will still be able to rotate the gun, but with no ability to fire from it or dismount the entity. | |||
{{todo|Does it block other players from controlling the entity ?}} | |||
|tested={{hl2dm}},{{bms}}}} | |||
==Flags== | ==Flags== | ||
Revision as of 03:31, 30 October 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.
parentnameortarget).
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