Bot npc archer: Difference between revisions
(Creation of the page.) |
m (Fixed a link.) |
||
Line 7: | Line 7: | ||
This is an AI-controlled entity using the <code>models\player\sniper.mdl</code> model which wields a Huntsman. This entity will move only if a valid [[Navigation Meshes|navigation mesh]] exists. | This is an AI-controlled entity using the <code>models\player\sniper.mdl</code> model which wields a Huntsman. This entity will move only if a valid [[Navigation Meshes|navigation mesh]] exists. | ||
This entity is '''NOT''' a [[Server- | This entity is '''NOT''' a [[Server-Side Bots|bot]]. As such, it will not take any player slot. | ||
== Behavior == | == Behavior == |
Revision as of 09:16, 29 April 2015
bot_npc_archer
is a point entity available in Team Fortress 2.
Entity description
This is an AI-controlled entity using the models\player\sniper.mdl
model which wields a Huntsman. This entity will move only if a valid navigation mesh exists.
This entity is NOT a bot. As such, it will not take any player slot.
Behavior
Once spawned, this entity will always rejoin its original spawn point before it can attack, unless there is not any valid navigation mesh file.
It will go into humiliation pose unless if one of the following entities is present on the map:
- base_boss
- eyeball_boss
- headless_hatman
- merasmus
- tank_boss
If at least one of those entities exists, the archer will shoot any BLU player which can be attacked.



ent_create bot_npc_archer
command, this entity will try to rejoin the origin of the map, if a navigation mesh file is present. This is because the command causes the game to spawn the entity to the origin of the map, and then teleports it to where the player is looking (if possible). [todo tested in ?]

Dedicated console variables
- tf_bot_npc_archer_arrow_damage <int> (Default: 75)
The amount of damage of each arrow.

- tf_bot_npc_archer_health <int> (Default: 100)
The amount of health of the entity.

- tf_bot_npc_archer_shoot_interval <int> (Default: 2)
After shooting an arrow, the entity will not shoot again for this delay.

- tf_bot_npc_archer_speed <int> (Default: 100)
The speed of the entity when it moves.

Keyvalues
targetname <string>
The targetname that other entities refer to this entity by.
teamnum <int>
The team of the entity.


skin <int>
The skin for the entity's model.
Inputs
Outputs
OnIgnite
Fired when this entity is ignited.