Creating NPC-Controlled Mounted Guns
Jump to navigation
Jump to search
This tutorial will teach you how to add a Survivor NPC who will use a mounted gun
Construction
Emplacement
- Create an emplacement for your mounted gun. The survivor NPC we will be using does not take damage and does not interact with survivors or infected. Having this emplacement accessible to zombies will interfere with suspension of disbelief. Consider placing your mounted gun in a location that appears inaccessible to common infected to hide the NPC's invulnerability.
- Add a prop_mounted_machine_gun to the emplacement. Ensure you have the right gun. Neither prop_minigun nor prop_minigun_l4d1 will work in this situation.
- 3.Add an area for the NPC to spawn in. If you want the survivors to see the NPC walk to the gun, ensure they cannot see the NPC when it spawns, as it will appear out of nowhere.
Adding the NPC
- Create a prop_ragdoll out of sight of the survivors.
- Set its name to MountedGunRagdoll, or something similar.
- Set its World Model to "survivor_manager.mdl".
- Create an info_l4d1_survivor_spawn where you want the NPC to be created.
- Set its name to "MountedGunSurvivor", or something similar.
- Set its character to "Louis"