Upgrade laser sight

From Valve Developer Community
Revision as of 00:29, 25 March 2021 by MrFunreal (talk | contribs) (added FGD instructions.)
Jump to navigation Jump to search
Icon-NotInFGD.png
This entity is not in the FGD by default.
See below for instructions on making it available.

Template:L4d2 point
This entity will directly spawn a box of laser sights, on which you can pick the rotation precisely. The usual spawn entity upgrade_spawn would not allow you to do so.

FGD Code

To add this entity to the FGD, and to use it in Hammer, add the following lines to the left4dead2.FGD (or any custom FGD, loaded by Hammer).

@PointClass base(WeaponSpawnSingle) studioprop("models/w_models/weapons/w_laser_sights.mdl") = upgrade_laser_sight : "Deployed Upgrade Pack - Laser" []