weapons.engines.csgo.csgo module

Provides CS:GO game specific weapon functionality.

class weapons.engines.csgo.csgo.Weapon(index, caching=True)[source]

Bases: weapons.engines.csgo.Weapon

Allows easy usage of the weapon’s attributes.

get_ammo()[source]

Return the amount of ammo the player has for the weapon.

Return type:int
set_ammo(value)[source]

Set the player’s ammo property for the weapon.

ammo

Property to get/set the weapon’s ammo.

caching = True
weapon_name

Return the full class name of the weapon.

Return type:str