Env laser dot: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:
This is the laser guide endpoint that steer rocket grenades. Used by [[weapon_rpg|RPG]] to change the flying direction for the rockets. It is also used by [[func_tow|TOW]], however, it doesn't change the flying direction for the missiles. Entity [[kill]] will cause immediate respawn.
This is the laser guide endpoint that steer rocket grenades. Used by [[weapon_rpg|RPG]] to change the flying direction for the rockets. It is also used by [[func_tow|TOW]], however, it doesn't change the flying direction for the missiles. Entity [[kill]] will cause immediate respawn.
{{note|Doesn't use ''Glow'' render in {{hl2dm|4}}, because glows can be shined through world for a short time when appears (this bug can be found in [[Black Mesa: Deathmatch|deathmatch]] from {{bms|4}}).}}
{{note|Doesn't use ''Glow'' render in {{hl2dm|4}}, because glows can be shined through world for a short time when appears (this bug can be found in [[Black Mesa: Deathmatch|deathmatch]] from {{bms|4}}).}}
{{bug|hidetested=1|In {{bms12|4}} (the mod version) this entity appears automatically at map center. This happens if:
{{bug|hidetested=1|In {{bms12|4}} this entity appears automatically at map center. This happens if:
* You reload save.  
* You reload save.  
* RPG's laser enabled.  
* RPG's laser enabled.  

Revision as of 00:23, 16 May 2025

C++ Class hierarchy
CLaserDot
CBaseEntity
C++ weapon_rpg.cpp
Icon-NotInFGD.png
This entity is not in the FGD by default.
It should not be put directly in a map.

env_laser_dot is a point entity available in Half-Life 2 series Half-Life 2 series, Portal Portal, and Black Mesa Black Mesa.

This is the laser guide endpoint that steer rocket grenades. Used by RPG to change the flying direction for the rockets. It is also used by TOW, however, it doesn't change the flying direction for the missiles. Entity kill will cause immediate respawn.

Note.pngNote:Doesn't use Glow render in Half-Life 2: Deathmatch Half-Life 2: Deathmatch, because glows can be shined through world for a short time when appears (this bug can be found in deathmatch from Black Mesa Black Mesa).
Icon-Bug.pngBug:In Black Mesa (mod) Black Mesa (mod) this entity appears automatically at map center. This happens if:
  • You reload save.
  • RPG's laser enabled.
  • You don't hold/use RPG.
PlacementTip.pngWorkaround:Add a logic_auto that will fire this output.
My output Target entity Target input Parameter Delay Only once Comments
Entity-output-icon.png OnLoadGame env_laser_dot Addoutput origin 42000 42000 42000 0.00 No Used 42 thousand, because it's bigger than possible map size.