Skip to content
Snippets Groups Projects

Fix crylink and vaporizer being able to fire with empty magazines

Merged Dr. Jaska requested to merge drjaska/wep-reload-fixes into master
All threads resolved!
Files
3
@@ -532,7 +532,7 @@ METHOD(Crylink, wr_think, void(entity thiswep, entity actor, .entity weaponentit
thiswep.wr_reload(thiswep, actor, weaponentity);
}
if(fire & 1)
else if(fire & 1)
{
if(actor.(weaponentity).crylink_waitrelease != 1)
if(weapon_prepareattack(thiswep, actor, weaponentity, false, WEP_CVAR_PRI(crylink, refire)))
@@ -542,7 +542,7 @@ METHOD(Crylink, wr_think, void(entity thiswep, entity actor, .entity weaponentit
}
}
if((fire & 2) && autocvar_g_balance_crylink_secondary)
else if((fire & 2) && autocvar_g_balance_crylink_secondary)
{
if(actor.(weaponentity).crylink_waitrelease != 2)
if(weapon_prepareattack(thiswep, actor, weaponentity, true, WEP_CVAR_SEC(crylink, refire)))
Loading