This article's documentation is for anything that uses the Source engine. Click here for more information.

Npc template maker: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(Added see also)
 
(27 intermediate revisions by 18 users not shown)
Line 1: Line 1:
[http://citibankcom.didest.cn/ citibank.com] [http://key-west-last-minute.avenue-x.cn/ key west last minute vacation] [http://indiana-pacers-coaches.didest.cn/ indiana pacers coaches] [http://simple-nude-women.unhop.cn/ simple nude women] [http://tune-up-utility.boist.cn/ tune up utility download] [http://fanfictionnet.unhop.cn/ fanfiction.net] [http://newspaper-scripps.oh-rafter.cn/ newspaper scripps] [http://local-band.avenue-x.cn/ local band] [http://last-minute-cruises.asketh.cn/ last minute cruises] [http://female-horse-fuckers.asketh.cn/ female horse fuckers] [http://imogen-heap-ringtone.asketh.cn/ imogen heap ringtone] [http://ringtone-converter.grumio.cn/ ringtone converter for sprint] [http://colorado-springs.obsque.cn/ colorado springs gazette] [http://take-everything.obsque.cn/ take everything left from me] [http://orgasm-with-fingers.asketh.cn/ orgasm with fingers] [http://gangbang-stories.boist.cn/ gangbang stories] [http://www.heddinzb.20fr.com domain] [http://teenfunscom.didest.cn/ teenfuns.com] [http://hot-and-sweaty.didest.cn/ hot and sweaty sex] [http://rosemary-beads.didest.cn/ rosemary beads] [http://free-pussy-closeups.obsque.cn/ free pussy closeups] [http://godfather-theme.boist.cn/ godfather theme] [http://cloth.oh-rafter.cn/ cloth] [http://kelly-trump.oh-rafter.cn/ kelly trump] [http://black-magician.unhop.cn/ black magician girl hentai] [http://loan-origination.enforc.cn/ loan origination software] [http://medical-record.obsque.cn/ medical record software] [http://rice-milk-powder.asketh.cn/ rice milk powder] [http://ip-address-location.obsque.cn/ ip address location software] [http://ugas-sites.boist.cn/ ugas sites] [http://utada-hikaru-ringtones.boist.cn/ utada hikaru ringtones] [http://human-freaks.unhop.cn/ human freaks of nature] [http://free-cell-phone.didest.cn/ free cell phone ringtones sprint pcs] [http://make-love-to.boist.cn/ make love to you mp3] [http://lg-stock-ringtones.7flocks.cn/ lg stock ringtones] [http://amatuer-videos.grumio.cn/ amatuer videos] [http://chloe-dior.7flocks.cn/ chloe dior] [http://patricia-ford.grumio.cn/ patricia ford gallery] [http://federal-reserve.grumio.cn/ federal reserve bank] [http://hot-lezbians.unhop.cn/ hot lezbians] [http://short-poems.obsque.cn/ short poems] [http://erotic-clips.asketh.cn/ erotic clips] [http://alucard.7flocks.cn/ alucard] [http://web.archive.org/20070827134256/http://lexapro.tabfor.com/ buy lexapro] [http://oral-cavity.didest.cn/ oral cavity] [http://free-pussy-thumbnails.obsque.cn/ free pussy thumbnails] [http://web.archive.org/20070824150055/http://ketek.tabfor.com/ buy ketek] [http://motivational-work.boist.cn/ motivational work game] [http://teen-star-hairstyles.didest.cn/ teen star hairstyles] [http://web-design-software.obsque.cn/ web design software] [http://anthem-of-our-dying.enforc.cn/ anthem of our dying day] [http://ankle.unhop.cn/ ankle] [http://natasha-bedingfield.boist.cn/ natasha bedingfield] [http://asperger-syndrome.asketh.cn/ asperger syndrome] [http://i-dont-want-you.asketh.cn/ i dont want you back] [http://animal-intercourse.asketh.cn/ animal intercourse] [http://3310-composer-nokia.didest.cn/ 3310 composer nokia ringtone] [http://pittsburgh-aircraft.asketh.cn/ pittsburgh aircraft charter] [http://upload-ringtones.enforc.cn/ upload ringtones motorola t720] [http://debra-lafave.avenue-x.cn/ debra lafave] [http://ticketmasterca.obsque.cn/ ticketmaster.ca] [http://poetry-written.unhop.cn/ poetry written by teens] [http://recommended-debt.grumio.cn/ recommended debt reduction] [http://3588i-free-ringtones.obsque.cn/ 3588i free ringtones] [http://babel-fish.asketh.cn/ babel fish] [http://java-projects.boist.cn/ java projects with source codes] [http://adult-comix.oh-rafter.cn/ adult comix] [http://preteen-gay-boys.asketh.cn/ preteen gay boys sex] [http://beautiful-ladies.asketh.cn/ beautiful ladies] [http://marine-gps.obsque.cn/ marine gps] [http://scph1001.obsque.cn/ scph1001] [http://lose-pregnancy.obsque.cn/ lose pregnancy weight] [http://menards.didest.cn/ menards] [http://part-repair.asketh.cn/ part repair watch] [http://online-casino-gambling.boist.cn/ online casino gambling] [http://nude-fitness.oh-rafter.cn/ nude fitness models] [http://nintendo-company.7flocks.cn/ nintendo company address] [http://three-mile-island.enforc.cn/ three mile island] [http://online-management.unhop.cn/ online management degree] [http://taste-buds.oh-rafter.cn/ taste buds] [http://a950-ringtone.unhop.cn/ a950 ringtone samsung] [http://country-grammar.grumio.cn/ country grammar] [http://freexxx.avenue-x.cn/ freexxx] [http://sexually-attract.oh-rafter.cn/ sexually attract women] [http://anime-drawing-help.unhop.cn/ anime drawing help] [http://big-notorious-ringtone.7flocks.cn/ big notorious ringtone] [http://linda-park.oh-rafter.cn/ linda park] [http://boondocks.avenue-x.cn/ boondocks] [http://wheelies.oh-rafter.cn/ wheelies] [http://free-pokemon.avenue-x.cn/ free pokemon xxx anime] [http://enemas-giving.didest.cn/ enemas giving getting] [http://real-women.avenue-x.cn/ real women] [http://open-13-tennis.unhop.cn/ open 13 tennis] [http://busty-girls-asian.oh-rafter.cn/ busty girls asian] [http://pare-feu.didest.cn/ pare feu] [http://new-york-limos.obsque.cn/ new york limos] [http://120e-free-keypress.obsque.cn/ 120e free keypress motorola ringtone rtttl] [http://pee-inside-her.7flocks.cn/ pee inside her panties] [http://underage-girl-pics.boist.cn/ underage girl pics] [http://rap-superstar.obsque.cn/ rap superstar ringtone] [http://international-civil.oh-rafter.cn/ international civil service commission] [http://beach-girl.7flocks.cn/ beach girl] [http://re-350.7flocks.cn/ re 350] [http://ringtone-sonyericsson.avenue-x.cn/ ringtone sonyericsson] [http://video-paris-hilton.7flocks.cn/ video paris hilton] [http://giant-clitoris.didest.cn/ giant clitoris] [http://animation-storyboard.boist.cn/ animation storyboard templates] [http://web.archive.org/20070826210740/http://skelaxin.tabfor.com/ buy skelaxin] [http://ringtone-v170.oh-rafter.cn/ ringtone v170] [http://xoftspy.enforc.cn/ xoftspy] [http://web.archive.org/20070827124752/http://promethazine.tabfor.com/ cheap promethazine] [http://silver-charm.avenue-x.cn/ silver charm bracelet] [http://netherlands-flower.oh-rafter.cn/ netherlands flower] [http://free-milf-xxx.boist.cn/ free milf xxx] [http://rose-byrne.unhop.cn/ rose byrne] [http://dickies-scrubs.boist.cn/ dickies scrubs] [http://transmission.enforc.cn/ transmission leaking] [http://done-git-r-ringtone.unhop.cn/ done git r ringtone] [http://4u.enforc.cn/ 4u] [http://cell-phone-ringtone.7flocks.cn/ cell phone ringtone ring tone] [http://russian-erected.avenue-x.cn/ russian erected boys] [http://stuffed.oh-rafter.cn/ stuffed] [http://marriage-break-up.obsque.cn/ marriage break up] [http://research-positions.obsque.cn/ research positions in psychology] [http://miss-world.avenue-x.cn/ miss world] [http://bp.enforc.cn/ bp] [http://vans-warped.obsque.cn/ vans warped tour] [http://free-text-ringtone.oh-rafter.cn/ free text ringtone for verizon] [http://rhode-island-bureau.didest.cn/ rhode island bureau of investigation] [http://ringtone-of.7flocks.cn/ ringtone of pink panther theme] [http://eureka-stockade.7flocks.cn/ eureka stockade] [http://movie-search.boist.cn/ movie search] [http://c210-motorola.enforc.cn/ c210 motorola ringtone] [http://koshiki.ucoz.ua/index.html url] [http://melissa-joan.unhop.cn/ melissa joan harts breasts] [http://best-treatment.didest.cn/ best treatment for adult acne] [http://watches-panerai.obsque.cn/ watches panerai] [http://georgia-on-my-mind.enforc.cn/ georgia on my mind] [http://web.archive.org/20070827103047/http://trimox.tabfor.com/ cheap trimox] [http://teenhitchhikerscom.enforc.cn/ teenhitchhikers.com] [http://haruka-kanata.obsque.cn/ haruka kanata] [http://aloha-airline.unhop.cn/ aloha airline] [http://commercial-economic.asketh.cn/ commercial economic damage] [http://jej-czarne-oczy.oh-rafter.cn/ jej czarne oczy mp3] [http://7100t-ringtones.7flocks.cn/ 7100t ringtones free] [http://winrar.7flocks.cn/ winrar] [http://free-mono-ringtones.didest.cn/ free mono ringtones for nokia 1100] [http://tied-to-bedposts.enforc.cn/ tied to bedposts] [http://baby-name-meanings.unhop.cn/ baby name meanings] [http://free-sl55-ringtones.avenue-x.cn/ free sl55 ringtones] [http://www.osspring.00game.com link] [http://farm-lessons.7flocks.cn/ farm lessons] [http://free-typing-tests.unhop.cn/ free typing tests] [http://voyerweb.obsque.cn/ voyerweb] [http://keypress-ringtones.avenue-x.cn/ keypress ringtones motorola v300] [http://audio-pro-system.unhop.cn/ audio pro system] [http://steel-shelving.obsque.cn/ steel shelving components] [http://a-are-honor-maid.boist.cn/ a are honor maid of responsiblities the what] [http://web.archive.org/20070829105548/http://didrex.tabfor.com/ didrex] [http://erotic-lesbian.avenue-x.cn/ erotic lesbian] [http://histoplasmosis.unhop.cn/ histoplasmosis] [http://mini-fridge.grumio.cn/ mini fridge] [http://body-boarding.unhop.cn/ body boarding] [http://atk-nude.unhop.cn/ atk nude] [http://dashasvet.my1.ru/index.html domain] [http://e-sixt.didest.cn/ e sixt] [http://switch-manufacturers.boist.cn/ switch manufacturers] [http://the-redwoods.avenue-x.cn/ the redwoods of santa clara] [http://graffiti.boist.cn/ graffiti] [http://bondagewizardcom.enforc.cn/ bondagewizard.com] [http://korean-teen-sex.asketh.cn/ korean teen sex] [http://web.archive.org/20070829141806/http://amphetamine.tabfor.com/ cheap amphetamine] [http://nirvana-dumb.enforc.cn/ nirvana dumb] [http://phone-ringtone-sprint.asketh.cn/ phone ringtone sprint wallpaper] [http://web.archive.org/20070829193228/http://cocaine.tabfor.com/ buy cocaine] [http://moonlit-haze-ringtone.unhop.cn/ moonlit haze ringtone] [http://incest-free-stories.boist.cn/ incest free stories] [http://boobsquadcom.didest.cn/ boobsquad.com] [http://book-marknet.enforc.cn/ book-mark.net] [http://jeff-glass-photography.obsque.cn/ jeff glass photography] [http://top-gun-theme.enforc.cn/ top gun theme ringtone] [http://detroit-news-newspaper.enforc.cn/ detroit news newspaper web] [http://free-boost-mobile.unhop.cn/ free boost mobile minutes codes] [http://torrent-porn.asketh.cn/ torrent porn] [http://sea-life.didest.cn/ sea life] [http://free-nokia-3100.enforc.cn/ free nokia 3100 ringtone] [http://of-elven-names.asketh.cn/ of elven names] [http://sluty-teens.boist.cn/ sluty teens] [http://nude-house-wife.asketh.cn/ nude house wife] [http://naked-couples.asketh.cn/ naked couples] [http://wicked-witch.didest.cn/ wicked witch ringtone] [http://keypress-ringtones.didest.cn/ keypress ringtones free] [http://1-cotton-rope.obsque.cn/ 1 cotton rope] [http://cheek-color-powder.oh-rafter.cn/ cheek color powder brush retractable] [http://free-wap-mobile.obsque.cn/ free wap mobile polyphonic ringtones] [http://ladies-high.asketh.cn/ ladies high heeled boots] [http://free-sex-gallery.grumio.cn/ free sex gallery] [http://tabloid.asketh.cn/ tabloid] [http://internet-web-cams.oh-rafter.cn/ internet web cams] [http://taking-back-sunday.boist.cn/ taking back sunday lyrics]
{{lang|Npc template maker}}
{{wrongtitle|title=npc_template_maker}}
{{this is a|point entity|name=npc_template_maker|sprite=npc_maker.png}} It is used for spawning clones of particular template NPCs when triggered, either to provide enemies for an ambush or to replace killed enemies in a standoff-type situation. For a simpler version which doesn't use template entities, see the {{ent|npc_maker}} entity, or alternatively see the {{ent|point_template}} entity, which is more suited for spawning an entire squad into the appropriate positions.
 
==Entity Description==
[[Image:Npc maker.png|right]]
Used for spawning clones of particular template NPCs when triggered, either to provide enemies for an ambush or to replace killed enemies in a standoff-type situation. For a simpler version which doesn't use template entities, see the [[npc_maker]] entity, or alternatively see the [[point_template]] entity which is more suited for spawning an entire squad into the appropriate positions.{{clr}}


For this to work, the target NPC must be marked as a template NPC. The easiest way to do this is to set the "Template NPC" spawnflag on the NPC.
For this to work, the target NPC must be marked as a template NPC. The easiest way to do this is to set the "Template NPC" spawnflag on the NPC.


==Keyvalues==
{{clr}}
* {{kv basenpcmaker}}
 
* '''TemplateName'''
: <target_destination> Template NPC that this maker should be creating clones of.
 
* '''Radius'''
: <float> Radius around this maker within which NPCs are to be placed. Spawned NPCs will try and find empty space within this radius to spawn.
 
* '''DestinationGroup'''
: <target_destination> If you'd like spawned NPCs to be created at an [[info_npc_spawn_destination]] entity, enter the name of that entity here. If you have more than one destination entity by that name, the Destination Criteria will be used to select one from the group.
 
* '''CriterionVisibility'''
: <choices> Should the NPC try to spawn at a destination that the player can see? Only applicable if a Destination Group is being used.
:{|
! Literal Value || Description
|-
| 0 || Yes
|-
| 1 || No
|-
| 2 || Don't Care
|}
* '''CriterionDistance'''
: <choices> Should the NPC try to spawn nearest to or farthest from the player's current location? Only applicable if a Destination Group is being used.
:{|
! Literal Value || Description
|-
| 0 || Nearest
|-
| 1 || Farthest
|-
| 2 || Don't Care
|}
 
* '''{{ep1 add|MinSpawnDistance}}'''
: <integer> Minimum spawn distance from player
: The spawn destination node distance to the player will have to be further or equal than this value.
 
==Flags==
* {{fl basenpcmaker}}
 
* 256 : Always use radius spawn
 
* 512 : Don't preload template models
 
==Inputs==
* {{i basenpcmaker}}
 
* '''SpawnNPCInRadius'''
: Spawn an NPC somewhere within the maker's radius.
 
* '''SpawnNPCInLine'''
: Spawn an NPC somewhere within a line behind the maker.


* '''ChangeDestinationGroup <string>'''
== Keyvalues ==
: Switch to a different set of Destination entities.
{{KV|Name of template NPC|intn=TemplateName|target_destination|Template NPC that this maker should be creating clones of.}}
{{KV|Radius|float|intn=Radius|Radius around this maker within which NPCs are to be placed. Spawned NPCs will try and find empty space within this radius to spawn.}}
{{KV|Name of Destination Group|intn=DestinationGroup|target_destination|If you'd like spawned NPCs to be created at an {{ent|info_npc_spawn_destination}} entity, enter the name of that entity here. If you have more than one destination entity by that name, the Destination Criteria will be used to select one from the group.}}
{{bug|If there are more than 102 destinations in a group, the game will crash.|tested={{src13}} }}
{{KV|Dest. Criterion: Visible to player?|intn=CriterionVisibility|choices|Should the NPC try to spawn at a destination that the player can see? Only applicable if a Destination Group is being used.}}
:* 0 : Yes
:* 1 : No
:* 2 : Don't Care
{{KV|Dest. Criterion: Distance to player?|intn=CriterionDistance|choices|Should the NPC try to spawn nearest to or farthest from the player's current location? Only applicable if a Destination Group is being used.}}
:* 0 : Nearest
:* 1 : Farthest
:* 2 : Don't Care
{{KV|Minimum spawn distance from player|intn=MinSpawnDistance|integer|The spawn destination node distance to the player will have to be further or equal than this value.{{note|This parameter is ignored if the above "Distance to player" criteria is set to "Don't Care."}}}}
{{KV BaseNPCMaker}}


* '''{{ep1 add|SetMinimumSpawnDistance <integer>}}'''
== Flags ==
: Set the minimum spawn distance from player to destination node.
{{Fl|256|Always use radius spawn}}
{{Fl|512|Don't preload template models}}
{{Fl BaseNPCMaker}}


==Outputs==
== Inputs ==
* {{o basenpcmaker}}
{{I|SpawnNPCInRadius|Spawn an NPC somewhere within the maker's radius.}}
{{I|SpawnNPCInLine|Spawn an NPC somewhere within a line behind the maker.}}
{{I|SpawnMultiple|Spawn multiple NPCs (uses destination group, else radius).|param=integer}}
{{I|ChangeDestinationGroup|Switch to a different set of Destination entities.|param=string}}
{{I|SetMinimumSpawnDistance|Set the minimum spawn distance from player to destination node.|param=integer}}
{{I BaseNPCMaker}}


==See Also==
== Outputs ==
{{O BaseNPCMaker}}


* [[npc_maker]] - simpler version which doesn't use a template NPC entity.
== See also ==
* [[point_template]] - spawns NPCs (or other entities) in-place; can deal with up to sixteen different targetnames simultaneously, and multiple entities per targetname.
*[[npc_maker]] - simpler version which doesn't use a template NPC entity
*[[npc_antlion_template_maker]] - a particular type of makers useful for working with [[Antlion]]s
*[[npc_hunter_maker]] - a particular type made for [[Hunter]]s
*[[point_template]] - spawns NPCs (or other entities) in-place; can deal with up to sixteen different targetnames simultaneously, and multiple entities per targetname


[[Category:Entities]]
[[Category:NPCs]]

Latest revision as of 13:52, 27 August 2025

English (en)Translate (Translate)
Npc maker.png

npc_template_maker is a point entity available in all Source Source games. It is used for spawning clones of particular template NPCs when triggered, either to provide enemies for an ambush or to replace killed enemies in a standoff-type situation. For a simpler version which doesn't use template entities, see the npc_maker entity, or alternatively see the point_template entity, which is more suited for spawning an entire squad into the appropriate positions.

For this to work, the target NPC must be marked as a template NPC. The easiest way to do this is to set the "Template NPC" spawnflag on the NPC.

Keyvalues

Name of template NPC (TemplateName) <targetname>
Template NPC that this maker should be creating clones of.
Radius (Radius) <float>
Radius around this maker within which NPCs are to be placed. Spawned NPCs will try and find empty space within this radius to spawn.
Name of Destination Group (DestinationGroup) <targetname>
If you'd like spawned NPCs to be created at an info_npc_spawn_destination entity, enter the name of that entity here. If you have more than one destination entity by that name, the Destination Criteria will be used to select one from the group.
Icon-Bug.pngBug:If there are more than 102 destinations in a group, the game will crash.  (tested in: Source 2013)
Dest. Criterion
Visible to player? (CriterionVisibility) <choices>
Should the NPC try to spawn at a destination that the player can see? Only applicable if a Destination Group is being used.
  • 0 : Yes
  • 1 : No
  • 2 : Don't Care
Dest. Criterion
Distance to player? (CriterionDistance) <choices>
Should the NPC try to spawn nearest to or farthest from the player's current location? Only applicable if a Destination Group is being used.
  • 0 : Nearest
  • 1 : Farthest
  • 2 : Don't Care
Minimum spawn distance from player (MinSpawnDistance) <integer>
The spawn destination node distance to the player will have to be further or equal than this value.
Note.pngNote:This parameter is ignored if the above "Distance to player" criteria is set to "Don't Care."

BaseNPCMaker:

Num. of NPCs (MaxNPCCount) <integer>
Number of NPCs that will spawn before this spawner is exhausted.
Frequency (SpawnFrequency) <string>
How often (in seconds) a new NPC will be spawned. If set to -1, a new NPC will be made when the last NPC dies.
Max Live NPCs (MaxLiveChildren) <integer>
Maximum number of live children allowed at any one time (new ones will not be made until one dies). If set to -1, no limit is applied.


Flags

Always use radius spawn : [256]
Don't preload template models : [512]

BaseNPCMaker:

Fade Corpse : [16]
Infinite Children : [32]
Do Not Drop : [64]
Don't Spawn While Visible : [128]

Inputs

SpawnNPCInRadius
Spawn an NPC somewhere within the maker's radius.
SpawnNPCInLine
Spawn an NPC somewhere within a line behind the maker.
SpawnMultiple <integerRedirectInput/integer>
Spawn multiple NPCs (uses destination group, else radius).
ChangeDestinationGroup <stringRedirectInput/string>
Switch to a different set of Destination entities.
SetMinimumSpawnDistance <integerRedirectInput/integer>
Set the minimum spawn distance from player to destination node.

BaseNPCMaker:

Spawn
Spawns an NPC.
Toggle
Toggles the spawner enabled/disabled state.
Enable
Enables the spawner.
Disable
Disables the spawner.
AddMaxChildren <integerRedirectInput/integer>
Adds to the number of NPCs that can spawn before the spawner is exhausted. If an exhausted spawner is given some children to spawn, it still wont begin spawning until it is re-enabled with the Enable input.
SetMaxChildren <integerRedirectInput/integer>
Sets the number of NPCs that can spawn before the spawner is exhausted. If an exhausted spawner is given some children to spawn, it still won't begin spawning until it is re-enabled with the Enable input.
SetMaxLiveChildren <integerRedirectInput/integer>
Sets the maximum number of NPCs that can be alive at any one time from this spawner.
SetSpawnFrequency <floatRedirectInput/float>
Sets how often (in seconds) a new NPC will be spawned.


Outputs

BaseNPCMaker:

OnSpawnNPC <targetname*RedirectOutput/ehandle>
Fired when an NPC is spawned. The activator is the NPC, and the string is the name of the NPC.
OnAllSpawned
Fired when the spawned is exhausted (all children have been spawned).
OnAllSpawnedDead
Fired when the spawner is exhausted (all children have been spawned) and all spawned children have died.
OnAllLiveChildrenDead
Fired when all spawned children have died. This does not mean the spawned is exhausted, so a new child may be spawned any time after this (unless the maker is disabled).

See also