Grenade energy: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Setting bug notice hidetested=1 param on page where the bug might not need tested in param specified)
No edit summary
 
Line 2: Line 2:
{{ent not in fgd|nolink=1|because=it wasn't supposed to be used via {{hammer|4}} by the developers. You still can use it for your map or mod, just add required code to the FGD}}
{{ent not in fgd|nolink=1|because=it wasn't supposed to be used via {{hammer|4}} by the developers. You still can use it for your map or mod, just add required code to the FGD}}
[[File:Grenade_energy.jpg|500px|right]]
[[File:Grenade_energy.jpg|500px|right]]
{{code|grenade_energy}} is a [[point entity]] available in {{bms12|4}}. The grenade entity that used by {{ent|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]].
{{code|grenade_energy}} is a [[model entity]] available in {{bms12|4}}. The grenade entity that used by {{ent|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 <code>CGrenade_Energy</code>.
Represented by class <code>CGrenade_Energy</code>.

Latest revision as of 07:51, 12 August 2025

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 model 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.