grenade_energy

From Valve Developer Community
Jump to navigation Jump to search
Icon-NotInFGD.png
This entity is not in the FGD by default.
It should not be put directly in a map because it wasn't supposed to be used via Hammer Hammer by the developers. You still can use it for your map or mod, just add required code to the FGD.
Grenade energy.jpg

grenade_energy is a point entity available in Black Mesa (mod) Black Mesa (mod). The grenade entity that used by npc_alien_controller. This is small energy sphere which can deal electric damage. It is generated by alien controller and can homing into target. Most inputs and outputs are same as CBaseAnimating.

Represented by class CGrenade_Energy.

Todo: What entity name used for Steam versions of the game ?
Note.pngNote:It explodes if hits skybox in the mod version. In Steam versions, it just disappears.
Icon-Bug.pngBug:Has a collision.

Inputs

SetTarget <stringRedirectInput/string>
Fired once when spawned. Firing this again input will not change target.
StopHoming <void>
Stops homing.
StartHoming <void>
Enables homing.
SetTimer <floatRedirectInput/float>
Sets amount of time before detonate.
Detonate <void>
Detonates the energy sphere.
SetThrower <void>
Fired by this entity when spawned. Doesn't do anything.

Outputs

OnDetonate <void>
Fired by this entity when detonated.


Dedicated ConVars

Cvar/Command Parameters or default value Descriptor Effect
sk_grenade_energy_dmg 4 Float Amount of damage from this entity.
sk_grenade_energy_dmg_radius 128 Float Range of for damage from this entity.
sk_grenade_energy_airspeed 650 Float Speed of this entity.
sk_grenade_energy_precision 0.001 Float Affects homing to the target. 0.1 will make it impossible to dodge even with noclip.
Icon-Bug.pngBug:0 and below will cause explode on entity spawn.