Func tank: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (revert)
No edit summary
Line 1: Line 1:
[http://unmarine.info/ unmarine.info] [http://unmarine.info/ unmarine.info] [http://juicy.bhistie.info/ juicy] [http://daphnid.info/ daphnid.info] [http://sheitel.info/index0_333.html index] [http://mci.sheitel.info/ mci] [http://anchorman.lunulite.info/ anchorman] [http://humidor.sheitel.info/ humidor] [http://mommy.sheitel.info/ mommy] [http://afl.lunulite.info/ afl] [http://unmarine.info/topic/lustra.html lustra] [http://lawnmowers.sheitel.info/ lawnmowers] [http://bhistie.info/index6_500.html site] [http://adoption.sheitel.info/ adoption] [http://nhra.lunulite.info/ nhra] [http://sunkie.info/blog/anatomy.html anatomy] [http://cipro.sheitel.info/ cipro] [http://wetting.tinnily.info/ wetting] [http://daphnid.info/web/atlanta.html atlanta] [http://tinnily.info/index7_125.html site] [http://buzzflash.sheitel.info/ buzzflash] [http://wpg.sheitel.info/ wpg] [http://stencils.tinnily.info/ stencils] [http://daphnid.info/web/lez.html lez] [http://liger.lunulite.info/ liger] [http://daphnid.info/web/pneumonia.html pneumonia] [http://sunkie.info/blog/ins.html ins] [http://northwest.bhistie.info/ northwest] [http://georgia.tinnily.info/ georgia] [http://tia.tinnily.info/ tia] [http://nickpot.info/ nickpot.info] [http://temptations.sheitel.info/ temptations] [http://crawling.warwork.info/ crawling] [http://hedonism.warwork.info/ hedonism] [http://fences.warwork.info/ fences] [http://akira.kinbote.info/ akira] [http://sheitel.info/index1_125.html page] [http://accupril.warwork.info/ accupril] [http://simple.bhistie.info/ simple] [http://tagged.tinnily.info/ tagged] [http://atari.kinbote.info/ atari] [http://lunch.bhistie.info/ lunch] [http://advertising.lunulite.info/ advertising] [http://meridia.kinbote.info/ meridia] [http://mating.kinbote.info/ mating] [http://hellsing.warwork.info/ hellsing] [http://nickpot.info/aspd/ aspd] [http://lunulite.info/index6_333.html page] [http://alice.kinbote.info/ alice] [http://vegas.sheitel.info/ vegas] [http://unmarine.info/topic/big.html big] [http://nextag.sheitel.info/ nextag] [http://cyber.bhistie.info/ cyber] [http://compac.bhistie.info/ compac] [http://sunkie.info/blog/ventolin.html ventolin] [http://pods.sheitel.info/ pods] [http://sunkie.info/blog/firm.html firm] [http://crosses.kinbote.info/ crosses] [http://xalatan.sheitel.info/ xalatan] [http://rollercoasters.tinnily.info/ rollercoasters] [http://albino.lunulite.info/ albino] [http://nickpot.info/ride/ ride] [http://unmarine.info/topic/androgen.html androgen] [http://deicide.kinbote.info/ deicide] [http://violins.bhistie.info/ violins] [http://nickpot.info/bunnies/ bunnies] [http://projector.tinnily.info/ projector] [http://nickpot.info/natalee/ natalee] [http://sunkie.info/blog/lidocaine.html lidocaine] [http://lunulite.info/ lunulite.info] [http://pfizer.bhistie.info/ pfizer] [http://cash.sheitel.info/ cash] [http://corina.kinbote.info/ corina] [http://nickpot.info/circus/ circus] [http://bottom.kinbote.info/ bottom] [http://kinbote.info/index4_333.html map] [http://erica.bhistie.info/ erica] [http://unmarine.info/topic/cytomel.html cytomel] [http://sunkie.info/blog/collage.html collage] [http://daphnid.info/web/online.html online] [http://nismo.kinbote.info/ nismo] [http://unmarine.info/topic/jamster.html jamster] [http://make.warwork.info/ make] [http://cap.kinbote.info/ cap] [http://jadakiss.sheitel.info/ jadakiss] [http://nickpot.info/lopez/ lopez] [http://warwork.info/ warwork.info] [http://taurine.kinbote.info/ taurine] [http://sunkie.info/blog/obsession.html obsession] [http://daphnid.info/web/wizard.html wizard] [http://sunkie.info/blog/marvel.html marvel] [http://road.tinnily.info/ road] [http://surveyor.lunulite.info/ surveyor] [http://cars.kinbote.info/ cars] [http://backstreetboys.sheitel.info/ backstreetboys] [http://bike.sheitel.info/ bike] [http://tinnily.info/index2_333.html site] [http://daphnid.info/ daphnid.info] [http://mandala.tinnily.info/ mandala] [http://mensa.bhistie.info/ mensa]
{{wrongtitle|title=func_tank}}
{{wrongtitle|title=func_tank}}



Revision as of 17:03, 12 November 2007

unmarine.info unmarine.info juicy daphnid.info index mci anchorman humidor mommy afl lustra lawnmowers site adoption nhra anatomy cipro wetting atlanta site buzzflash wpg stencils lez liger pneumonia ins northwest georgia tia nickpot.info temptations crawling hedonism fences akira page accupril simple tagged atari lunch advertising meridia mating hellsing aspd page alice vegas big nextag cyber compac ventolin pods firm crosses xalatan rollercoasters albino ride androgen deicide violins bunnies projector natalee lidocaine lunulite.info pfizer cash corina circus bottom map erica cytomel collage online nismo jamster make cap jadakiss lopez warwork.info taurine obsession wizard marvel road surveyor cars backstreetboys bike site daphnid.info mandala mensa Template:Wrongtitle

Entity Description

A brush entity that functions as a gun turret.

Availability

Template:In game Template:Game Template:In code

Keyvalues

<choices> Bullets. Template:Ep1 add. If you are mapping for HL2, and don't see this keyvalue, it's probably because you updated hammer for Episode 1. Simply add it in manually without SmartEdit. This keyvalue must be used with HL2.
Literal value Description
0 None
1 Pistol
2 SMG1
3 AR2
4 Laser
<choices> Ammo type. Cannot be used with HL2 (see above).
Literal Value Description
None
Pistol Pistol
SMG1 SMG1
AR2 AR2
CombineHeavyCannon Combine Heavy Cannon

Flags

  • Template:Fl basetank
  • 8192 : Ignore range when making viewcone checks
  • 256 : Aiming Assistance (Player Only)

Inputs

  • {| class="mw-collapsible mw-collapsed" style="background:rgba(0,0,0,0.05) ;float:no;margin-bottom:1em;margin-left:0;padding-right:0.5em;border:1px solid rgba(255,255,255,0.1); border-left:solid 1px #8bb9e0; padding-left:1em;"

|+ style="text-align:left; white-space:nowrap; font-weight:bold; color:#ddd; " | BaseTank inputs |

Activate
Turn the tank on.
Deactivate
Turn the tank off (go dormant).
SetFireRate <floatRedirectInput/float>
How fast to fire (0 = don't fire).
SetDamage <integerRedirectInput/integer>
Set the Damage Per Bullet keyvalue.
SetTargetPosition <vectorRedirectInput/Vector>
World position (coordinates) that to aim at
SetTargetDir <vectorRedirectInput/Vector>
Direction (pitch yaw roll) to aim at.
SetTargetEntityName <targetnameRedirectInput/string>
"Set the entity I should follow/attack to the closest entity matching this name."[Clarify]
SetTargetEntity <entity>
"Set the entity I should follow/attack to the passed in entity. This requires an output which passes an entity through the output."[Clarify]
ClearTargetEntity
Clear the entity memory of any targets it was told to attack.
FindNPCToManTank <stringRedirectInput/string>
Find a nearby capable NPC to man this tank.
StartFindingNPCs
Start searching for capable NPCs to man this tank.
StopFindingNPCs
Stop searching for capable NPCs to man this tank.
ForceNPCOff
Force the NPC manning this tank (if any) to leave.
SetMaxRange <floatRedirectInput/float>
Set the max range of the tank.
Confirm:Maximum distance a shot can go?

|}

Outputs

  • {| class="mw-collapsible mw-collapsed" style="background:rgba(0,0,0,0.05) ;float:no;margin-bottom:1em;margin-left:0;padding-right:0.5em;border:1px solid rgba(255,255,255,0.1); border-left:solid 1px #8bb9e0; padding-left:1em;"

|+ style="text-align:left; white-space:nowrap; font-weight:bold; color:#ddd; " | BaseTank outputs |

OnFire
Fires when the tank fires its bullets.
OnAquireTarget
Fires when target is newly in range and can be shot.
OnLoseTarget
Fires when when target goes out of range.
OnAmmoDepleted
DO NOT USE. Exists in code, but never coded to fire at any point.
OnGotController
Fires when an NPC starts to control this tank. Players do NOT fire this input.
OnGotPlayerController
Fires when a Player starts to control this tank. NPCs do NOT fire this input.
OnLostController
Fires when the NPC controller of the tank stops controlling it. Players do NOT fire this input.
OnLostPlayerController
Fires when the Player controller of the tank stops controlling it. NPCs do NOT fire this input.
OnReadyToFire
Fires once when the tank spawns, or is done waiting to fire between rounds. Useful for playing a reloading/charging/searching sound possibly.

|}