Ai ally manager: Difference between revisions
Jump to navigation
Jump to search
m (→Entity Description: source may be assumed...I guess) |
|||
Line 4: | Line 4: | ||
{{hl2}} Monitors the number and type of [[npc_citizen]] allies and responds accordingly. When this entity receives a ''Replenish'' input it will count the number of allies and send outputs based on how many allies are needed to match this entity's keyvalues. Also fires an output when all allies and/or all medics are dead. | {{hl2}} Monitors the number and type of [[npc_citizen]] allies and responds accordingly. When this entity receives a ''Replenish'' input it will count the number of allies and send outputs based on how many allies are needed to match this entity's keyvalues. Also fires an output when all allies and/or all medics are dead. | ||
* Outputs can be used for purposes aside from spawning more NPCs, if you're so inclined | * Outputs can be used for purposes aside from spawning more NPCs, if you're so inclined | ||
* More than one [[ai_ally_manager]] can exist | * More than one [[ai_ally_manager]] can exist |
Revision as of 20:00, 6 April 2006
Entity Description
Monitors the number and type of npc_citizen allies and responds accordingly. When this entity receives a Replenish input it will count the number of allies and send outputs based on how many allies are needed to match this entity's keyvalues. Also fires an output when all allies and/or all medics are dead.
- Outputs can be used for purposes aside from spawning more NPCs, if you're so inclined
- More than one ai_ally_manager can exist
- Won't count more than ten (10) allies
Keyvalues
- maxallies
- <integer> Maximum number of allies.
- maxmedics
- <integer> Maximum number of allies that are medics.
Inputs
- SetMaxAllies <integer>
- Set maximum number of allies
- SetMaxMedics <integer>
- Set maximum number of medic allies
- Replenish
- Replenish player allies
Outputs
- SpawnMedicAlly
- Fires to spawn a Medic Ally
- SpawnAlly0
- Fires to spawn Ally 0
- SpawnAlly1
- Fires to spawn Ally 1
- SpawnAlly2
- Fires to spawn Ally 2
- SpawnAlly3
- Fires to spawn Ally 3
- SpawnAlly4
- Fires to spawn Ally 4
- SpawnAlly5
- Fires to spawn Ally 5
- SpawnAlly6
- Fires to spawn Ally 6
- SpawnAlly7
- Fires to spawn Ally 7
- SpawnAlly8
- Fires to spawn Ally 8
- SpawnAlly9
- Fires to spawn Ally 9
- OnZeroAllies
- Fires when there are no more allies
- OnZeroMedicAllies
- Fires when there are no more allies