From 1451b6d77c5dccbcfb26ce0d8168dbe6727d0a50 Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 25 Jun 2018 12:59:14 +1000 Subject: [PATCH] Check the specific cases instead of using weapon_prepareattack_check in hagar's load code (it has ammo checks of its own) --- qcsrc/common/weapons/weapon/hagar.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/common/weapons/weapon/hagar.qc b/qcsrc/common/weapons/weapon/hagar.qc index 7e76ffb1c..03855e316 100644 --- a/qcsrc/common/weapons/weapon/hagar.qc +++ b/qcsrc/common/weapons/weapon/hagar.qc @@ -255,7 +255,7 @@ void W_Hagar_Attack2_Load_Release(entity actor, .entity weaponentity) void W_Hagar_Attack2_Load(Weapon thiswep, entity actor, .entity weaponentity) { // loadable hagar secondary attack, must always run each frame - if(!weapon_prepareattack_check(thiswep, actor, weaponentity, true, -1)) + if(time < game_starttime || time < actor.race_penalty || timeout_status == TIMEOUT_ACTIVE) return; bool loaded = actor.(weaponentity).hagar_load >= WEP_CVAR_SEC(hagar, load_max); -- 2.39.2