TutorialsBack to Tutorials
hlss_weaponstripperIs an entity to check if a player has any specific ammo. The ammo names are defined in hl2mp_gamerules.cpp, and they are: AR2, Pistol, SMG1, 357, Buckshot, RPG_Round, AlyxGun, XBowBolt, AR2AltFire, SMG1_Grenade, Grenade.
Input functionsTakeAmmo (string)
Take one ammo of the type from the activator of the input function. If the caller is a func_button, then the activator is the player who pressed the button.
Take all ammo of the type.
Strip all weapons except the ammo supplier and the health healthkit.
Fired when TakeAmmo or TakeAmmoAll is used and the activator had some ammo of the type.
Fired when TakeAmmo or TakeAmmoAll is used and the activator didn't have any ammo of the type.
See also: Generators
Back to Tutorials