Template:Fl BaseNPC: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Started using the new spawnflag template)
No edit summary
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Fl|Wait Till Seen|bit=1}}
{{LanguageBar}}
{{Fl|Gag (No IDLE sounds until angry)|bit=2}}
<onlyinclude>{{ExpandBox|title=BaseNPC flags|
{{Fl|Fall to ground (unchecked means *teleport* to ground)|bit=4}}
{{Fl|1|Wait Till Seen|Prevents this NPC from seeing (or being seen) until it enters a player's viewcone.}}
{{Fl|Drop Healthkit|bit=8}}
{{Fl|2|Gag|Won't make IDLE sounds until it's angry.}}
{{Fl|Efficient - Don't acquire enemies or avoid obstacles|bit=16}}
{{Fl|4|Fall to ground (unchecked means ''teleport'' to ground)}}
{{Fl|Wait For Script|bit=128}}
{{Fl|8|Drop Healthkit|Causes this NPC to drop an {{ent|item_healthvial}} upon dying.}}
{{Fl|Long Visibility/Shoot|bit=256}}
{{Fl|16|Efficient|Don't acquire enemies or avoid obstacles}}
{{Fl|Fade Corpse|bit=512}}
{{Fl|128|Wait For Script|Forces this NPC to "wait" in an idle state until it finishes playing a {{ent|scripted_sequence}}.}}
{{Fl|[[NPC Sensing|Think outside PVS]]|bit=1024}}
{{Fl|256|Long Visibility/Shoot|By default, increases a NPC's sight range to <code>6,000</code> units and allows it to attack from anywhere within that distance.}}
{{Fl|Template NPC|Marks this NPC as a template for entities like {{ent|npc_template_maker}}. The NPC will not spawn on its own. This is not needed for {{ent|point_template}}.|bit=2048}}
{{Fl|512|Fade Corpse}}
{{Fl|Do Alternate collision for this NPC (player avoidance)|{{note|This flag is disabled in episodic for player companions because the <code>StartScripting</code> input does this.}}|bit=4096}}
{{Fl|1024|[[NPC Sensing|Think outside PVS]]|Allows this NPC to run its regular AI outside of any player's PVS.}}
{{Fl|Don't drop weapons|bit=8192}}
{{Fl|2048|Template NPC|Marks this NPC as a template for entities like {{ent|npc_template_maker}}. The NPC will not spawn on its own. This is not needed for {{ent|point_template}}.}}
{{Fl|Ignore player push|Don't give way to player|since=EP1|bit=16384}}<noinclude>
{{Fl|4096|Do Alternate collision for this NPC (player avoidance)}}{{note|This flag is disabled in {{Hl2episodes}} episodic for player companions, because the <code>StartScripting</code> input does this.}}
{{Fl|8192|Don't drop weapons}}
{{Fl|16384|Ignore player push|Entity won't give way to player.|since={{src06}}}}
}}</onlyinclude>
[[Category:Flag Templates|BaseNPC]]
[[Category:Flag Templates|BaseNPC]]
</noinclude>

Latest revision as of 22:19, 3 March 2025

Flag-white.pngEnglish (en)
BaseNPC flags 
Wait Till Seen : [1]
Prevents this NPC from seeing (or being seen) until it enters a player's viewcone.
Gag : [2]
Won't make IDLE sounds until it's angry.
Fall to ground (unchecked means teleport to ground) : [4]
Drop Healthkit : [8]
Causes this NPC to drop an item_healthvial upon dying.
Efficient : [16]
Don't acquire enemies or avoid obstacles
Wait For Script : [128]
Forces this NPC to "wait" in an idle state until it finishes playing a scripted_sequence.
Long Visibility/Shoot : [256]
By default, increases a NPC's sight range to 6,000 units and allows it to attack from anywhere within that distance.
Fade Corpse : [512]
Think outside PVS : [1024]
Allows this NPC to run its regular AI outside of any player's PVS.
Template NPC : [2048]
Marks this NPC as a template for entities like npc_template_maker. The NPC will not spawn on its own. This is not needed for point_template.
Do Alternate collision for this NPC (player avoidance) : [4096]
Note.pngNote:This flag is disabled in Half-Life 2: Episode One Half-Life 2: Episode Two episodic for player companions, because the StartScripting input does this.
Don't drop weapons : [8192]
Ignore player push : [16384] (in all games since Source 2006)
Entity won't give way to player.