Ai ally manager: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
(Formatted / Descriptions personalized)
Line 1: Line 1:
ai_ally_manager
==Entity Description==
Monitors the number and type of Gordon's [[npc_citizen]] allies and responds accordingly.


AI Ally Manager
==Keyvalues==


KEYS
* '''Name (targetname)'''
: <target_source> The name that other entities refer to this entity by.


Name targetname <target_source> The name that other entities refer to this entity by.
* '''Maximum number of allies (maxallies)'''
: <Integer> Maximum number of Gordon's allies.  Used for reference by the ai_ally_manager.


Maximum number of allies maxallies <integer>  
* '''Maximum number of medics (maxmedics)'''
: <Integer> Maximum number of Gordon's allies that are medics.  Used for reference by the ai_ally_manager.


Maximum number of medics maxmedics <integer>
==Flags==


No Flags


INPUTS
==Inputs==


Kill Removes this entity from the world.
* '''Kill'''
: Removes this entity from the world.


KillHierarchy Removes this entity and all its children from the world.
* '''KillHierarchy'''
: Removes this entity and all its children from the world.


AddOutput <string> Adds an entity I/O connection to this entity. Format: <output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire (-1 == infinite)>. Very dangerous, use with care.
* '''AddOutput <string>'''
: Adds an entity I/O connection to this entity. Format: <output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire (-1 == infinite)>. Very dangerous, use with care.


FireUser1 Causes this entity's OnUser1 output to be fired.
* '''FireUser1'''
: Causes this entity's OnUser1 output to be fired.


FireUser2 Causes this entity's OnUser2 output to be fired.
* '''FireUser2'''
: Causes this entity's OnUser2 output to be fired.


FireUser3 Causes this entity's OnUser3 output to be fired.
* '''FireUser3'''
: Causes this entity's OnUser3 output to be fired.


FireUser4 Causes this entity's OnUser4 output to be fired.
* '''FireUser4'''
: Causes this entity's OnUser4 output to be fired.


SetMaxAllies <integer> Set maximum number of allies
* '''SetMaxAllies <integer>'''
: Set maximum number of allies


SetMaxMedics <integer> Set maximum number of medic allies
* '''SetMaxMedics <integer>'''
: Set maximum number of medic allies


Replenish Replenish player allies
* '''Replenish'''
: Replenish player allies




OUTPUTS
==Outputs==


OnUser1 Fired in response to FireUser1 input.
* '''OnUser1'''
: Fired in response to FireUser1 input.


OnUser2 Fired in response to FireUser2 input.
* '''OnUser2'''
: Fired in response to FireUser2 input.


OnUser3 Fired in response to FireUser3 input.
* '''OnUser3'''
: Fired in response to FireUser3 input.


OnUser4 Fired in response to FireUser4 input.
* '''OnUser4'''
: Fired in response to FireUser4 input.


SpawnMedicAlly Spawn Medic Ally
* '''SpawnMedicAlly'''
: Fires to spawn a Medic Ally


SpawnAlly0 Spawn Ally 0
* '''SpawnAlly0'''
: Fires to spawn Ally 0


SpawnAlly1 Spawn Ally 1
* '''SpawnAlly1'''
: Fires to spawn Ally 1


SpawnAlly2 Spawn Ally 2
* '''SpawnAlly2'''
: Fires to spawn Ally 2


SpawnAlly3 Spawn Ally 3
* '''SpawnAlly3'''
: Fires to spawn Ally 3


SpawnAlly4 Spawn Ally 4
* '''SpawnAlly4'''
: Fires to spawn Ally 4


SpawnAlly5 Spawn Ally 5
* '''SpawnAlly5'''
: Fires to spawn Ally 5


SpawnAlly6 Spawn Ally 6
* '''SpawnAlly6'''
: Fires to spawn Ally 6


SpawnAlly7 Spawn Ally 7
* '''SpawnAlly7'''
: Fires to spawn Ally 7


SpawnAlly8 Spawn Ally 8
* '''SpawnAlly8'''
: Fires to spawn Ally 8


SpawnAlly9 Spawn Ally 9
* '''SpawnAlly9'''
: Fires to spawn Ally 9


OnZeroAllies Fires when there are no more allies
* '''OnZeroAllies'''
: Fires when there are no more allies


OnZeroMedicAllies Fires when there are no more allies
* '''OnZeroMedicAllies'''
: Fires when there are no more allies

Revision as of 15:11, 2 July 2005

Entity Description

Monitors the number and type of Gordon's npc_citizen allies and responds accordingly.

Keyvalues

  • Name (targetname)
<target_source> The name that other entities refer to this entity by.
  • Maximum number of allies (maxallies)
<Integer> Maximum number of Gordon's allies. Used for reference by the ai_ally_manager.
  • Maximum number of medics (maxmedics)
<Integer> Maximum number of Gordon's allies that are medics. Used for reference by the ai_ally_manager.

Flags

No Flags

Inputs

  • Kill
Removes this entity from the world.
  • KillHierarchy
Removes this entity and all its children from the world.
  • AddOutput <string>
Adds an entity I/O connection to this entity. Format: <output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire (-1 == infinite)>. Very dangerous, use with care.
  • FireUser1
Causes this entity's OnUser1 output to be fired.
  • FireUser2
Causes this entity's OnUser2 output to be fired.
  • FireUser3
Causes this entity's OnUser3 output to be fired.
  • FireUser4
Causes this entity's OnUser4 output to be fired.
  • SetMaxAllies <integer>
Set maximum number of allies
  • SetMaxMedics <integer>
Set maximum number of medic allies
  • Replenish
Replenish player allies


Outputs

  • OnUser1
Fired in response to FireUser1 input.
  • OnUser2
Fired in response to FireUser2 input.
  • OnUser3
Fired in response to FireUser3 input.
  • OnUser4
Fired in response to FireUser4 input.
  • 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