]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Crylink: require 2 or more pellets for waitrelease
authorDr. Jaska <drjaska83@gmail.com>
Tue, 23 May 2023 14:11:00 +0000 (14:11 +0000)
committerterencehill <piuntn@gmail.com>
Tue, 23 May 2023 14:11:00 +0000 (14:11 +0000)
qcsrc/common/weapons/weapon/crylink.qc

index ae1eae28459adfb50c468fc37571feb1000e9a69..dd29aea8c69a1cd291375644135288996e724063 100644 (file)
@@ -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);