Difference between revisions of "Mapping with Antlions"

From Valve Developer Community
Jump to: navigation, search
(abstract mapping template)
m (npc_template_maker)
Line 18: Line 18:
 
== npc_template_maker ==
 
== 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 <code>npc_antlion</code> (''start burrowed'', ''alert radius'', ''path corner''s, ''squad name''s and ''hint group''s). Therefore we must use <code>npc_antlion_template_maker</code>.
+
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_antlion_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 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:

Revision as of 04:34, 30 July 2011

Abstract Mapping series Discuss your thoughts - Help us develop the articles or ideas you want

Ammunition | Animals & Creatures | Antlions | Beams & Lasers | Cables & Ropes | Clouds & Sky | Color Theory | Combat | Combine | Doors | Dust, Fog & Smoke | Elevators | Level Transitions | Environmental Lighting & Weather | Explosions | Fire | Foliage | Glass | Headcrab | Health | Ladders | Lighting | Optimization | Physics | Retinal scanners | Sound & Music | Special effects | Terrain | Trains | Turrets | Water | Weapons | Zombie

Antlion.jpg

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 and attack the player, but you can make them do precise things too.

Entities


  • weapon_bugbait - A weapon the player can use to control antlions
  • prop_thumper - The Combine mechanism that thumps the ground to ward off antlions

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_antlion_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