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/Command Parameters or default value Descriptor Effect
sk_detenator_apache_rpg_health 1 Float Amount of health for the rocket.
Note.pngNote:Only explosions can damage it.
sk_detenator_apache_rpg_track_max_distance 4048 Float
Todo: Find out what it does.
sk_detenator_apache_rpg_track_acceleration 400 Float Acceleration of the rocket.
sk_detenator_apache_rpg_track_drag 0.8 Float Scale of drag.
sk_detenator_apache_rpg_max_speed 2000 Float Max speed of the rocket.
sk_detenator_apache_rpg_intial_speed 250 Float Intial speed of the rocket.
sk_detenator_apache_rpg_npc_dmg 30 Float Amount of damage from the rocket.
sk_detenator_apache_rpg_npc_dmg_radius 75 Float Range of explosion from the rocket.
sk_apache_rpg_speed 500 Float Speed of the rocket.
Icon-Bug.pngBug:High speed values may cause the rocket to disappear.

Black Mesa Black Mesa (the mod version)

Cvar/Command Parameters or default value Descriptor Effect
sk_npc_dmg_grenade_apache_rpg 25 Float Amount of damage from the rocket.
sk_npc_radius_grenade_apache_rpg 256 Float Range of explosion from the rocket.
sk_grenade_apache_rpg_airspeed 7500 Float Speed of the rocket.
sk_grenade_apache_rpg_precision 0.001 Float Affects the rocket's homing ability.