grenade_apache_rpg

From Valve Developer Community
Jump to navigation Jump to 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.
Rocket's model in Steam versions of the game.
Rocket's model in the mod version of the game.

grenade_apache_rpg is a point entity available in Black Mesa Black Mesa. The grenade entity that used by npc_apache. The rocket that launched by rocket launcher from Apache helicopter. Most inputs and outputs are same as CBaseAnimating.

Represented by class CGrenade_ApacheRPG.

Note.pngNote:It explodes if hits skybox in the mod version. In Steam versions, it just disappears.
Icon-Bug.pngBug:This grenade entity can stuck at dynamic (not physics) objects, such as prop_dynamic. In such situation, rocket 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_weaponfire that will kill stucked rockets, this trigger should be toggled by logic_timer every 0.5-1.0 seconds.
Example.


Inputs

SetTarget <string> (only in Black Mesa)
Fired by npc_apache with no value. Sets specified target.
StopHoming <void> (only in Black Mesa)
Stops homing.
StartHoming <void> (only in Black Mesa)
Enables homing again.
SetTimer <float> (only in Black Mesa)
Sets amount of time before detonate.
Detonate <void> (only in Black Mesa)
Detonates grenade.
SetThrower <void> (only in Black Mesa)
Doesn't do anything and not used for this entity at all.

Outputs

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

Dedicated ConVars

Black Mesa Black Mesa: Definitive Edition

Cvar/CommandParameters or default valueDescriptorEffect
sk_detenator_apache_rpg_health1FloatAmount of health for the rocket.
Note.pngNote:Only explosions can damage it.
sk_detenator_apache_rpg_track_max_distance4048Float
Todo: Find out what it does.
sk_detenator_apache_rpg_track_acceleration400FloatAcceleration of the rocket.
sk_detenator_apache_rpg_track_drag0.8FloatScale of drag.
sk_detenator_apache_rpg_max_speed2000FloatMax speed of the rocket.
sk_detenator_apache_rpg_intial_speed250FloatIntial speed of the rocket.
sk_detenator_apache_rpg_npc_dmg30FloatAmount of damage from the rocket.
sk_detenator_apache_rpg_npc_dmg_radius75FloatRange of explosion from the rocket.
sk_apache_rpg_speed500FloatSpeed of the rocket.
Icon-Bug.pngBug:High speed values may cause the rocket to disappear.

Black Mesa Black Mesa (the mod version)

Cvar/CommandParameters or default valueDescriptorEffect
sk_npc_dmg_grenade_apache_rpg25FloatAmount of damage from the rocket.
sk_npc_radius_grenade_apache_rpg256FloatRange of explosion from the rocket.
sk_grenade_apache_rpg_airspeed7500FloatSpeed of the rocket.
sk_grenade_apache_rpg_precision0.001FloatAffects the rocket's homing ability.