Func tank: Difference between revisions
Jump to navigation
Jump to search
(Gave the proper name for Bullet type) |
(Put back the tutorial link) |
||
Line 5: | Line 5: | ||
{{in code|class=class_c_func_tank.html CFuncTank|file=func__tank_8cpp-source.html hl2_dll\func_tank.cpp}} | {{in code|class=class_c_func_tank.html CFuncTank|file=func__tank_8cpp-source.html hl2_dll\func_tank.cpp}} | ||
www.editlife.net used to have a tutorial on making npc and player usable turrets, which you can read in the Internet Archive [http://web.archive.org/web/20080915061515/http://www.editlife.net/tutorial.php?tutid=42 here]. | |||
== Keyvalues == | == Keyvalues == |
Revision as of 09:00, 18 July 2013
Entity description
A brush entity that functions as a gun turret.
www.editlife.net used to have a tutorial on making npc and player usable turrets, which you can read in the Internet Archive here.
Keyvalues
|
- Bullet type ([todo internal name (i)]) <choices>
- Obsolete. If you are mapping for HL2, and don't see this keyvalue, it's probably because you updated hammer for Episode 1. Simply add in a keyvalue named "bullet" without SmartEdit. This keyvalue must be used with HL2. This is also the case for Portal 2.
Literal value Description 0 None 1 Pistol 2 SMG1 3 AR2 4 Laser
- Ammo type ([todo internal name (i)]) <choices>
- Ammo type. Cannot be used with HL2 or Portal 2 (see above).
Value Description None Pistol
Pistol SMG1
SMG1 AR2
AR2 CombineHeavyCannon
Combine Heavy Cannon
Flags
|
- 8192 : Ignore range when making viewcone checks
- 256 : Aiming Assistance (Player Only)
Inputs
|
Outputs
|