grenade_hornet

From Valve Developer Community
Jump to navigation Jump to search
edit
Info.png
This entity is not in the FGD by default.
It should not be put directly in a map because it can only be configured through code in Steam versions of the game. You still can use it in mod version of the game via Hammer Hammer.
Hornet's model in Steam versions of the game.
Hornet's model in the mod version of the game.

grenade_hornet is a point entity available in Black Mesa 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.

Icon-Bug.pngBug: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.
Icon-Bug.pngBug: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.pngTip: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.
Example.


(not in Black Mesa)

Note.pngNote:Only in Black Mesa 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.pngNote:Only in Black Mesa Black Mesa (the mod version) this entity can create decal and impact sound when bounce. Example.
Note.pngNote:Only in Steam versions this entity bounce from player ally NPCs (primary attack only).
Note.pngNote:Particles from this entity are different in mod and last Steam versions.
Example.


Note.pngNote:It explodes if hits skybox in the mod version. In Steam versions, it just disappears.

Inputs

DisableSeeking <void> (only in Black Mesa)
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 Black Mesa)
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 Black Mesa)
Fired by this entity if player used secondary attack of hivehand. Gives shaking during flight.
Note.pngNote:Hornet may will not bounce properly after this input.
SetSwarmingWithRadiusScale <float> (only in Black Mesa)
Sets size of loop during flight.
SetTarget <string> (only in Black Mesa)
Sets specified target to force hornet fly and hit the target.
StopHoming <void> (only in Black Mesa)
Fired by this entity if player used secondary attack of hivehand. This input disallows hornet to bounce and change flight direction.
StartHoming <void> (only in Black Mesa)
Allows hornet to bounce.
SetTimer <float> (only in Black Mesa)
Sets amount of time before detonate.
Detonate <void> (only in Black Mesa)
Detonates hornet.
SetThrower <void> (only in Black Mesa)
Fired by this entity when appears via player's hivehand. Doesn't do anything.

Outputs

OnDetonate <void> (only in Black Mesa)
Fired by this entity when detonated.

Dedicated ConVars

Black Mesa Black Mesa

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.pngNote: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.pngWarning: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.
Icon-Bug.pngBug: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 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.pngNote:Both lists does not include console commands which affects only npc_alien_grunt and npc_xen_grunt. See them it relevant pages.

See Also