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:
{{Ent not in fgd|codeonly=1}}
{{Ent not in fgd|codeonly=1}}
{{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 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.
{{note|Used [[EF_NODRAW]] effect flag for this entity. The sprite is drawn separately using a client-side entity.}}
{{note|Used [[EF_NODRAW]] effect flag for this entity, the sprite is drawn separately using a client-side entity. It was made to hide [[Prediction|prediction]] issues.}}
{{bug|hidetested=1|The sprite always renders through world, even in multiplayer game, which is why a client see other client's laser sprite.}}
{{bug|hidetested=1|The sprite always renders through world, even in multiplayer game, which is why a client see other client's laser sprite.}}
{{bug|hidetested=1|In {{bms12|4}} this entity appears automatically at map center. This happens if all these conditions match:
{{bug|hidetested=1|In {{bms12|4}} this entity appears automatically at map center. This happens if all these conditions match:

Latest revision as of 14:42, 20 September 2025

Icon-NotInFGD.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.

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:Used EF_NODRAW effect flag for this entity, the sprite is drawn separately using a client-side entity. It was made to hide prediction issues.
Icon-Bug.pngBug:The sprite always renders through world, even in multiplayer game, which is why a client see other client's laser sprite.
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.