Func tanklaser: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
Note:If no env_laser used - entity will self remove on spawn with 
Note:For Keyvalues and Inputs affecting brush rendering, see Brush entity/Rendering related keyvalues and inputs
		
	
 (updates)  | 
				 (-added class hierarchy, cleanup)  | 
				||
| (9 intermediate revisions by 6 users not shown) | |||
| Line 1: | Line 1: | ||
{{  | {{LanguageBar}}  | ||
{{tabs|func_tanklaser|goldsrc=1|source=1|main=source}}  | |||
{{CD|CFuncTankLaser|file1=func_tank.cpp}}  | |||
{{toc-right}}  | |||
[[File:Func tanklaser.png|400px|thumb|right]]  | [[File:Func tanklaser.png|400px|thumb|right]]  | ||
{{  | {{this is a|brush entity|game1=Portal|game2=Portal 2|game3=Counter-Strike: Global Offensive|game4=Black Mesa|name=func_tanklaser|game=Half-Life 2}} It functions as a laser turret. Does not function quite the same as other {{ent|func_tank}}-based entities. Use {{ent|func_tankpulselaser}} for controllable turrets.  | ||
{{note|If no [[env_laser]] used - entity will self remove on spawn with <code>Laser tank with no env_laser!</code> error massege in the console.}}  | |||
==Flags==  | ==Flags==  | ||
| Line 7: | Line 12: | ||
==Keyvalues==  | ==Keyvalues==  | ||
{{KV|env_laser Entity   | {{Brush rendering note}}  | ||
{{KV Targetname}}  | |||
{{KV|env_laser Entity|intn=laserentity|target_destination|An {{ent|env_laser}}, used for defining properties of the laser that emits from the gun. The location of this entity will not matter.}}  | |||
{{KV BaseTank}}  | {{KV BaseTank}}  | ||
==Inputs==  | ==Inputs==  | ||
{{I BaseTank}}  | {{I BaseTank}}  | ||
==Outputs==  | ==Outputs==  | ||
{{O BaseTank}}  | {{O BaseTank}}  | ||
[[Category:Immobile NPCs]]  | [[Category:Immobile NPCs]]  | ||
Latest revision as of 01:26, 3 September 2024
| CFuncTankLaser | 
func_tanklaser  is a   brush entity  available in 
 Half-Life 2, 
 Portal, 
 Portal 2, 
 Counter-Strike: Global Offensive, and 
 Black Mesa. It functions as a laser turret. Does not function quite the same as other func_tank-based entities. Use func_tankpulselaser for controllable turrets.
Laser tank with no env_laser! error massege in the console.Flags
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  | 
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 
- env_laser Entity (laserentity) <targetname>
 - An env_laser, used for defining properties of the laser that emits from the gun. The location of this entity will not matter.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  | 
Inputs
 
 
 
 
 
 
 
 
 
 
 
 
 
  | 
Outputs
 
 
 
 
 
 
 
 
  | 
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
 - Rendered brush entities
 - Pages with uncategorized bugs
 - Immobile NPCs