From: Dr. Jaska Date: Tue, 23 May 2023 14:11:00 +0000 (+0000) Subject: Crylink: require 2 or more pellets for waitrelease X-Git-Tag: xonotic-v0.8.6~85^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6f45381b03d2e9c9a5ee691efad5a12c8fd0e82b;p=xonotic%2Fxonotic-data.pk3dir.git Crylink: require 2 or more pellets for waitrelease --- diff --git a/qcsrc/common/weapons/weapon/crylink.qc b/qcsrc/common/weapons/weapon/crylink.qc index ae1eae284..dd29aea8c 100644 --- a/qcsrc/common/weapons/weapon/crylink.qc +++ b/qcsrc/common/weapons/weapon/crylink.qc @@ -391,7 +391,7 @@ void W_Crylink_Attack(Weapon thiswep, entity actor, .entity weaponentity) MUTATOR_CALLHOOK(EditProjectile, actor, proj); } - if(WEP_CVAR_PRI(crylink, joinspread) != 0) + if(WEP_CVAR_PRI(crylink, joinspread) != 0 && WEP_CVAR_PRI(crylink, shots) > 1) { actor.(weaponentity).crylink_lastgroup = proj; W_Crylink_CheckLinks(proj); @@ -511,7 +511,7 @@ void W_Crylink_Attack2(Weapon thiswep, entity actor, .entity weaponentity) MUTATOR_CALLHOOK(EditProjectile, actor, proj); } - if(WEP_CVAR_SEC(crylink, joinspread) != 0) + if(WEP_CVAR_SEC(crylink, joinspread) != 0 && WEP_CVAR_SEC(crylink, shots) > 1) { actor.(weaponentity).crylink_lastgroup = proj; W_Crylink_CheckLinks(proj);