Add clip check to can_shoot

This commit is contained in:
8dcc 2023-07-31 20:10:45 +02:00
parent 42a7961142
commit fb6ed02dd4
1 changed files with 2 additions and 1 deletions

View File

@ -64,7 +64,8 @@ bool is_friend(cl_entity_t* ent) {
}
bool can_shoot(void) {
return g_flNextAttack <= 0.0f && g_flNextPrimaryAttack <= 0.0f;
return g_iClip > 0 && g_flNextAttack <= 0.0f &&
g_flNextPrimaryAttack <= 0.0f;
}
char* get_name(int ent_idx) {