]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Check the specific cases instead of using weapon_prepareattack_check in hagar's load...
authorMario <mario@smbclan.net>
Mon, 25 Jun 2018 02:59:14 +0000 (12:59 +1000)
committerMario <mario@smbclan.net>
Mon, 25 Jun 2018 02:59:14 +0000 (12:59 +1000)
qcsrc/common/weapons/weapon/hagar.qc

index 7e76ffb1cedf9616c6a9cdff802e61074197543d..03855e316e7c1c9f4be758095ad057c06fa5c835 100644 (file)
@@ -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);