Bot npc archer: Difference between revisions
m (removed {{DISPLAYTITLE}}, covered by the tf2 point template) |
(Cleaned up page.) |
||
Line 1: | Line 1: | ||
{{lang|Bot npc archer}} | |||
{{ent not in fgd}} | {{ent not in fgd}} | ||
{{tf2 point|bot_npc_archer}} | {{tf2 point|bot_npc_archer}} | ||
{{code class|CBotNPCArcher|bot_npc_archer.cpp}} | |||
== Entity description == | == Entity description == | ||
This is a [[NextBot]] using the <code>models\player\sniper.mdl</code> model which wields a Huntsman. | |||
This is a [[NextBot]] using the <code>models\player\sniper.mdl</code> model which wields a Huntsman. | |||
It will go into humiliation pose unless one of the following entities is present on the map: | It will go into humiliation pose unless one of the following entities is present on the map: | ||
* base_boss | * {{ent|base_boss}} | ||
* | * {{ent|eyeball_boss}} | ||
* | * {{ent|headless_hatman}} | ||
* | * {{ent|merasmus}} | ||
* | * {{ent|tank_boss}} | ||
If at least one of those entities exists, the archer will shoot any BLU player which can be attacked. The NPC aims for heads and aims ahead in case a target is moving. When a BLU player is killed by a headshot from this entity, the kill feed will display an environmental headshot death icon. In the case of a bodyshot, a regular environmental death will be shown. Despite first appearances, this NPC is teamless, and can take ''and'' give damage to RED ''or'' BLU players. A similar teamless state has been seen with poor coding. | If at least one of those entities exists, the archer will shoot any BLU player which can be attacked. The NPC aims for heads and aims ahead in case a target is moving. When a BLU player is killed by a headshot from this entity, the kill feed will display an environmental headshot death icon. In the case of a bodyshot, a regular environmental death will be shown. Despite first appearances, this NPC is teamless, and can take ''and'' give damage to RED ''or'' BLU players. A similar teamless state has been seen with poor coding. | ||
{{bug|The entity does not compensate for gravity when shooting | {{bug|The entity does not compensate for gravity when shooting.}} | ||
{{bug|When spawned using the | {{bug|When spawned using the {{ent|ent_create|bot_npc_archer}} command, this entity will try to go to the origin of the map, if a [[NAV]] 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).}} | ||
== Dedicated console variables == | == Dedicated console variables == | ||
{{varcom|start}} | |||
{{varcom|tf_bot_npc_archer_arrow_damage|75|arbitrary [[float]]|Determines the arrow damage of NPC archer arrows.}} | |||
{{varcom|tf_bot_npc_archer_health|100|arbitrary [[integer]]|Determines the health of NPC archer bots.}} | |||
{{varcom|tf_bot_npc_archer_shoot_interval|2|arbitrary [[float]]|Determines the interval at which NPC archer bots fire.}} | |||
{{ | {{varcom|tf_bot_npc_archer_speed|100|arbitrary [[integer]]|Unused.}} | ||
{{varcom|end}} | |||
{{ | |||
{{ | |||
{{ | |||
== Keyvalues == | == Keyvalues == | ||
{{KV BaseAnimating}} | |||
{{KV BaseEntity}} | |||
{{ | |||
{{ | |||
== Inputs == | == Inputs == | ||
{{I BaseAnimating}} | |||
{{I BaseEntity}} | |||
{{ | |||
== Outputs == | == Outputs == | ||
{{O BaseAnimating}} | |||
{{O BaseEntity}} | |||
[[Category:NextBot Entities]] | [[Category:NextBot Entities]] |
Revision as of 07:08, 16 September 2021


bot_npc_archer
is a point entity available in Team Fortress 2.
Entity description
This is a NextBot using the models\player\sniper.mdl
model which wields a Huntsman.
It will go into humiliation pose unless one of the following entities is present on the map:
If at least one of those entities exists, the archer will shoot any BLU player which can be attacked. The NPC aims for heads and aims ahead in case a target is moving. When a BLU player is killed by a headshot from this entity, the kill feed will display an environmental headshot death icon. In the case of a bodyshot, a regular environmental death will be shown. Despite first appearances, this NPC is teamless, and can take and give damage to RED or BLU players. A similar teamless state has been seen with poor coding.


Dedicated console variables
Cvar/Command | Parameters or default value | Descriptor | Effect |
---|---|---|---|
tf_bot_npc_archer_arrow_damage | 75 | arbitrary float | Determines the arrow damage of NPC archer arrows. |
tf_bot_npc_archer_health | 100 | arbitrary integer | Determines the health of NPC archer bots. |
tf_bot_npc_archer_shoot_interval | 2 | arbitrary float | Determines the interval at which NPC archer bots fire. |
tf_bot_npc_archer_speed | 100 | arbitrary integer | Unused. |
Keyvalues

Inputs

Outputs
