weapons.engines.csgo.csgo module

Provides CS:GO game specific weapon functionality.

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

Bases: 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.

property ammo

Property to get/set the weapon’s ammo.

caching = True
property weapon_name

Return the full class name of the weapon.

Return type:

str