weapons.entity module¶
Provides simplified weapon functionality.
-
class
weapons.entity.
Weapon
(index, caching=True)[source]¶ Bases:
_weapons._entity.WeaponMixin
,entities._base.Entity
Allows easy usage of the weapon’s attributes.
-
__init__
(index, caching=True)[source]¶ Initialize the object.
Parameters: Raises: ValueError – Raised if the index is invalid.
-
set_secondary_fire_ammo
(value)[source]¶ Set the player’s secondary fire ammo property for the weapon.
-
ammo
¶ Property to get/set the weapon’s ammo.
-
clip
¶ Property to get/set the weapon’s clip.
-
secondary_fire_ammo
¶ Property to get/set the weapon’s secondary fire ammo.
-
secondary_fire_clip
¶ Property to get/set the weapon’s secondary fire clip.
-
weapon_name
¶ Return the full class name of the weapon.
-