Creating a machine gun nest in Day of Defeat

From Valve Developer Community
Revision as of 22:34, 14 August 2023 by Dmx6 (talk | contribs) (Created page with "File:Day of Defeat Machine Gun Mount.png|250px|thumb|right|Example of a brushed sandbag in combination of the dod_trigger_sandbag entity to create a machine gun mount in the...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Example of a brushed sandbag in combination of the dod_trigger_sandbag entity to create a machine gun mount in the 3D View of Hammer Editor.

In Day of Defeat there are areas where a player can stand and deploy their machine gun or other deployable gun.

Creating a deployable area for machine guns

To create a deployeable area for machine guns you need an platform first. The platform can be window ledges, big pieces of debris or sandbags. The ideal height of the platform for deployment should be about 44 units and the ideal depth should be 16 units to prevent weird animations like the machine gun sticking inside the sandbags or the machine gun bracket floating in the air. It does not matter if the platform is made out of brushes or is a 3D model. In area where the player should be able to mount the machine gun you create an aatrigger brush and turn it into the dod_trigger_sandbag entity.

The way you are facing the entity with the Pitch Yaw Roll Attribute is the way you face when the machine gun is deployed. With the Degrees in either direction Attribute you can select in how many degrees the player should be able to rotate the machine gun.