Skip to content

Commit

Permalink
Add missing weapon types and states
Browse files Browse the repository at this point in the history
  • Loading branch information
iksnagreb committed Oct 7, 2021
1 parent 8a4c607 commit f5e7c95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gym_csgo/spaces/obs.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def make_weapon_obs_space():
# Type of the weapon
'type': Enum(*WEAPON_TYPES, 'none'),
# State of weapon
'state': Enum('active', 'holstered', 'none'),
'state': Enum('active', 'holstered', 'reloading', 'none'),
# Current amount of ammo in the clip
'ammo_clip': Box(low=0, high=np.inf, shape=(1,)),
# Maximum amount of ammo the clip for the weapon can hold
Expand Down
3 changes: 2 additions & 1 deletion gym_csgo/specs/weapon.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@

# List of known CSGO weapon types
WEAPON_TYPES = [
'Pistol', 'Knife', 'Rifle', 'SniperRifle', 'Submachine Gun', 'C4', 'Grenade'
'Pistol', 'Knife', 'Rifle', 'SniperRifle', 'Submachine Gun', 'C4',
'Grenade', 'Shotgun', 'Machine Gun', 'StackableItem'
]

# Weapon slots to consider
Expand Down

0 comments on commit f5e7c95

Please sign in to comment.