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

Bug: In
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. [todo tested in ?]
Note:Archived page history
Important:These pages are linked often from page history logs so Special:WhatLinksHere will not show anything.
m (Updated old entity format to {{this is a}}. This action was perfomed by a bot under supervision.) |
(hmmm) |
||
Line 1: | Line 1: | ||
{{lang|Func tank}}{{this is a|e2| | {{lang|Func tank}}{{this is a|e2|game=Half-Life 2|game1=Portal|game2=Portal 2|game3=Counter-Strike: Global Offensive|name=func_tank}} It simulates a gun turret that can aim and shoot things. Make sure '''Control Volume''' is set, as it's required. | ||
{{bug| In {{hl2dm}} 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.}} | {{bug| In {{hl2dm}} 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.}} | ||
{{code class|CFuncTankGun|func_tank.cpp}} | {{code class|CFuncTankGun|func_tank.cpp}} |
Revision as of 05:20, 7 January 2024


func_tank
is an e2 available in Half-Life 2,
Portal,
Portal 2, and
Counter-Strike: Global Offensive. It simulates a gun turret that can aim and shoot things. Make sure Control Volume is set, as it's required.


Flags
- 256: Aiming Assistance (Player Only)
- 8192: Ignore range when making viewcone checks
|
Keyvalues
|

This template (and its redirect) is
Deprecated. Its use is not recommended and its functionality may be compromised.
Please use {{Brush rendering note}} instead.
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.

Please use {{Brush rendering note}} instead.
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.


Inputs
|
- SetDamageFilter <targetname >
- Sets a filter for this entity for when it receives damage.
- EnableDamageForces
- Allows the entity to be pushed by damage done to it (usually force amount correlates with the damage done).
- DisableDamageForces
- Prevents the entity from being pushed by damage done to it.
Todo: move/mention at proper place
Outputs
|
External links
- editlife.net tutorial for player and npc turrets (Archived version retrieved on September 15, 2008)