CNPC AntlionGuard: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 4: Line 4:
{{code|CNPC_AntlionGuard}} is the C++ implementation of the [[npc_antlionguard]]. For information on where it's available, inputs and outputs, refer to the said page, as this one is talking about the C++ implementation of it.
{{code|CNPC_AntlionGuard}} is the C++ implementation of the [[npc_antlionguard]]. For information on where it's available, inputs and outputs, refer to the said page, as this one is talking about the C++ implementation of it.


The Antlion Guard only has one squad slot - {{code|SQUAD_SLOT_ANTLIONGUARD_CHARGE}}. When an Antlion Guard is trying to charge, it will occupy this squad slot. That also means only one Antlion Guard can charge at a time per squad.
The Antlion Guard only has one squad slot - {{code|SQUAD_SLOT_ANTLIONGUARD_CHARGE}}. When an Antlion Guard is trying to charge, it will occupy this squad slot. That also means only one Antlion Guard can charge at a time per squad. It will also not charge if a squad member is closer to the enemy than it is, because "{{code|lang=cpp|// If someone in our squad is closer to the enemy, then don't charge (we end up hitting them more often than not!)}}".

Revision as of 10:09, 6 June 2025

English (en)Translate (Translate)
C++ Class hierarchy
CNPC_AntlionGuard
CAI_BlendedNPC
CAI_BlendingHost<CAI_BaseNPC>
CAI_BaseNPC
CBaseCombatCharacter
CBaseFlex
CBaseAnimatingOverlay
CBaseAnimating
CBaseEntity
C++ npc_antlionguard.cpp

CNPC_AntlionGuard is the C++ implementation of the npc_antlionguard. For information on where it's available, inputs and outputs, refer to the said page, as this one is talking about the C++ implementation of it.

The Antlion Guard only has one squad slot - SQUAD_SLOT_ANTLIONGUARD_CHARGE. When an Antlion Guard is trying to charge, it will occupy this squad slot. That also means only one Antlion Guard can charge at a time per squad. It will also not charge if a squad member is closer to the enemy than it is, because "// If someone in our squad is closer to the enemy, then don't charge (we end up hitting them more often than not!)".