npc_antlion

From Source Entities
Jump to navigation Jump to search

npc_antlion is a point entity present in the Hl2.pngHalf-Life 2 series. It is a weak NPC that can burrow, and "fly" by jumping. The player can command them with bugbait, given that the antlion_allied global variable is set. Their most common role in level design is that of cannon fodder. Antlions are blind, and navigate entirely by sound and smell. They can navigate by jumping and use the HULL_MEDIUM hull for navigation; give them decent space to maneuver.

Hl2 antlion surface.pngHl2 antlion acid.png

ConVars/Commands[edit | edit source]

ConVar/CommandParameters or default valueParameter TypeEffect
g_debug_antlion0Arbitrary valueShows various debugging info for antlions.
  • 1: Shows yellow X's where antlions are trying to go when commanded by bugbait.
  • 2: When antlions are interested in jumping at an enemy, shows information about it.
  • 3: Shows hulls of where antlions try to go when commanded.
sk_antlion_health30Health amountHow much health antlions have.
sk_antlion_swipe_damage5Damage amountHow much damage is dealt by antlion claw attacks and by bashing into enemies.
sk_antlion_worker_burst_damage50Damage amountHow much damage is dealt by worker antlions to nearby enemies when they burst.
sk_antlion_worker_burst_radius160World unitsHow big the worker antlion's explosion is. Vortigaunts consider this too close to attack (aside from dynamic interactions).
sk_antlion_worker_health60Health amountHow much health acid antlions have.
sk_antlion_worker_spit_speed600Arbitrary valueHow fast the acid projectile is. Affects the arc traveled.
g_debug_antlion_worker00 disables, 1 enablesShows debugging info about acid spit paths.

Flags[edit | edit source]

  • 65536: Burrow when eluded - Automatically burrow away when enemies are too far away or unreachable.
  • 131072: Use Ground Checks - To do: Description.
  • 262144: Worker Type - Makes the antlion an acid type, seen in Episode 2.

Keyvalues[edit | edit source]

Start Burrowed (startburrowed) <boolean>
Makes the antlion spawn underground, then dig their way out.
Ignore Bugbait (ignorebugbait) <boolean>
Makes the antlion ignore bugbait (but still be friendly to the player).
Alert Radius (radius) <float>
No effect.
Distance until eluded (eludedist) <float>
If Burrow when eluded is checked, the distance at which the target has eluded the antlion.
Suppress unburrow effects (unburroweffects) <boolean>
Hides the dust effect made when antlions unburrow.

Inputs[edit | edit source]

Unburrow
Makes the antlion dig up out of the ground.
Burrow
Makes the antlion dig into the ground.
BurrowAway
Makes the antlion dig into the ground and disappear forever.
FightToPosition <target_destination>
Sends the antlion to a given entity.
StopFightToPosition (Not in FGD)
Makes the antlion forget about its target entity, if any.
EnableJump
Allows jumping at any time.
DisableJump
Forbids jumping unless needed for navigation.
IgnoreBugbait
Sets Ignore Bugbait to Yes.
HearBugbait
Sets Ignore Bugbait to No.
JumpAtTarget (Not in FGD) <target_destination>
Makes the antlion jump to an entity. Might not work well.

Outputs[edit | edit source]

OnReachedFightGoal
Fires when the antlion reaches a Fight Target (fighttarget) specified by an npc_antlion_template_maker.
OnUnBurrowed
Fires when the antlion begins to unburrow.

See Also[edit | edit source]