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

Tutorials

Back to Tutorials

hlss_weaponstripper

Is 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 functions

TakeAmmo (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.

TakeAmmoAll (string)
Take all ammo of the type.

StripWeapons
Strip all weapons except the ammo supplier and the health healthkit.

Output functions

AmmoRemoved
Fired when TakeAmmo or TakeAmmoAll is used and the activator had some ammo of the type.

NoAmmo
Fired when TakeAmmo or TakeAmmoAll is used and the activator didn't have any ammo of the type.

See also: Generators

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 my brother.