25.02.2017, 20:27
Are there any functions like OnPlayerWeaponShot, but for the rest of the weapons that don't shoot? Grenades, teargas, extinguisher, etc.
I have a player timer, but it doesn't loop fast enough. So if a player uses their last grenade, sometimes it's not recognized that they have 0 ammo.
I've also considered using OnPlayerKeyStateChange and seeing if they are pressing KEY_FIRE, but that seems like it wouldn't be 100% accurate.
I have a player timer, but it doesn't loop fast enough. So if a player uses their last grenade, sometimes it's not recognized that they have 0 ammo.
I've also considered using OnPlayerKeyStateChange and seeing if they are pressing KEY_FIRE, but that seems like it wouldn't be 100% accurate.