filters.weapons module

Provides weapon filtering functionality.

class filters.weapons.WeaponClassIter(is_filters=None, not_filters=None)[source]

Bases: filters.iterator._IterObject

Weapon tag iterate class.

static iterator()[source]

Iterate over all weapons.instance.WeaponClass objects.

_filters = {'all': <bound method _Tag._tag_exists_for_weapon_class of <filters.weapons._Tag object>>, 'secondary': <bound method _Tag._tag_exists_for_weapon_class of <filters.weapons._Tag object>>, 'shotgun': <bound method _Tag._tag_exists_for_weapon_class of <filters.weapons._Tag object>>, 'melee': <bound method _Tag._tag_exists_for_weapon_class of <filters.weapons._Tag object>>, 'pistol': <bound method _Tag._tag_exists_for_weapon_class of <filters.weapons._Tag object>>, 'explosive': <bound method _Tag._tag_exists_for_weapon_class of <filters.weapons._Tag object>>, 'smg': <bound method _Tag._tag_exists_for_weapon_class of <filters.weapons._Tag object>>, 'rifle': <bound method _Tag._tag_exists_for_weapon_class of <filters.weapons._Tag object>>, 'grenade': <bound method _Tag._tag_exists_for_weapon_class of <filters.weapons._Tag object>>, 'sniper': <bound method _Tag._tag_exists_for_weapon_class of <filters.weapons._Tag object>>, 'knife': <bound method _Tag._tag_exists_for_weapon_class of <filters.weapons._Tag object>>, 'machinegun': <bound method _Tag._tag_exists_for_weapon_class of <filters.weapons._Tag object>>, 'primary': <bound method _Tag._tag_exists_for_weapon_class of <filters.weapons._Tag object>>, 'objective': <bound method _Tag._tag_exists_for_weapon_class of <filters.weapons._Tag object>>}
class filters.weapons.WeaponIter(is_filters=None, not_filters=None)[source]

Bases: filters.iterator._IterObject

Weapon iterate class.

static iterator()[source]

Iterate over all weapons.entity.Weapon objects.

_filters = {'all': <bound method _Tag._tag_exists_for_weapon of <filters.weapons._Tag object>>, 'secondary': <bound method _Tag._tag_exists_for_weapon of <filters.weapons._Tag object>>, 'shotgun': <bound method _Tag._tag_exists_for_weapon of <filters.weapons._Tag object>>, 'melee': <bound method _Tag._tag_exists_for_weapon of <filters.weapons._Tag object>>, 'pistol': <bound method _Tag._tag_exists_for_weapon of <filters.weapons._Tag object>>, 'explosive': <bound method _Tag._tag_exists_for_weapon of <filters.weapons._Tag object>>, 'smg': <bound method _Tag._tag_exists_for_weapon of <filters.weapons._Tag object>>, 'rifle': <bound method _Tag._tag_exists_for_weapon of <filters.weapons._Tag object>>, 'grenade': <bound method _Tag._tag_exists_for_weapon of <filters.weapons._Tag object>>, 'sniper': <bound method _Tag._tag_exists_for_weapon of <filters.weapons._Tag object>>, 'knife': <bound method _Tag._tag_exists_for_weapon of <filters.weapons._Tag object>>, 'machinegun': <bound method _Tag._tag_exists_for_weapon of <filters.weapons._Tag object>>, 'primary': <bound method _Tag._tag_exists_for_weapon of <filters.weapons._Tag object>>, 'objective': <bound method _Tag._tag_exists_for_weapon of <filters.weapons._Tag object>>}