From: Mario Date: Mon, 15 Oct 2018 14:22:00 +0000 (+1000) Subject: Divide the attack rate by the maximum weapon slots instead of halving it X-Git-Tag: xonotic-v0.8.5~1769 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=ce2607cc7491e18b3229e1e24dc2929c894fb2bc;hp=c434451ebffdc5d152d958d1de3f24346df16bca Divide the attack rate by the maximum weapon slots instead of halving it --- diff --git a/qcsrc/server/weapons/weaponsystem.qc b/qcsrc/server/weapons/weaponsystem.qc index 52a1934e5d..c4b91b3b39 100644 --- a/qcsrc/server/weapons/weaponsystem.qc +++ b/qcsrc/server/weapons/weaponsystem.qc @@ -335,7 +335,7 @@ void weapon_prepareattack_do(entity actor, .entity weaponentity, bool secondary, continue; // still cooling down! if (ATTACK_FINISHED(actor, wepslot) < time - actor.(wepent).weapon_frametime * 1.5) ATTACK_FINISHED(actor, wepslot) = time; - ATTACK_FINISHED(actor, wepslot) = ATTACK_FINISHED(actor, wepslot) + (attacktime * arate) * 0.5; + ATTACK_FINISHED(actor, wepslot) = ATTACK_FINISHED(actor, wepslot) + (attacktime * arate) / MAX_WEAPONSLOTS; } } }