From 6f45381b03d2e9c9a5ee691efad5a12c8fd0e82b Mon Sep 17 00:00:00 2001 From: "Dr. Jaska" Date: Tue, 23 May 2023 14:11:00 +0000 Subject: [PATCH] Crylink: require 2 or more pellets for waitrelease --- qcsrc/common/weapons/weapon/crylink.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.2