grenade_hornet
grenade_hornet
is a point entity available in Black Mesa. The grenade entity that used by weapon_hivehand
and alien grunts. It is a xen hornet that spawns hivehand to attack enemies. With primary attack, player's hornet can home in on targets (if it notices them) and bounce off walls if it collides with them, explodes after a certain amount of time. With secondary attack, hornet will fly forwardly until it hits an object or until explodes after a certain amount of time. This entity also used by alien grunts, they can use only secondary attack.
Represented by class CGrenade_Hornet
.
Bug:Level transition will break the detonation timer, causing this entity. This situation crash entire game after a while. In the mod version, hornet explodes after next level loaded.
Bug:This grenade entity can stuck at dynamic (not physics) objects, such as
prop_dynamic
. In such situation, hornet will turn at the certain direction and will not move until it explodes. Usually happens with objects that have a dynamic collision, or objects that are in motion.
Tip:If you need to fix this issue, use
trigger_hurt
that will kill stucked hornets, this trigger should be toggled by logic_timer
every 0.5-1.0 seconds.
|
Note:Only in Black Mesa (the mod version) this entity can hit physical object with primary attack. In Steam version, this entity will bounce from it such object.
Note:Only in Black Mesa (the mod version) this entity can create decal and impact sound when bounce. Example.
Note:Only in Steam versions this entity bounce from player ally NPCs (primary attack only).
Note:Particles from this entity are different in mod and last Steam versions.
|
Contents
Inputs
DisableSeeking
<void> (only in )- Fired by this entity if player used secondary attack of hivehand. This input disallows hornet to bounce and change flight direction.
SetSwarmingWithStartingAngle
<float> (only in )- Fired by this entity if player used secondary attack of hivehand. Its use in a normal situation will cause hornet no longer bounce properly.
SetSwarmingWithNoiseFactor
<float> (only in )- Fired by this entity if player used secondary attack of hivehand. Gives shaking during flight. Note:Hornet may will note bounce properly after this input.
SetSwarmingWithRadiusScale
<float> (only in )- Sets size of loop during flight.
SetTarget
<string> (only in )- Sets specified target to force hornet fly and hit the target.
StopHoming
<void> (only in )- Fired by this entity if player used secondary attack of hivehand. This input disallows hornet to bounce and change flight direction.
SetTimer
<float> (only in )- Sets amount of time before detonate.
SetThrower
<void> (only in )- Fired by this entity when appears via player's hivehand. Doesn't do anything.
Outputs
Dedicated ConVars
Cvar/Command | Parameters or default value | Descriptor | Effect |
---|---|---|---|
sk_detenator_hornet_fuse_time | 5 | Float | Amount of time before detonate if it don't hit enemy/surface.
Note:It is not recommended to use values higher than 12, because particle effects disappear on 13 seconds.
|
sk_detenator_hornet_track_max_distance | 512 | Float | Radius at which hornet will see an enemy and fly towards it. |
sk_detenator_hornet_track_acceleration | 300 | Float | Speed at which hornet will turn to enemy. |
sk_detenator_hornet_track_drag | 0.4 | Float | Degree of deviation in a random direction during flight.
Warning:Values higher than 1.2 makes hornet twitch.
|
sk_detenator_hornet_track_lock_distance | 20 | Float | Affects the accuracy of hitting when flying towards the enemy. With small values, some hornets will miss their target. With high values, they will always hit their target. |
sk_detenator_hornet_track_lock_dot | 0.2 | Float | Todo: Turn out what it does. |
sk_detenator_hornet_health | 1 | Float | Amount of health for hornet. |
sk_detenator_hornet_max_speed | 800 | Float | Max speed of hornet.
Bug:Values higher than 2000 will cause hornet to disappear. |
sk_detenator_hornet_intial_speed | 200 | Float | Intial speed of hornet. |
sk_detenator_hornet_drunk_degrees | 3 | Float | Degree of deviation in a random direction. |
sk_detenator_hornet_drunk_frequency | 0.2 | Float | Frequency for degree of deviation in a random direction. |
sk_detenator_hornet_autoaim_scale | 100 | Float | Todo: Turn out what it does. |
sk_detenator_hornet_plr_dmg | 10 | Float | Amount of damage from player's hornet. |
sk_detenator_hornet_plr_dmg_radius | 30 | Float | Radius of damage from player's hornet. |
sk_detenator_hornet_npc_dmg | 9 | Float | Amount of damage from NPC's hornet. |
sk_detenator_hornet_npc_dmg_radius | 25 | Float | Radius of damage from NPC's hornet. |
Black Mesa (the mod version)
Cvar/Command | Parameters or default value | Descriptor | Effect |
---|---|---|---|
sk_plr_dmg_grenade_hornet | 13 | Float | Amount of damage from player's hornet. |
sk_npc_dmg_grenade_hornet | 4 | Float | Amount of damage from NPC's hornet |
sk_grenade_hornet_search_radius | 512 | Float | Radius at which hornet will see an enemy and fly towards it. |
sk_grenade_hornet_airspeed | 1200 | Float | Speed of hornet. |
sk_grenade_hornet_plr_precision | 0.15 | Float | Affects the accuracy of hitting when flying towards the enemy. With small values, some hornets will miss their target. With high values, they will always hit their target. This one for player's hornets. |
sk_grenade_hornet_npc_precision | 0.1 | Float | Affects the accuracy of hitting when flying towards the enemy. With small values, some hornets will miss their target. With high values, they will always hit their target. This one for NPC's hornets. |
sk_grenade_hornet_angular_precision | 0 | Float | Angular precision. |
sk_grenade_hornet_angular_precision | 0 | Float | Angular precision. |
sk_grenade_hornet_global_lifetime | 5 | Float | Amount of time before before detonate if it don't hit enemy/surface. |
sk_grenade_hornet_hit_lifetime | 1 | Float | Todo: Turn out what it does. |
sk_detenator_hornet_autoaim_scale | 100 | Float | Todo: Turn out what it does. |
sk_grenade_hornet_noise_magnitude | 45 | Float | Degree of deviation in a random direction. |
sk_grenade_hornet_noise_gaussian | 50 | Float | Scale of hornet's shaking during flight. |
sk_grenade_hornet_noise_speed | 5 | Float | Speed of hornet's shaking during flight. |
Note:Both lists does not include console commands which affects only
npc_alien_grunt
and npc_xen_grunt
. See them it relevant pages.See Also
weapon_hivehand
- the hivehand weapon entityitem_weapon_hivehand
- the pickup hivehand entitynpc_alien_grunt
- one of NPCs that can use this entity (legacy alien grunt)npc_xen_grunt
- one of NPCs that can use this entity (smart alien grunt)