Add clip check to can_shoot
This commit is contained in:
parent
42a7961142
commit
fb6ed02dd4
|
@ -64,7 +64,8 @@ bool is_friend(cl_entity_t* ent) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool can_shoot(void) {
|
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) {
|
char* get_name(int ent_idx) {
|
||||||
|
|
Loading…
Reference in New Issue