grenade_hornet

From Valve Developer Community
Jump to: navigation, search
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.


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 note 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/CommandParameters or default valueDescriptorEffect
sk_detenator_hornet_fuse_time5FloatAmount 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_distance512FloatRadius at which hornet will see an enemy and fly towards it.
sk_detenator_hornet_track_acceleration300FloatSpeed at which hornet will turn to enemy.
sk_detenator_hornet_track_drag0.4FloatDegree of deviation in a random direction during flight.
Warning.pngWarning:Values higher than 1.2 makes hornet twitch.
sk_detenator_hornet_track_lock_distance20FloatAffects 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_dot0.2Float
Todo: Turn out what it does.
sk_detenator_hornet_health1FloatAmount of health for hornet.
sk_detenator_hornet_max_speed800FloatMax speed of hornet.
Icon-Bug.pngBug:Values higher than 2000 will cause hornet to disappear.
sk_detenator_hornet_intial_speed200FloatIntial speed of hornet.
sk_detenator_hornet_drunk_degrees3FloatDegree of deviation in a random direction.
sk_detenator_hornet_drunk_frequency0.2FloatFrequency for degree of deviation in a random direction.
sk_detenator_hornet_autoaim_scale100Float
Todo: Turn out what it does.
sk_detenator_hornet_plr_dmg10FloatAmount of damage from player's hornet.
sk_detenator_hornet_plr_dmg_radius30FloatRadius of damage from player's hornet.
sk_detenator_hornet_npc_dmg9FloatAmount of damage from NPC's hornet.
sk_detenator_hornet_npc_dmg_radius25FloatRadius of damage from NPC's hornet.

Black Mesa Black Mesa (the mod version)

Cvar/CommandParameters or default valueDescriptorEffect
sk_plr_dmg_grenade_hornet13FloatAmount of damage from player's hornet.
sk_npc_dmg_grenade_hornet4FloatAmount of damage from NPC's hornet
sk_grenade_hornet_search_radius512FloatRadius at which hornet will see an enemy and fly towards it.
sk_grenade_hornet_airspeed1200FloatSpeed of hornet.
sk_grenade_hornet_plr_precision0.15FloatAffects 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_precision0.1FloatAffects 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_precision0FloatAngular precision.
sk_grenade_hornet_angular_precision0FloatAngular precision.
sk_grenade_hornet_global_lifetime5FloatAmount of time before before detonate if it don't hit enemy/surface.
sk_grenade_hornet_hit_lifetime1Float
Todo: Turn out what it does.
sk_detenator_hornet_autoaim_scale100Float
Todo: Turn out what it does.
sk_grenade_hornet_noise_magnitude45FloatDegree of deviation in a random direction.
sk_grenade_hornet_noise_gaussian50FloatScale of hornet's shaking during flight.
sk_grenade_hornet_noise_speed5FloatSpeed 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