Env laser dot: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{CD|CLaserDot|file1=1}}
{{Ent not in fgd|nolink=1|codeonly=1}}
{{Ent not in fgd|nolink=1|codeonly=1}}
{{this is a|point entity|name=env_laser_dot|game=Half-Life 2 series|game1=Portal|game2=Black Mesa}}
{{this is a|point entity|name=env_laser_dot|game=Black Mesa}}


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.

Revision as of 05:28, 15 June 2025

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 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 all these conditions match:
  • The player reloads the save.
  • RPG's laser is enabled.
  • The player don't hold/use the RPG.
PlacementTip.pngWorkaround:Add a logic_auto that will fire this output (disable Remove on fire spawnflag).
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.