Ejemplo n.º 1
0
        protected override void Update(WeaponAttackProxy attackProxy, WeaponSideCmd cmd)
        {
            var   config            = attackProxy.WeaponConfigAssy.S_PistolSpreadLogicCfg;
            float spreadScaleFactor = FireSpreadProvider.GetSpreadScaleFactor(config, attackProxy);

            FireSpreadFormula.ApplyPistolFinalSpread(spreadScaleFactor, config.SpreadScale, attackProxy.RuntimeComponent);
        }
Ejemplo n.º 2
0
        protected override void Update(WeaponBaseAgent heldBaseAgent, WeaponSideCmd cmd)
        {
            var   config            = heldBaseAgent.PistolSpreadLogicCfg;
            var   weaponRuntime     = heldBaseAgent.RunTimeComponent;
            float spreadScaleFactor = FireSpreadProvider.GetSpreadScaleFactor(config, heldBaseAgent.Owner.WeaponController());

            FireSpreadFormula.ApplyPistolFinalSpread(spreadScaleFactor, config.SpreadScale, weaponRuntime);
        }