Upgrade laser sight: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(added FGD instructions.)
(modified page, because user:Loudslappingsounds mentioned its in the base game now, but he couldn't be bothered to edit the page himself.)
Line 1: Line 1:
{{ent not in fgd}}
{{l4d2 point|Upgrade_laser_sight}}<br>
{{l4d2 point|Upgrade_laser_sight}}<br>
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.<br>
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.<br>
==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).
<pre>@PointClass base(WeaponSpawnSingle) studioprop("models/w_models/weapons/w_laser_sights.mdl") = upgrade_laser_sight : "Deployed Upgrade Pack - Laser" []
</pre>

Revision as of 07:18, 25 March 2021

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.