[ News | About | Media | Downloads | Tutorials | Contact ]

Tutorials

Back to Tutorials

func_tank - Mounted Machine Guns

You can find the prefab for the Mounted Machine Gun in he_coop/prefabs folder under SouceMods. When you place it in your map and rotate it, remember to to turn the angles of the func_tank and the info_target "stand here" to point into the same direction as the gun.

func_tank have few changes to make them work properly in MP. "Gun Yaw Pose Param" is set to always be "aim_yaw", and "Gun Pitch Pose Param" is set to always be "aim_pitch". Just like in EP2, the Ammo Types are handled differently. The func_tank has two input functions EnableControl and DisableControl to force the player off the machine gun when the generator is disabled.

NPC Man Point is now used also to place the player in when he starts using the machine gun, so that his player model will animate correctly with the machine gun.

Values

Ammo Type
Choices: Pistol, SMG1, AR2, Combine Heavy Cannon.

Input functions

EnableControl
Enable player controlling.

DisableControl
Disable player control and force stop controlling if there is a player currently controlling the func_tank.

Back to Tutorials

[ News | About | Media | Downloads | Tutorials | Contact ]



Valve, the Valve logo, Half-Life, the Half-Life logo, the Lambda logo, Steam, the Steam logo, Source, and the Source logo are trademarks and/or registered trademarks of Valve Software. All information is copyright their respective authors. Website designed by Han Solo.