Mapping with Antlions: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(cleaned up, please check whether {{cleanup}} can be removed)
Line 1: Line 1:
{{abstract mapping}}__NOTOC__{{cleanup}}
{{abstract mapping}}
==Antlions==
__NOTOC__
This article explains a good amount of information about Antlions; Antlion behavior includes how they act, how to make them unburrow when walking on the sand, how to make them fly, or how to make them follow a precise route.
{{cleanup}}
 
Antlion behavior includes how they act, how to make them unburrow when walking on the sand, how to make them fly and how to make them follow a precise route. Antlions basically can't see; they hear their enemies which is why they are sometimes complicated to handle. In most cases, they just run to you and kill you, but you can make them do precise things too.
 
==Entities==


Antlions basically can't see; they hear their enemies which is why they are complicated to handle sometimes.
In most cases, they just run to you and kill you, but you can make them do precise things too.
==Mapping==
* [[npc_antlion]]
* [[npc_antlion]]
* [[npc_template_maker]]
* [[npc_template_maker]]
* [[Antlions: Random Spawn]]


== npc_template_maker ==
== npc_template_maker ==


In most cases, a simple [[npc_maker]] won't suffice because it's doesn't use the options of the antlion (start burrowed, his alert radius, his path corners, squad names, and hint groups also).
If you want to create an antlion that spawns by unburrowing, a simple [[npc_maker]] will not suffice because it does not have all the options of the <code>npc_antlion</code> (''start burrowed'', ''alert radius'', ''path corner''s, ''squad name''s and ''hint group''s). Therefore we must use npc_template_maker.
 
To make an antlion that unburrows on spawn, check the ''Start Burrowed'' flag on the antlion, configure the [[npc_template_maker]] normally with the antlion in the template and then add the following output:


To make it work well, check the Start Burrowed flag on the antlion, configure the [[npc_template_maker]] normally with the antlion in the template then go in the outputs and do the following.
:OnSpawnNpc, (your antlion), Unburrow


OnSpawnNpc Antlion Unburrow
As soon as the burrowed antlion spawns it will unburrow, instead of appearing from nowhere.


As soon as the burrowed antlion spawns he will unburrow, instead of appearing from nowhere.
==See also==
 
* [[Antlions: Random Spawn]]

Revision as of 07:43, 6 March 2006

Template:Abstract mapping

Broom icon.png
This article or section needs to be cleaned up to conform to a higher standard of quality.
For help, see the VDC Editing Help and Wikipedia cleanup process. Also, remember to check for any notes left by the tagger at this article's talk page.

Antlion behavior includes how they act, how to make them unburrow when walking on the sand, how to make them fly and how to make them follow a precise route. Antlions basically can't see; they hear their enemies which is why they are sometimes complicated to handle. In most cases, they just run to you and kill you, but you can make them do precise things too.

Entities

npc_template_maker

If you want to create an antlion that spawns by unburrowing, a simple npc_maker will not suffice because it does not have all the options of the npc_antlion (start burrowed, alert radius, path corners, squad names and hint groups). Therefore we must use npc_template_maker.

To make an antlion that unburrows on spawn, check the Start Burrowed flag on the antlion, configure the npc_template_maker normally with the antlion in the template and then add the following output:

OnSpawnNpc, (your antlion), Unburrow

As soon as the burrowed antlion spawns it will unburrow, instead of appearing from nowhere.

See also