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

Bug:
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.) |
(-added class hierarchy, cleanup) |
||
Line 1: | Line 1: | ||
{{LanguageBar}} | |||
{{tabs|func_tank|goldsrc=1|source=1|main=source}} | {{tabs|func_tank|goldsrc=1|source=1|main=source}} | ||
{{ | {{CD|CFuncTankGun|file1=func_tank.cpp}} | ||
{{this is a|brush entity|game=Half-Life 2|game1=Portal|game2=Portal 2|game3=Counter-Strike: Global Offensive|game4=Black Mesa|game5=Half-Life: Source|name=func_tank}} {{also|{{hl2dm}}{{hldms}}}} | |||
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. | ||
Line 6: | Line 8: | ||
* In {{hl2dm|4.1}} and some other games, bullets from the func_tank won't fire. To fix this, turn off Smart Edit, add the "bullet" keyvalue then use 1-4 for its value depending on what ammotype you want. | * In {{hl2dm|4.1}} and some other games, bullets from the func_tank won't fire. To fix this, turn off Smart Edit, add the "bullet" keyvalue then use 1-4 for its value depending on what ammotype you want. | ||
* Can't shoot in {{Bms|4.1}}, on shoot cause {{code|ERROR: Undefined ammo type!}} error message in the console}} | * Can't shoot in {{Bms|4.1}}, on shoot cause {{code|ERROR: Undefined ammo type!}} error message in the console}} | ||
==Flags== | ==Flags== | ||
{{fl|256|Aiming Assistance (Player Only)}} | |||
{{fl|8192|Ignore range when making viewcone checks}} | |||
{{Fl BaseTank}} | {{Fl BaseTank}} | ||
==Keyvalues== | ==Keyvalues== | ||
{{KV Targetname}} | |||
{{KV BaseTank}} | {{KV BaseTank}} | ||
==Inputs== | ==Inputs== | ||
{{I BaseTank}} | {{I BaseTank}} | ||
==Outputs== | ==Outputs== | ||
{{O BaseTank}} | {{O BaseTank}} | ||
==External links== | ==External links== |
Revision as of 14:35, 26 July 2024


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

- In
Half-Life 2: Deathmatch and some other games, bullets from the func_tank won't fire. To fix this, turn off Smart Edit, add the "bullet" keyvalue then use 1-4 for its value depending on what ammotype you want.
- Can't shoot in
Black Mesa, on shoot cause ERROR: Undefined ammo type! error message in the console [todo tested in ?]
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
- editlife.net tutorial for player and npc turrets (Archived version retrieved on September 15, 2008)
Categories:
- Brush entities
- Half-Life 2 entities
- Half-Life 2 brush entities
- Portal entities
- Portal brush entities
- Portal 2 entities
- Portal 2 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